|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-03 08:09 UTC] sander@php.net
[2002-11-10 18:33 UTC] sniper@php.net
[2002-11-21 17:08 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 22:00:01 2025 UTC |
I try to read in a .jpeg and output it via echo (smtg. like: $Filename = "uk.jpg"; if( $hFile = fopen($Filename, "rb")) { $Filesize = filesize($Filename); header("Content-name: ".$Filename); header("Content-type: image/jpeg"); header("Content-length: ".$Filesize); $Data = fread($hFile, $Filesize); echo $Data; } I also thries readfile, does not work either. It seems to work und Windows For Files up to 40K, and under Linux for files up to 180k, but I am not sure if it is related to the filesize or to the filecontent. I tried serveral newsgroups, nut this seems to be a bug (and noone could help...). Same problem exists in 4.2.0 Apache version is 2.0.39 I tried to track it down in the source, but the problem i snot obiuous. I check up to sapi_apache_ub_write and the code seems to be correct (I did no debuging, time is short now...). But I could not find the rwrite function (Apache API obviously...) Regards & tnx in advance, Mario L?fler