On Sun, 16 Jun 2002 21:55:46 +0200, Peter Brodersen <usenet@ter.dk>
wrote:
>On Sun, 16 Jun 2002 21:13:03 +0200, Erik N. Rasmussen
><digtekat@hotmail.com> wrote:
>
>>if ( file_exists('
http://www.masterbrain.dk/test.html') )
>
>[..]
>
>>Hvorfor får jeg ikke noget data ud i det php document?
>
>Fordi, som manualen siger:
>
http://www.php.net/manual/en/function.file-exists.php
>
>"This function will not work on remote files; the file to be examined
>must be accessible via the server's filesystem."
Tak, men selv uden den linje:
$thefile = implode("", file('
http://www.masterbrain.dk/test.html'));
$start = strpos($thefile, "<body>") + 6;
$end = strpos($thefile, "</body>");
return substr($thefile, $start, $end - $start);
echo $thefile;
Får jeg intet output. Jeg har tjekket for case.