Re: [nyphp-talk] warning message on the php page

2008-02-06 Thread Daniel Convissor
On Wed, Feb 06, 2008 at 10:59:56AM -0500, Dan Cech wrote: > > There are many reasons for adding a comment at the end of the file, but > the single biggest one is to prevent the situation where some helpful > developer looks at the file and says "Hey, they forgot a closing ?> tag > here". So, w

Re: [nyphp-talk] warning message on the php page

2008-02-06 Thread Dan Cech
Daniel Convissor wrote: Folks: On Tue, Feb 05, 2008 at 08:11:24PM -0500, Dan Cech wrote: chad qian wrote: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/getatwoq/public_html/chad/registrationverified.php:3) i

Re: [nyphp-talk] warning message on the php page

2008-02-06 Thread Daniel Convissor
Folks: On Tue, Feb 05, 2008 at 08:11:24PM -0500, Dan Cech wrote: > chad qian wrote: > > > >Warning: session_start() [function.session-start]: Cannot send > >session cache limiter - headers already sent (output started at > >/home/getatwoq/public_html/chad/registrationverified.php:3) in > >/home/ge

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Edward Potter
I guess after debugging a zillion lines of php code (by the way some great responses here). A tip? BREAK IT DOWN! Start with if you have too. Add your code line by line. YOU WILL ALWAYS be able to fix the bug. In the end, it's just a chip made of silicon -which is really just sand! "Silicon

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Ken Robinson
At 08:11 PM 2/5/2008, Dan Cech wrote: chad qian wrote: I try to debug one php page.Everything is fine but I always get this error message on top when I load the web page: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started a

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Dan Cech
chad qian wrote: I try to debug one php page.Everything is fine but I always get this error message on top when I load the web page: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/getatwoq/public_html/chad/regi

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread tedd
At 4:25 PM -0500 2/5/08, David Krings wrote: chad qian wrote: Hi, I try to debug one php page.Everything is fine but I always get this error message on top when I load the web page: *Warning*: session_start() [_function.session-start_ ]: Cannot s

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Tim Lieberman
The only rule is that you need to call session_start() before any output is sent to the browser. You can accomplish this by either making sure that your script won't echo/print any data (and won't print notices, warnings, etc) before session_start() is called, or you can turn on output bufferi

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Ben Sgro
Hello all, I have a class that handles session and that is included further down in the class. Typically file struct: PHP Config (dev, live, etc) Includes Instantiate classes (session_start( ) gets called in the session objects constructor) Support functions Main code, usua

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread David Krings
chad qian wrote: Hi, I try to debug one php page.Everything is fine but I always get this error message on top when I load the web page: *Warning*: session_start() [_function.session-start_ ]: Cannot send session cache limiter - headers already

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Urb LeJeune
Make sure your: That's line one below. Urb Dr. Urban A. LeJeune, President E-Government.com 609-294-0320 800-204-9545 ~ E-Government.com lowers you costs while increasing your expectations. __

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Urb LeJeune
I try to debug one php page.Everything is fine but I always get this error message on top when I load the web page: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Ken Robinson
Quoting shaiju davis <[EMAIL PROTECTED]>: Hi please add ob_start() at the top of the php page. IMHO using ob_start() just masks the problem, it doesn't fix it. The real solution is to find out why the script is sending output before starting the session and start the session before doin

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread shaiju davis
Hi please add ob_start() at the top of the php page. Thanks, Shaiju Davis On Feb 5, 2008 9:22 PM, chad qian <[EMAIL PROTECTED]> wrote: > Hi, > I try to debug one php page.Everything is fine but I always get this error > message on top when I load the web page: > > *Warning*: ses

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Ken Robinson
Quoting chad qian <[EMAIL PROTECTED]>: Hi, I try to debug one php page.Everything is fine but I always get this error message on top when I load the web page: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at

[nyphp-talk] warning message on the php page

2008-02-05 Thread chad qian
Hi, I try to debug one php page.Everything is fine but I always get this error message on top when I load the web page: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/getatwoq/public_html/chad/registrationve