Re: Dreaded Premature end of script headers
| From: | tamouse mailing lists | Date: | Fri, 26 Aug 2011 18:03:32 +0000 |
| Subject: | Re: Dreaded Premature end of script headers | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314624@lists.php.net to get a copy of this message | ||
On Fri, Aug 26, 2011 at 8:03 AM, Stuart Dallas <stuart@3ft9.com> wrote:
> On 26 Aug 2011, at 06:56, tamouse mailing lists wrote:
>
>> I'm encountering this on a script, but I can't figure out where it's
>> actually failing. How do I debug this problem???
>
> Make sure you have error_reporting set to E_ALL and display_errors on in your php.ini. A script
> that stops unexpectedly is almost certainly due to a fatal error, and if you're not seeing the
> error message because either of those settings are not set to display them, you're coding
> blind!
When I turn on debugging, it sets these up. However, then the script
works perfectly.