Premature end of script headers

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
Dummkopf
Forum Newbie
Posts: 21
Joined: Sat May 24, 2003 1:54 pm

Premature end of script headers

Post by Dummkopf »

Hi everybody,

I've got a running Apache 2 with PHP 4.3.2.

Everything works fine until I start code containing recursive funcion calls. It seems as if this would happen especially when there are objects in play.

I've searched forums and google and didn't find a solution, because PHP itself works well with other scripts.

Most articles guess that the problem is to search in Apache.

I'm thankful for any suggestions!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

did you check the syntax of your scripts with

Code: Select all

php -l <scriptfilename>
from the command line as descibed at http://php.net/features.commandline before using it as cgi?
Post Reply