Bug #16452 Updated: using fgets or fread with fsockopen returns strange numbers

From: Date: Tue, 09 Apr 2002 11:59:43 +0000
Subject: Bug #16452 Updated: using fgets or fread with fsockopen returns strange numbers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4418@lists.php.net to get a copy of this message
ID: 16452 Updated by: wez@php.net Reported By: paramelle@jobpilot.fr -Status: Open +Status: Bogus Bug Type: Output Control Operating System: linux PHP Version: 4.1.2 New Comment: Sounds like chunked HTTP output. Try using telnet to do the same thing that your script is doing; you should see the same output. Marking this as bogus, since it is not PHP's fault: it's a valid HTTP response. Previous Comments: ------------------------------------------------------------------------ [2002-04-05 11:11:50] paramelle@jobpilot.fr I open an url with fsockopen and when I read socket with fread or fgets it sometimes return hexadecimal numbers. (which appears to be the number of characters to the next 'strange number') The output looks like this (numbers : 19f, 24, 0) : ... </table></center> 19f <hr size=1 noshade> <center> [ <a href="/" target=_top>Home</a> | <a href="/verschlagwortung/swneu.php3">Categorize</a> | <a href="/content/docs/categorize_help.html" target=_blank>Categorization Help</a> | <a href="/verschlagwortung/make_adds/templates.php3">Templates</a> | <a href="/archiv/kundeninfo.php3">Customer Info</a> | <a href="/ShowNewAnzeigen.php3">Final Check</a> | <a href="/ShowTemp.php3">Temp Direc 24 tory</a> ] </center> </body></html> 0 ### end of output ### when I read the file with fopen it works better but in this case I don't want to use fopen. Good luck ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16452&edit=1

« previous php.bugs (#4418) next »