Re: [PHP] Code Refusing to Die

2001-07-18 Thread rm
try using fsockopen from the php network functions works better than fopen...we use it to run wget on one of our machines...fopen is supposed to report false on failure, however, we don't use it for connections outside our file system and even then we always use file_exists before using fopen

Re: [PHP] Code Refusing to Die

2001-07-18 Thread Sheridan Saint-Michel
shouldn't fopen return false? Sheridan - Original Message - From: rm <[EMAIL PROTECTED]> To: Sheridan Saint-Michel <[EMAIL PROTECTED]>; php-general <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 3:40 PM Subject: Re: [PHP] Code Refusing to Die > $fp is not a

Re: [PHP] Code Refusing to Die

2001-07-18 Thread rm
$fp is not a valid file handle because the url is invalid, it can't close a file handle for a file that wasn't opened because it never existed (invalid url). You need to fix the logic to allow for the possibility that a file does not exit and therefore cannot be closed. Maybe the php function file

[PHP] Code Refusing to Die

2001-07-18 Thread Sheridan Saint-Michel
Okay... I can't figure out why this isn't working... When I enter in a valid URL this function works fine... The problem is when I enter an invalid url, rather than getting my (semi) friendly die error I get Warning: fopen("http://www.foxjet.com/html/fjmain.html","r";) - Unknown error in /hom