note 60252 added to function.fgets
| From: | ansugo at zaxaz dot com | Date: | Sat, 31 Dec 2005 11:07:08 +0000 |
| Subject: | note 60252 added to function.fgets | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101041@lists.php.net to get a copy of this message | ||
In response to Matryx ;
I checked that the problem on utf-8 encoded pages is the use of HTTP/1.1 method. Try to use HTTP/1.0
method.
This gives problem :
<?php
//..
$header = "GET / HTTP/1.1\n";
//..
?>
This is problem free :
<?php
//..
$header = "GET / HTTP/1.0\n";
//..
?>
----
Manual Page -- http://www.php.net/manual/en/function.fgets.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60252
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60252&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60252&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60252&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60252&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60252&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60252&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60252&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60252&report=yes
Search -- http://master.php.net/manage/user-notes.php