RE: [PHP] Issues w/ WHOIS and Fgets

2003-01-07 Thread Ben Vaughn
PROTECTED] -- -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 11:57 AM To: Ben Vaughn Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Issues w/ WHOIS and Fgets try if(($packet = fgets($fp, 4096)) === false) die(...); instead. The same for

Re: [PHP] Issues w/ WHOIS and Fgets

2003-01-07 Thread Marek Kilimajer
try if(($packet = fgets($fp, 4096)) === false) die(...); instead. The same for array_push Ben Vaughn wrote: Hello, Long time reader, first time e-mailer :-). I am having a pretty strange issue with fgets and a socket, and was hoping that perhaps someone here can help me. First, my code: fu

[PHP] Issues w/ WHOIS and Fgets

2003-01-07 Thread Ben Vaughn
Hello, Long time reader, first time e-mailer :-). I am having a pretty strange issue with fgets and a socket, and was hoping that perhaps someone here can help me. First, my code: function dowhois($who) { $data = array(""); $whom = trim($who); $fp = fsockopen