note 76800 deleted from function.fsockopen by nlopess

From: Date: Wed, 08 Aug 2007 15:16:55 +0000
Subject: note 76800 deleted from function.fsockopen by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-129308@lists.php.net to get a copy of this message
Note Submitter: noreply at recgr dot com ---- Never forget to put double newline break at the end of string which you're going to transmit. ## BAD: <? $out = "GET / HTTP/1.1\r\n"; $out .= "Host: www.recgr.com\r\n"; $out .= "Connection: close\r\n"; ?> ## CORRECT: <? $out = "GET / HTTP/1.1\r\n"; $out .= "Host: www.recgr.com\r\n"; $out .= "Connection: close\r\n\r\n"; ?>

« previous php.notes (#129308) next »