Hey pal, no need to put \ in each " or ', it makes your comment and code unreadable 🙂
And we both in very different area, so when you're afternoon, I'm midnight sleeping ... ok ?
Btw, what you have done works perfectly, please see the part of header you've got :
HTTP/1.1 200 OK
It means u successfully get the HTTP response ...
Now, add this to eliminate HTTP response header ...
<?
...
...
...
$data="";
while (!feof($fp)) $data.=fgets($fp,1000);
fclose($fp);
// Eliminate the HTTP response header
$pos=0;
for ($i=0;$i<2000;$i++) if (substr($data,$i,4)=="\r\n\r\n")
{ $pos=$i+4; $i=2000; }
$data=substr($data,$pos);
print $data;
?>
That will do ... Ok ?
Alexander Yanuar K.
SYSTEM DEVELOPER
www.globalsources.com