|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-04 15:39 UTC] iliaa@php.net
[2003-02-04 15:59 UTC] elazizli at celiknet dot com
[2003-02-04 16:13 UTC] sniper@php.net
[2003-02-04 16:17 UTC] iliaa@php.net
[2003-02-05 01:25 UTC] elazizli at celiknet dot com
[2003-02-05 01:59 UTC] wez@php.net
[2003-02-05 02:49 UTC] elazizli at celiknet dot com
[2003-02-05 03:33 UTC] sniper@php.net
[2003-02-05 10:03 UTC] pollita@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 21:00:01 2025 UTC |
The following code used to return correct headers for the requested page whit PHP 4.2.3.. $host, $port and $path variables are dynamically assigned by the script. Now it doesn't work without any configuration change other than PHP upgrade. It returns a three-character string instead of the requested information. Is this because of the change applied to fgets function in PHP 4.3? Same code stopped working when migrated to 4.3 from 4.2.3, no module or configuration change happened during upgrade, same settings were kept. $fp = fsockopen($host,$port); $request = "GET $path HTTP/1.1 Host: $host$port Accept: */* Accept-Charset: iso-8859-1 Accept-Encoding: identity "; fputs($fp,$request); $answer = fgets($fp,4096);