This is the code i have
$fd = fread(fopen("http://zipinfo.com/cgi-local/zipsrch.exe?ll=ll&zip=$_GET[zip]", "rb"), 100000);
$StartDilimiter = "<center><table border=0 cellspacing=4 cellpadding=1>";
$EndDilimiter = "</center><BR>";
if ($fd) {
$start = strpos($fd, $StartDilimiter) + strlen($StartDilimiter);
$finish = strpos($fd, $EndDilimiter) - strlen($EndDilimiter);
$length = $finish - $start;
$code = Substr($fd, $start, $length);
}
echo $code;
and the error I get is
Warning: fopen(http://zipinfo.com/cgi-local/zipsrch.exe?ll=ll&zip=12550) [function.fopen]: failed to open stream: Permission denied in /home/u5/countryclubrv/html/get.php on line 3
Warning: fread(): supplied argument is not a valid stream resource in /home/u5/countryclubrv/html/get.php on line 3
The site that I am trying to pull data from is not mine and I have tried everything to extract the data from this site.
Config.
PHP 4
safe_mode on
FILE CHMOD 0777
Folder CHMOD 0777