If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Need help! Getting required file error w/poll!  XML
Forum Index » Support Forum
Author Message
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!
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!
Anonymous



you cannot include files via http on windows systems (works only on *nix).
use echo $php_poll->poll_process(4) instead.
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)';
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum