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 .
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
lesystem?
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/pol
[mailto:[EMAIL PROTECTED]]
Sent: 13 November 2001 13:41
To: PHP-DB
Subject: Re: [PHP-DB] Problem with include()
Does include accept parameter?
I have never tried.
I think php will try to find a file called poll.php?id=KnChooseBoots not a
file called poll and give argument for it. Also why do you need
Original Message -
From: TorrentUK [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 11:24 AM
Subject: Re: [PHP-DB] Problem with include()
Hi Peter,
I'll be surprised if that's it as I am running this through an Apache
server
which insists on the \ being /
: Tuesday, November 13, 2001 1:16 PM
Subject: Re: [PHP-DB] Problem with include()
According to the php manual it can pass args and values.
The value I pass in through the $id then determines what poll is
presented
to the visitor (poll.php opens a file called $id.txt, which contains the
poll's title
On Tuesday 13 November 2001 23:16, TorrentUK wrote:
According to the php manual it can pass args and values.
I think this is only true *if* you're including a remote file, ie
through HTTP.
The value I pass in through the $id then determines what poll is
presented to the visitor (poll.php
--
From: TorrentUK [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 1:16 PM
Subject: Re: [PHP-DB] Problem with include()
According to the php manual it can pass args and values.
The value I pass in through the $id then determines what poll is
presented
to the
The manual reads
include (\http://someserver/file.php?varone=1vartwo=2\;);
and...
require($DOCUMENT_ROOT . \/header.html\);
As you can see the upper one among the above line refers
to opening a remote file for inclusion via http.
If it the server is somewhat properly configured
you will not be