DaMouse:

Try looking at www.php.net/fopen : the 3rd comment should work:

    To check if a file exists using http or ftp use the following: 

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

    Note: The "@" in front of fopen suppresses the error output of the
function. 

    I hope this clears up some confusion. 

-Dash

-----Original Message-----
From: DaMouse [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, November 17, 2002 1:36 PM
To: PHP - Win
Subject: [PHP-WIN] file_exists()


is there a way to find if a file exists on a remote server?


Ensign Baker
HCO Officer
USS Atlantis

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to