Problem with include()

From: Date: Tue, 13 Nov 2001 12:46:42 +0000
Subject: Problem with include()
Groups: php.db 
Request: Send a blank email to php-db+get-14275@lists.php.net to get a copy of this message
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

« previous php.db (#14275) next »