note 40088 added to function.file-get-contents

From: Date: Sat, 21 Feb 2004 09:28:02 +0000
Subject: note 40088 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-65477@lists.php.net to get a copy of this message
Appearently, this function does not like to make calls to files with <SPACE>s in them. To get around this, I've done the following: $result = file_get_contents(str_replace(" ", "%20", $filename)); Granted, this only deals with converting the spaces. Since my $filename could be a http:// call, using urlencode() was killing me because it encoded the '://' in the http call (which would then also fail). ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40088 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40088&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40088&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65477) next »