note 40088 deleted from function.file-get-contents by aidan

From: Date: Fri, 16 Jul 2004 10:35:48 +0000
Subject: note 40088 deleted from function.file-get-contents by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73375@lists.php.net to get a copy of this message
Note Submitter: sean@shrum.net ---- 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).

« previous php.notes (#73375) next »