Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
27/02/2003 22:34:33
|
Anonymous
|
Hello there, I was hoping I could get some help on this.
I just installed advanced poll, and I looks good. However, whenever I insert the php code the poll does not show up. I'm trying to put it into our homepage, which already has some php in it (a news script, which includes a text file). The news script always executes fine, but it seems like the poll script is just ignored. Is there something I'm missing? I've got:
<?php
include_once "/home/shrubweb/public_html/poll/poll_cookie.php";
?>
At the top, followed by the html for the page. Later on my news script looks like this:
<?php
include("http://www.oftheshrub.com/news/news/news.txt");
?>
And a bit later comes the actual poll script:
<?php
include_once "/home/shrubweb/public_html/poll/booth.php";
echo $php_poll->poll_process("newest");
?>
As I said, the news always works, but the poll never does. Even if I insert an echo statement into the poll script it doesn't show up on the page. However, if I make an entirely new page with only the poll php, it works fine. Seems wierd.
Any help would be appreciated, I'm pretty new to php, so I might be missing something.
-DR-
|
|
27/02/2003 22:38:46
|
Anonymous
|
Oh, btw -
I also put in the following before anything else:
<?php require "poll_cookie.php"; ?>
And still a no go.
-DR-
|
|
28/02/2003 00:07:43
|
Anonymous
|
you forgot to put that
/* path */
$poll_path = "/home/akitafr/www/poll";
require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();
$php_poll = new poll();
before the echo
Look at the demo_1 file
|
|
|
|
|
|
Based on the open source JForum
|