$file = fopen("xxx.com", "r") or die ("can't open remote site");
is that right? when error the message from server is out. seem like this "error cannnot open file " on php line xx
how can i solve this problem?
I don't quite understand what your asking, but if you're trying to open up a web page, make sure you put http:// in front of the address. This works good for getting a remote web page into a string.
$file = file("http://www.yahoo.com"); $file_string = implode("",$file);
---John Holmes...
And if you don't want PHP to print out its own error message, put @ in front of the function call.