[PHP] _POST and Session ending Problem

2011-08-26 Thread can kalyoncu
Hello, I created a membership script. It was working fine. Members can fill out form and send it and they can continue to use site. But after a while I had to change host. On the new server when the members fill out form and then session ends. According to my tests when i delete $var = $_POST['var

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] Re: Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 7:59 AM, Richard Riley wrote: > tamouse mailing lists writes: > >> I'm encountering this on a script, but I can't figure out where it's >> actually failing. How do I debug this problem??? > > Depends on what you mean by "script". By script, I mean php script that runs fro

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] Re: Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 7:41 AM, David Robley wrote: > 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??? > > Look first for unclosed curly braces {} The script passes all syntax checks. > > Y

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

[PHP] Re: Dreaded Premature end of script headers

2011-08-26 Thread Richard Riley
tamouse mailing lists writes: > I'm encountering this on a script, but I can't figure out where it's > actually failing. How do I debug this problem??? Depends on what you mean by "script". Do a binary search with a php line that says "I got here". -- PHP General Mailing List (http://www.php.

[PHP] Re: Dreaded Premature end of script headers

2011-08-26 Thread David Robley
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??? Look first for unclosed curly braces {} You might find it useful to try an editor that does bracket matching and highlighting as an aid to findin

Re: [PHP] How to catch an irregular end of an application?

2011-08-26 Thread Tim Streater
On 26 Aug 2011 at 01:33, Andreas wrote: > what is the best practice to catch an irregular end of an application? > The browser might crash or the user closes accidently the browser window > decides to jump away to his favourite bloq without loging out of my > application. > Is there some way to