I'm using this script:
$file = fopen("http://www.php.net", "r");
if(!$file)
die("Unable to open");
while(!feof($file)) {
$line = fgets($file, 1024);
echo $line;
}
fclose($file);
The script itself seems to work fine. It dutifully goes and grabs the needed file and spits it out. But when it spits it out, some things are changed.
Select boxes become dropboxes, arrays shift around - stuff like that.
If you want to experience my problem first hand, go to this URL in your browser first:
http://cgi5.ebay.com/aw-cgi/eBayISAPI.dll?ListItemForSaleLogin&item=0&category=0&oldstyle=0&page=2¤cy=0&skipAddPhotoPage=1&fromShowPhotoOption=0&displaymode=0&syi=4228&relistshow=0&relistphoto=1
And then try to parse it with the above code. It will get the page fine (suprisingly), but it'll also change the sourcecode significantly. Look at them and compare.
I can't figure out why it's doing it...
Any suggestions?