Page 1 of 1
Premature end of script headers: php.exe
Posted: Thu Jun 12, 2003 3:32 am
by RedRasper
Hello,
I've been using php for a while, and it all works fine. Today however, I have one script (which I didn't write, but am trying to understand to use) which causes the erro Premature end of script headers: php.exe I do get a windows memory error too, that it can't be read.
Anyone know why this error is caused?
Cheers
RedRasper
Posted: Thu Jun 12, 2003 3:37 am
by cactus
Posted: Thu Jun 12, 2003 3:41 am
by []InTeR[]
Windows error list:
DOS Error #01: Windows loading, come back tomorrow
DOS Error #02: Windows loaded. System in danger.
DOS Error #03: Windows not found: (C)heer (P)arty (D)ance
DOS Error #04: Out of disk space. Delete Windows? (Y)es (H)ell yes!
Windows Error #01: No error... ...yet.
Windows Error #02: Multitasking attempted. System confused.
Windows Error #03: Unexplained error.
Windows Error #04: Reserved for future mistakes
Windows Error #05: Nonexistent error. This cannot really be happening.
Windows Error #06: Unable to exit windows. Try the door.
Windows Error #07: Door locked. Try control-alt-delete
Windows Error #08: Keyboard locked. Try anything you can think of.
Windows Error #09: Mouse not found. Press mouse button to continue.
Windows Error #09: Game Over. Exiting Windows.
Win95 Error #01: Insufficient money spent in hardware.
Posted: Thu Jun 12, 2003 3:47 am
by RedRasper
[]InTeR[] : Love the post
cactus, I looked earlier on google, but none of it seem relavant to a windows setup, and the posts there do seem to be problem with php not running anything, which I can apart from one script!
Cheers
RedRasper
Posted: Thu Jun 12, 2003 3:56 am
by cactus
I did see a post from the search:
I had the same problem, tried everything, nothing worked.
Then I looked in php.ini and discovered a bad "document_root"
path there..., I fixed it and everything worked perfectly since then
Source

Posted: Thu Jun 12, 2003 4:16 am
by RedRasper
I looked at that as well, been through the php.ini. It seems somepart of the script is actually causing a memory violation in windows and thats killing php.
Posted: Thu Jun 12, 2003 4:18 am
by cactus
What's your setup (version numbers of your software, PHP/Apache etc) ?
Posted: Thu Jun 12, 2003 4:26 am
by RedRasper
Windows 2000 SP3, Apache 2.0.45 and php 4.3.1.
The actual error that comes up from running the script is : (I know some of this is pretty much meaningless!)
The instruction at "0x10030729" refereneced memory at "0x00d9c700". The memory could not be "read"
The I get the apache internal server error screen up, and in the php log is the premature end of headers error
Posted: Thu Jun 12, 2003 4:28 am
by cactus
Have a look on the Apache/PHP bugs, you may be encountering a know issue with your setup.
Posted: Thu Jun 12, 2003 5:33 am
by RedRasper
Well, not sure what the problem was, but the new version of php fixed the problem anyway!
Cheers for your help,
RedRasper