From: Kimberly G. <kg...@gm...> - 2006-04-21 14:33:32
|
Joe, You are brilliant! Thank you so much!!! As you may have guessed at this point, it worked. :) I had added the session_start previously, but I kept getting the error from it coming up in the other file and I was afraid to tamper with it. Thank you so so much for giving me the insight and courage to do so! (Thank you too for an explanation that included the "why" behind things. Perfect.) Hope your day is fabulous and your weekend even better. :) ~Kimberly On 4/21/06, Joe Auty <jo...@ne...> wrote: > Hi Kimberly, > > I wrestled with this same problem... > > What you need to do is reference the survey with the following code: > > <?php > session_start(); > $sid=3D2; > include("/home/knitty/public_html/survey/public/handler.php"); > ?> > > You then need to edit the survey/public/handler.php file and comment > out the session_start(); statement (can't remember what line it > starts on). > > > > The reason this happens is because phpESP seems to be designed to > embed a survey into an existing design and inherit the CSS provided > from the rest of the site. Therefore, there are no HTML headers > rendered by the hander.php file referenced, which allows you to > create your own template: > > <?php > session_start; > $sid=3D2; > ?> > > your HTML header here > > <?php > include blah blah > ?> > > your HTML footer here > > > When you do the preview survey thing, it wraps the survey up in HTML > headers and CSS included by the phpESP software. You can use these > same headers and CSS if you wish. > > > I hope this makes sense... > > > On Apr 21, 2006, at 10:06 AM, Kimberly Gajda wrote: > > > Hello all. > > I am sorry to bother everyone with what seems like may be a common > > question, judging from the results I have found when searching on this > > error string I received. As I am not familiar with the ins and outs of > > php, though, my every adjustment only makes the situation worse. So I > > have returned my code to its original state and am coming to the > > experts. > > I installed phpEsp (v 1.7.5) on my server last night. I created a > > survey, and received the message > > "You have completed this survey design. > > > > To insert this survey into your web page, copy the text below, and > > paste it into the HTML of your page. > > > > <?php $sid=3D2; include("/home/knitty/public_html/survey//public/ > > handler.php");?> > > ..." > > > > I need to have the survey look custom with my site, so I am using that > > option rather than the url they give to access it directly. > > > > Now, the problem starts, whenever I load my quiz.php, I get the quiz, > > but this error message is at the top:"Warning: session_start(): Cannot > > send session cache limiter - headers already sent (output started at > > /home/knitty/public_html/quiz.php:15) in > > /home/knitty/public_html/survey/public/handler-prefix.php on line 54" > > > > Can you benevolent geniuses please help a girl out? > > Thanks so much!! > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > > security? > > Get stuff done quickly with pre-integrated technology to make your > > job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=12164= 2 > > _______________________________________________ > > phpESP-general mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpesp-general > > |