From: Franky V. L. <lie...@te...> - 2010-01-01 20:50:50
|
Read the examples: # this must be included before any output happens include("public/phpESP.first.php"); So include this before any html output even starts, don't try to start the session yourself already. Franky On Fri, 1 Jan 2010 09:01:22 -0500 "Josh Guttman" <jgu...@ma...> wrote: > Dear phpESP folks, > > > > I have used your software to build a client survey, and am happy with > the way it looks. However; I have had some issues with > "session_start" warnings, and would really appreciate some assistance > in rectifying these problems. I have done extensive searches, and > made some progress, but still need help. > > > > Initially the embedded survey needed php.first included - I did that, > then the session_start warnings began, after reading online posts, I > added: > > > > <?php session_start();?> at the end of my <head> section, on the > html page. I tried to put it on line 1, but it wouldn't save it there. > > > > That got rid of the Warning when linking to my embedded survey: MAH > Survey <http://www.mark-a-hydrant.com/MAH_Survey.php> > > However; I still get "function.session-start" appearing on the top > left of the web page. > > > > The following messages appear when the survey is submitted: > > > > Warning: session_start() [function.session-start]: Cannot send session > cookie - headers already sent > > > > by (output started at /home/XXXXXX/public_html/MAH_Survey.php:12) in > > > > /home/XXXXXX/public_html/MAH_Survey.php on line 33 > > > > Warning: session_start() [function.session-start]: Cannot send > session cache limiter - headers > > > > already sent (output started > at /home/XXXXXXX/public_html/MAH_Survey.php:12) in > > > > /home/XXXXXXX/public_html/MAH_Survey.php on line 33 > > > > > > > > Notice: Undefined index: rid in > /home/XXXXXXX/public_html/phpesp/public/phpESP.first.php on line 41 > > > > Notice: Undefined index: sec in > /home/XXXXXXX/public_html/phpesp/public/phpESP.first.php on line 41 > > > > Warning: Cannot modify header information - headers already sent by > (output started at > > > > /home/XXXXXXX/public_html/MAH_Survey.php:12) in > > > > /home/XXXXXXX/public_html/phpesp/public/phpESP.first.php on line 72 > > > > > > I would really appreciate any help you can provide. > > Happy New Year! > > > > > > Best Regards, > > Josh Guttman > > Mark-A-Hydrant, LLC > > > > > |
From: Franky V. L. <lie...@te...> - 2010-01-02 18:16:17
|
Please check the examples subdir. Sessions are started by sending cookies to the client and these cookies need to be send before any html output begins, even before the first <html> tag, that's why I said you need to include this before any html output begins. Franky On Sat, 2 Jan 2010 08:26:36 -0500 "Josh Guttman" <jgu...@ma...> wrote: > Franky, > > Thanks for the response. > I placed include ("public/phpESP.first.php"); at the top of my head > section, it won't allow me to save it any nearer the top of the page. > The warnings are gone, however; "function.session-start" is still > appearing on the top left of the web page. > > I would love to see examples -- could you please tell me where to > find them? > > Thanks again. > > Best Regards, > Josh Guttman > Mark-A-Hydrant, LLC > 2863 Edgemont Drive > Allentown, PA 18103 > Direct (908) 902-9595 > Ph/Fax (888) 399-5532 > -----Original Message----- > From: Franky Van Liedekerke [mailto:lie...@te...] > Sent: Friday, January 01, 2010 3:51 PM > To: php...@li... > Subject: Re: [phpesp-general] session_start warnings > > Read the examples: > > # this must be included before any output happens > include("public/phpESP.first.php"); > > So include this before any html output even starts, don't try to start > the session yourself already. > > Franky > > On Fri, 1 Jan 2010 09:01:22 -0500 > "Josh Guttman" <jgu...@ma...> wrote: > > > Dear phpESP folks, > > > > > > > > I have used your software to build a client survey, and am happy > > with the way it looks. However; I have had some issues with > > "session_start" warnings, and would really appreciate some > > assistance in rectifying these problems. I have done extensive > > searches, and made some progress, but still need help. > > > > > > > > Initially the embedded survey needed php.first included - I did > > that, then the session_start warnings began, after reading online > > posts, I added: > > > > > > > > <?php session_start();?> at the end of my <head> section, on the > > html page. I tried to put it on line 1, but it wouldn't save it > > there. > > > > > > > > That got rid of the Warning when linking to my embedded survey: MAH > > Survey <http://www.mark-a-hydrant.com/MAH_Survey.php> > > > > However; I still get "function.session-start" appearing on the top > > left of the web page. > > > > > > > > The following messages appear when the survey is submitted: > > > > > > > > Warning: session_start() [function.session-start]: Cannot send > > session cookie - headers already sent > > > > > > > > by (output started at /home/XXXXXX/public_html/MAH_Survey.php:12) > > in > > > > > > > > /home/XXXXXX/public_html/MAH_Survey.php on line 33 > > > > > > > > Warning: session_start() [function.session-start]: Cannot send > > session cache limiter - headers > > > > > > > > already sent (output started > > at /home/XXXXXXX/public_html/MAH_Survey.php:12) in > > > > > > > > /home/XXXXXXX/public_html/MAH_Survey.php on line 33 > > > > > > > > > > > > > > > > Notice: Undefined index: rid in > > /home/XXXXXXX/public_html/phpesp/public/phpESP.first.php on line 41 > > > > > > > > Notice: Undefined index: sec in > > /home/XXXXXXX/public_html/phpesp/public/phpESP.first.php on line 41 > > > > > > > > Warning: Cannot modify header information - headers already sent by > > (output started at > > > > > > > > /home/XXXXXXX/public_html/MAH_Survey.php:12) in > > > > > > > > /home/XXXXXXX/public_html/phpesp/public/phpESP.first.php on line 72 > > > > > > > > > > > > I would really appreciate any help you can provide. > > > > Happy New Year! > > > > > > > > > > > > Best Regards, > > > > Josh Guttman > > > > Mark-A-Hydrant, LLC > > > > > > > > > > > > ---------------------------------------------------------------------------- > -- > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast > and easy Join now and get one step closer to millions of Verizon > customers http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > phpESP-general mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general > > |