half working php scripts
HiI'm having an annoying problem here with a script that won't work properly on cpanel (works fine on my ensim servers) It gets part of the page it is supposed to but not the rest.
Script is:
PHP:
--------------------------------------------------------------------------------
$filename = "http://pcworld.idg.com.au/nindex.php?taxid=1";
$fp = fopen ("$filename", "r");
socket_set_timeout($fp, 70);
$contents = fread ($fp, 500000);
fclose($fp);
print $contents;
--------------------------------------------------------------------------------
All it does is get http://pcworld.idg.com.au/nindex.php?taxid=1 and show it... has anyone one run into half-working php scripts on cpanel servers, is there something needs changing somewhere?