|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-20 06:48 UTC] areyelt at web dot de
[2002-07-10 23:56 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
System: w2k PROF Apache/1.3.23 PHP 4.12 My Apache crashes with error code: [Tue Mar 19 19:09:47 2002] [info] master_main: Child processed exited prematurely. Restarting the child process. [Tue Mar 19 19:09:47 2002] [info] Parent: Created child process 1080 [Tue Mar 19 19:09:47 2002] [info] Parent: Duplicating socket 484 and sending it to child process 1080 [Tue Mar 19 19:09:47 2002] [info] BytesRead = 372 WSAProtocolInfo = 2006620 reason is: $filename = "d:\\web\\kontakt\\test.jpg"; $fp = fopen($filename, "rb"); while(!feof($fp)) { $attachment .= fread($fp, 1024); } fclose($fp); OR: $filename = "d:\\web\\kontakt\\test.jpg"; $fd = (fopen($filename, "rb")); $attachment = addslashes(fread($fd, filesize($filename))); fclose ($fd); There's no problem on a Linux System. What should i do?