when i using fsockopen() in php to get my server's file,i got a error,following there is my codes and the replying error:
the file is in LINUX.
$fs=fsockopen("http://10.0.65.88/david/sock/test.txt",80,&$error_number,&$error_description);
if($fs)
{
while(!feof($fs))
{
$fsline=fgets($fs,255);
print($fsline);
}
}
else{
print("An error occured!<br>\n");
print("Number:$error_number<br>\n");
print("Info:$error_description<br>\n");
}
the replying error:
//An error occured!
Number:0
Info: