Hi Peter, I'll be surprised if that's it as I am running this through an Apache server which insists on the \ being / Also all references to my images are / and they work fine. In fact, I think I mentioned, it calls the poll.php if I drop the argument part (?id=KnChooseBoots). It's all very strange.
Thanks for the response. I might just give your suggestion just to be sure. Rgds -torrent "Peter Lovatt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Could it be windows doesn't like the '/' in the path. OK on a webpage, but > not directly into the filesystem? > > Peter > > > -----Original Message----- > > From: TorrentUK [mailto:[EMAIL PROTECTED]] > > Sent: 13 November 2001 12:47 > > To: [EMAIL PROTECTED] > > Subject: [PHP-DB] Problem with include() > > > > > > Can anyone spot why I get the error > > > > Warning: Failed opening > > 'd:/www/htdocs/ski-info-online/poll.php?id=KnChooseBoots' for inclusion > > (include_path='') in > > d:\WWW\htdocs/ski-info-online/skiKnSkiBoots.php on line > > 113 > > > > Here is the calling line: > > > > <?php include($DOCUMENT_ROOT . > > "/ski-info-online/poll.php?id=KnChooseBoots"); ?> > > > > If I call poll.php?id=KnChooseBoots from the browser it works (exactly the > > same path). > > If I drop the argument it works (i.e. php include($DOCUMENT_ROOT . > > "/ski-info-online/poll.php"); ). > > So what the blazes is happening? > > > > The manual reads: > > > > /* Works. */ > > include ("http://someserver/file.php?varone=1&vartwo=2"); > > > > and... > > > > require($DOCUMENT_ROOT . "/header.html"); > > > > which are the techniques I think I have used. > > Thanks for any help > > -torrent > > > > > > > > > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]