note 90201 deleted from function.fsockopen by danbrown

From: Date: Mon, 18 May 2009 01:46:10 +0000
Subject: note 90201 deleted from function.fsockopen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155594@lists.php.net to get a copy of this message
Note Submitter: Richard Williams ---- I'd like to thank terminal for the note on using fsockopen for SMTP. There are a couple of small changes required. In both routines, the test for more bytes should read if ($bytes_left['unread_bytes'] > 0) { $response .= fread($handle, $bytes_left["unread_bytes"]); } and the full response needs $response=fgets($handle); of $response=fgets($handle,256); again in both routines. That said, the original contribution has saved me a great deal of work.

« previous php.notes (#155594) next »