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 
Comments includen  XML
Forum Index » German Forum
Author Message
Anonymous



Hi Ich hab da ein kleines Problem bei includen der Comments
Und zwar include ich die Comments so




  1. <?php  
  2.   
  3. /* path */  
  4. $poll_path = "/home/vhosts/?????????/??????????/htdocs/?????/poll/pollphp/textfile";  
  5.   
  6. require $poll_path."/include/config.inc.php";  
  7. require $poll_path."/include/class_poll.php";  
  8. require $poll_path."/include/class_pollcomment.php";  
  9.   
  10. $php_poll = new pollcomment();  
  11.   
  12. /* poll */  
  13. $php_poll->set_template_set("graphic");  
  14. echo $php_poll->view_poll_result(1);  
  15.   
  16.   
  17. /* poll comments */  
  18. $php_poll->set_template("poll_comment");  
  19. $php_poll->set_comments_per_page(15);  
  20. $php_poll->set_date_format("d/m/Y H:i");  
  21. $php_poll->data_order_by("time","desc");  
  22. echo $php_poll->view_poll_comments(1);  
  23. echo $php_poll->get_comment_pages(1);   
  24.   
  25.   
  26.   
  27.   
  28. ?>   


Sobald ich dann aber die Seite aufrufe in der ich die Comments included habe kommt dieser Fehler

  1. 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.
 
Forum Index » German Forum
Go to:   
Based on the open source JForum