note 34763 rejected from function.file by didou

From: Date: Wed, 06 Aug 2003 06:18:29 +0000
Subject: note 34763 rejected from function.file by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53488@lists.php.net to get a copy of this message
Note Submitter: avaurus@jeej.de ---- I have noticed that file() has problems with the following example: <?php $webpage = "page1.html"; $content = implode ( "", file("http://blabla.net/pagesource.php?page=".$webpage) ); ?> The next example will be ok, but it is not a good solution: <?php $content = implode ( "", file("http://blabla.net/pagesource.php?page=page1.html") ); ?> Ok, I have figured out a "trick": <?php $webpage = "page1.html"; $tmp_url = "http://blabla.net/pagesource.php?page="; $url = $tmp_url.$webpage; $content = implode ( "", file("$url) ); ?> Works fine, but strange, ain´t it ? :)

« previous php.notes (#53488) next »