Premature end of script headers: php.exe

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
RedRasper
Forum Commoner
Posts: 48
Joined: Thu Apr 24, 2003 6:36 am

Premature end of script headers: php.exe

Post 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
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post 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.
RedRasper
Forum Commoner
Posts: 48
Joined: Thu Apr 24, 2003 6:36 am

Post 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
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post 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

:)
RedRasper
Forum Commoner
Posts: 48
Joined: Thu Apr 24, 2003 6:36 am

Post 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.
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

What's your setup (version numbers of your software, PHP/Apache etc) ?
RedRasper
Forum Commoner
Posts: 48
Joined: Thu Apr 24, 2003 6:36 am

Post 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
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

Have a look on the Apache/PHP bugs, you may be encountering a know issue with your setup.
RedRasper
Forum Commoner
Posts: 48
Joined: Thu Apr 24, 2003 6:36 am

Post by RedRasper »

Well, not sure what the problem was, but the new version of php fixed the problem anyway!

Cheers for your help,

RedRasper
Post Reply