Author |
Message |
12/05/2002 13:19:45
|
Anonymous
|
I installed advanced poll on my computer and when I try to include a poll in a webpage, I get the following error:
Warning: Failed opening 'http://localhost/testing/poll/test.php?poll_id=4' for inclusion (include_path='c:\php4\pear') in d:\www\testing\index.php on line 42
The odd thing is that when I go to "http://localhost/testing/poll/test.php?poll_id=4," the poll shows up with no errors.
To include the poll I included the following commands:
require_once "poll/poll_cookie.php";
require_once "poll/poll_ssi.php?poll_id=4";
Any idea why it can open a poll on a whole page, but not as an "required file?" Thanks!
|
|
12/05/2002 13:21:35
|
Anonymous
|
Oops, the error should've been:
Warning: Failed opening 'http://localhost/testing/poll/poll_ssi.php?poll_id=4' for inclusion (include_path='c:\php4\pear') in d:\www\testing\index.php on line 42
NOT
Warning: Failed opening 'http://localhost/testing/poll/test.php?poll_id=4' for inclusion (include_path='c:\php4\pear') in d:\www\testing\index.php on line 42
Thanks again to anyone who can help!
|
|
12/05/2002 15:54:43
|
Anonymous
|
you cannot include files via http on windows systems (works only on *nix).
use echo $php_poll->poll_process(4) instead.
|
|
13/05/2002 01:26:10
|
Anonymous
|
That's odd, I can include files I made like header.php, etc. I tried your method and now I get this:
Parse error: parse error in d:\www\testing\index.php on line 42
Line 42 is (i tried all variations below):
echo $php_poll->poll_process(4);
echo "$php_poll->poll_process(4)";
echo '$php_poll->poll_process(4)';
|
|
|