Harry: file_exists

Beitrag lesen

Holladiwaldfee !

"This function will not work on remote files; the file to be examined must be accessible via the server's filesystem."
http://www.php.net/manual/en/function.file-exists.php

Danke, das hilft mir jetzt aber auch nicht weiter, wie soll ich das jetzt machen, es muss doch irgendwie gehen das man sagt

Der erste Kommentar zu file_exists:

<cite>
Use fopen function to check if a given URL exists.  See note added by
chopin@csone.kaist.ac.kr within documentation for fopen for an example.
</cite>

Und bei fopen steht dann:

<cite>
$fp = @fopen("http://www.someurl.com/testfile.php3","r");
if ($fp)
{ print"The file exists!"; }
else
{ print"The file does not exist"; }
</cite>

Na, klingelts ? ;-)

Ciao,

Harry