How to fix infinite error looping?
This is a small portion of my php script which is as shown below:
When the script fail to open the domain url, it returns me infinite error looping which you can refer to the snapshot below:
Is there anyway, when the script sees the error it returns me like "Page not found" message?
Thanks in advance!!!
This is a small portion of my php script which is as shown below:
PHP:
$fd = fopen($theDomain.$page, "r");
$value = "";
while(!feof($fd)){
$value .= fread($fd, 4096);
}
fclose($fd);
When the script fail to open the domain url, it returns me infinite error looping which you can refer to the snapshot below:
Is there anyway, when the script sees the error it returns me like "Page not found" message?
Thanks in advance!!!





