Page 1 of 1

Premature end of script headers

Posted: Sun Dec 28, 2003 2:08 pm
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!

Posted: Sun Dec 28, 2003 2:23 pm
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?