Re: [PHP] Premature end of script headers: php.exe

From: David Otton (phpmail_at_jawbone.freeserve.co.uk)
Date: 12/04/03


To: Goran Ristic <G.Ristic@nis-ekspres.co.yu>
Date: Thu, 04 Dec 2003 13:10:09 +0000

On Thu, 4 Dec 2003 13:17:57 +0100 , you wrote:

>I have a problem. When I start my PHP script, I get message "Premature end
>of script headers: php.exe". How can I solve this problem?

Run from the command line, or via a webserver? IIS or Apache? CGI or Apache
module? Do all scripts throw the error, or just some? What about an empty
script? What error code is the webserver returning? What do your error logs
show?

(My guess is that Apache is complaining that PHP is misconfigured or can't
be found - maybe a bad ScriptAlias or Action line in httpd.conf. But you're
not giving us much to work with here.)



Relevant Pages

  • Need help on designing a project
    ... Basically, what I want is a web application, which might run as CGI ... The question is about this homemade webserver: ... CGIs are python scripts, I thought that performance would be best if they ... get closed when the script execution finishes, ...
    (comp.lang.python)
  • Re: Document warehouse for/on VMS??
    ... >a) Store the file name, location, description in a rdbms or OR store and ... the webserver without an intermediate file; ... But Apache 1.3 doesn't ... third-party CGI tools available. ...
    (comp.os.vms)
  • SMPT Connection Errors
    ... I have a strange strange problem setting up some CGI scripts on a new ... I have two scripts which send email. ... Both scripts are pointing to the same SMTP server and both work fine ... when run from our old webserver. ...
    (comp.lang.perl.misc)
  • Re: inclusion page in url
    ... CGI scripts have been. ... So this behaviour happens even on apache without PHP then?? ... "These environment variables are set when the server executes the ...
    (comp.lang.php)
  • Re: fastCGI
    ... The files I serve from my webserver are owned by me. ... The CGI scripts the webserver runs are owned be me. ... The directory permissions for the webserver, ... These are the permissions that let apache read *your* files. ...
    (Fedora)