Thread: php question
View Single Post
Old 01-08-2005, 12:26 PM  
michael2002
Confirmed User
 
Join Date: Jan 2003
Posts: 145
php question

what is the best method to test if a file on a remote server (url) exist?

currently i use something like :

Code:
if($x=file($url)) echo("file exist");
else echo("file don't exist");
but this code in the case that the file is not existing take long time to execute

there is any faster method to test if a file on a remote server exist or not?
michael2002 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote