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?