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 |
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 12/07/2003 01:47:42
|
Anonymous
|
Hi Ich hab da ein kleines Problem bei includen der Comments
Und zwar include ich die Comments so
- <?php
-
-
- $poll_path = "/home/vhosts/?????????/??????????/htdocs/?????/poll/pollphp/textfile";
-
- require $poll_path."/include/config.inc.php";
- require $poll_path."/include/class_poll.php";
- require $poll_path."/include/class_pollcomment.php";
-
- $php_poll = new pollcomment();
-
-
- $php_poll->set_template_set("graphic");
- echo $php_poll->view_poll_result(1);
-
-
-
- $php_poll->set_template("poll_comment");
- $php_poll->set_comments_per_page(15);
- $php_poll->set_date_format("d/m/Y H:i");
- $php_poll->data_order_by("time","desc");
- echo $php_poll->view_poll_comments(1);
- echo $php_poll->get_comment_pages(1);
-
-
-
-
- ?>
Sobald ich dann aber die Seite aufrufe in der ich die Comments included habe kommt dieser Fehler
- Fatal error: Cannot redeclare class poll in home/vhosts/?????????/??????????/htdocs/?????/poll/pollphp/textfile/include/class_poll.php on line 10
Ich werde da nicht ganz schlau draus kann mir da vieleicht einer weiterhelfen.
|
|
|
|
|
|
Based on the open source JForum
|