php malformed header from script [SOLVED]
David Bandel
david.bandel
Sat Feb 25 08:52:06 PST 2006
On 2/22/06, Ken Moffat <kmoffat at drizzle.com> wrote:
> james at jamesmcdonald.id.au wrote:
>
> >
> >My Suggestion is check for whitespace and \r or \n before and after the
> >opening and closing <?php ?> tags
> >I found that some of the problems saying incorrect header was due to
> >either them being there or not... can't remember which.
> >
> >
> >
> Good thought. I had a blank line at the beginning of a file causing a
> similar problem a while back.
>
Someone (not here) suggested Apache was trying to run the script
rather than interpret it. He suggested: chmod -x script.
Now I got a different error about Apache couldn't run the file. So I
looked harder at httpd.conf and found I had:
AddHandler cgi-script .cgi .sh .pl .php .php3
removing the .php3 and restarting apache fixed the problem.
Running vs interpreting. Sheesh.
Chalk this one up to brain death.
Ciao,
David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
More information about the Linux-users
mailing list