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 
Can't see poll  XML
Forum Index » Support Forum
Author Message
Anonymous



i put this code where i want the poll "<?php
include_once "/home/plays/public_html/poll/booth.php";
echo $php_poll->poll_process(4);
?> but when i view the page all i see is "poll_process(4); ?>" and not the poll. What am i doing wrong?
Anonymous



Ah, you do'nt have the 'full' path from your server which should look something like:
/* path */
$poll_path = "/home/youraccount/yourusername/www.yoursite/public_html/poll";
presuming your directory is in public_html an called poll

This works ok on my site



<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>

<?php

/* path */
$poll_path = "/home/youraccount/yourusername/www.yoursite/public_html/poll";

require $poll_path."/include/config.inc.php";
require $poll_path."/include/class_poll.php";

$php_poll = new poll();

/* the first poll */
echo $php_poll->poll_process(1);
Anonymous



Nope still didn't work . This is what i have for my WHOLE page
"<?php
// Important! You have to include it before your html code
include_once "/home/plays/public_html/poll/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "/home/plays/public_html/poll/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>"
dante
Beginner

Joined: 28/05/2003 00:23:28
Messages: 5
Offline

Hi there again, are you using .php pages on your site or something else?

Dave the moose
Anonymous



I have some php pages on my site but the page i want to put polls on is html. I did the db install and it all works right. I just can't put any of the polls on my site.
dante
Beginner

Joined: 28/05/2003 00:23:28
Messages: 5
Offline

Hi, sorry it's all a bit slow this...to use the script as you want to it has to saved .php - otherwise you can use an ssi call into a .shtml page ( as you will see in demo5..you will have to use one or the other - it will not work in .html/.htm pages

hope this helps

cheers

Dave the moose
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum