How do I check if a document on a given URL really exists?
try something like this:
if(!($fp=fopen($url,"r"))) { echo "can't find file"; } else { echo("found file"); }