#20030 [Opn]: fopen() behaves differently in apache mod than CGI

From: Date: Wed, 23 Oct 2002 20:07:56 +0000
Subject: #20030 [Opn]: fopen() behaves differently in apache mod than CGI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23130@lists.php.net to get a copy of this message
ID: 20030 User updated by: remi2402@hotmail.com Reported By: remi2402@hotmail.com Status: Open Bug Type: Apache2 related Operating System: Windows XP PHP Version: 4.2.3 New Comment: Nope. Snapshot wouldn't even work at all. (Module and CGI). I get "Bad browser request" and other "internal server error". Previous Comments: ------------------------------------------------------------------------ [2002-10-23 13:27:40] remi2402@hotmail.com fopen("file.gif", "rb") didn't change anything on my version of PHP. I'll try it with the CSV snapshot though. ------------------------------------------------------------------------ [2002-10-22 16:49:03] wez@php.net also make sure you are using fopen($path, "rb"); the b is important under windows. ------------------------------------------------------------------------ [2002-10-22 15:43:59] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-10-22 15:15:28] remi2402@hotmail.com My script opens a remote GIF file and saves it to local hard drive. When executed with Apache 2.0.40 as CGI, everything works fine. But when I use the apache2 module version of PHP, it only reads about 20K of the GIF. Interestingly enough, this problem doesn't appear when opening HTML files. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20030&edit=1

« previous php.bugs (#23130) next »