On Tue, Apr 24, 2001 at 12:20:01AM -0300, Paulo - Bruc Internet wrote:
> Can anyone help me?
>
> The sintax of function file_exists is:
>
> if(file_exists("ttttt.txt"))
> {
> print...
> }
>
> Does anybody knows how can work with remote files?
> This is not working:
> if(file_exists("http://www.ttttttt.com/ttttt.txt"))
> {
> print...
> }
>
> Thanks for any help,
>
> Paulo Roberto Ens - Brazil
> Bruc Sistemas para Internet Ltda
> mailto:[EMAIL PROTECTED]
> http://www.bruc.com.br
> ------------------------------------
> Diversão ou Cultura? CuritibaWeb.com - O Melhor Guia de Curitiba!
> http://www.curitibaweb.com
>From the manual..
file_exists() will not work on remote files; the file to be examined
must be accessible via the server's filesystem.
Try something like this instead:
if (($fd = fopen ("http://url/file.ext", "r"))) {
print...
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]