note 90201 added to function.fsockopen
| From: | RichardWilliams at osu1 dot php dot net | Date: | Thu, 09 Apr 2009 18:32:06 +0000 |
| Subject: | note 90201 added to function.fsockopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-153030@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 92.48.74.199
Probable Submitter: 81.155.66.176
----
Manual Page -- http://www.php.net/manual/en/function.fsockopen.php
Edit -- https://master.php.net/note/edit/90201
Del: integrated -- https://master.php.net/note/delete/90201/integrated
Del: useless -- https://master.php.net/note/delete/90201/useless
Del: bad code -- https://master.php.net/note/delete/90201/bad+code
Del: spam -- https://master.php.net/note/delete/90201/spam
Del: non-english -- https://master.php.net/note/delete/90201/non-english
Del: in docs -- https://master.php.net/note/delete/90201/in+docs
Del: other reasons-- https://master.php.net/note/delete/90201
Reject -- https://master.php.net/note/reject/90201
Search -- https://master.php.net/manage/user-notes.php