From: Matthew G. <gr...@mu...> - 2005-07-08 15:19:35
|
Unless you really need to embed the survey in another page, just use the auto-publish url listed. On Fri, 2005-07-08 at 16:12 +0100, boardtc wrote: > The last wizard page says : > > To insert this survey into your web page, copy the text below, and > paste it into the HTML of your page. > <?php $sid=1; include("c:\program > files\easyphp\www\phpesp//public/handler.php");?> > Once activated you can also access the survey directly from the following URL. > http://ntserver/phpESP/public/survey.php?name=test > > > So i created test.php : > > <html> > <head> > <title>PHP Test</title> > </head> > <body> > <?php $sid=1; include("c:\program > files\easyphp\www\phpesp//public/handler.php");?> > <a href="http://ntserver/phpESP/public/survey.php?name=test">survey</a> > </body> > </html> > > going to this page gives : > [ Error processing survey: Survey is not active. ] survey > > I then tried > > <?php $sid=1; include("//Ntserver/EasyPHP/www/phpESP/public/handler.php");?> > > instead of the above <?php and this gives : > > Warning: main(//Ntserver/EasyPHP/www/phpESP/public/handler.php): > failed to open stream: Permission denied in c:\program > files\easyphp\www\phpesp\test.php on line 2 > > Warning: main(): Failed opening > '//Ntserver/EasyPHP/www/phpESP/public/handler.php' for inclusion > (include_path='.;C:\Program Files\EasyPHP\php\pear\') in c:\program > files\easyphp\www\phpesp\test.php on line 2 > > I could not find anything in the faq. sorry for the newbie question. > > Thanks a lot, > -- mcg ------------------------------------- The IT Lab (http://www.itlab.musc.edu) |