From: Joe A. <jo...@ne...> - 2006-04-21 14:17:00
|
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 =20 out the session_start(); statement (can't remember what line it =20 starts on). The reason this happens is because phpESP seems to be designed to =20 embed a survey into an existing design and inherit the CSS provided =20 from the rest of the site. Therefore, there are no HTML headers =20 rendered by the hander.php file referenced, which allows you to =20 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 =20 headers and CSS included by the phpESP software. You can use these =20 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/=20 > 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, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=121642= > _______________________________________________ > phpESP-general mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general |