Re: [PHP] Dreaded Premature end of script headers

2011-08-29 Thread Steve Staples
On Sat, 2011-08-27 at 17:55 -0400, Daniel P. Brown wrote: > On Sat, Aug 27, 2011 at 01:01, Jim Lucas wrote: > > > > Well, you might have to go about this the long way. I suggest you cut larger > > sections of code out until you get a working script. Then start putting it > > back together. > >

Re: [PHP] Dreaded Premature end of script headers

2011-08-27 Thread Daniel P. Brown
On Sat, Aug 27, 2011 at 01:01, Jim Lucas wrote: > > Well, you might have to go about this the long way. I suggest you cut larger > sections of code out until you get a working script.  Then start putting it > back together. If possible, I'd also try running it from the production box CLI. It

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread Jim Lucas
On 8/26/2011 4:49 PM, tamouse mailing lists wrote: On Fri, Aug 26, 2011 at 6:48 PM, tamouse mailing lists wrote: On Fri, Aug 26, 2011 at 1:42 PM, Geoff Shang wrote: I put this into Google and got this: http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_what_they_mean.p

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread Camilo Sperberg
I had the same problem the other day and it was because a certain index in an array didn't exist, this array was constructed from the db and later i was trying to access this array. So my best guess would be that if it happens only at production and db data is involved, i would definitly think

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 6:48 PM, tamouse mailing lists wrote: > On Fri, Aug 26, 2011 at 1:42 PM, Geoff Shang wrote: >> I put this into Google and got this: >> http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_what_they_mean.php#premature > > > Yeah, I saw that too. I do kn

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 1:42 PM, Geoff Shang wrote: > I put this into Google and got this: > http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_what_they_mean.php#premature Yeah, I saw that too. I do know the mechanism that is happening. I just can't figure out where the p

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread Geoff Shang
On Fri, 26 Aug 2011, tamouse mailing lists wrote: The log says what I said: Premature end of script headers I put this into Google and got this: http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_what_they_mean.php#premature As I understand it, the webserver is compl

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 8:06 AM, John Black wrote: > On 26.08.2011 07: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??? >> > > What does you log say? The log says what I said: Premature e

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 8:03 AM, Stuart Dallas 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 displ

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 2:17 AM, Кирилл wrote: > Actually i think you outputing something in script, before you use headers - > there are several solutions: > 1)make your headers functions at the top of your script > 2)if there is no any output - you should look for invisible characters like > BOM

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread John Black
On 26.08.2011 07: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??? What does you log say? Make sure that you turn error reporting on and crank up the info it spits out. I always develop with

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread Stuart Dallas
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