View Single Post
Old 07-15-2004, 07:54 PM   #20
Destroyer X
Green Mole
 
Join Date: Jun 2004
Location: Oklahoma, U.S.A.
Posts: 19
Well actually, I forgot to upload my updated search_function.txt file into my server. Well, I managed to do that a little while ago. Anyway, I removed the following:

PHP Code:
include_once "/home/destroyerx/public_html/poll/booth.php"
ob_start(); 
require(
"/home/destroyerx/public_html/poll/booth.php"); 
$my_poll ob_get_contents(); 
ob_end_clean(); 
and added the following below $powered_by_link .= "<a href=\"http://www.phpdig.net/\">Powered by PhpDig v.1.8.3</a><br></font>";

PHP Code:
$my_poll_file = include("/home/destroyerx/public_html/search/includes/poll.inc.php"); 
Within my poll.inc.php, I have the following:

PHP Code:
<?php

/*path*/
$poll_path "/home/destroyerx/public_html/poll";

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

$php_poll = new poll();

/*newest poll*/
include_once "/home/destroyerx/public_html/poll/booth.php";
echo 
$php_poll->poll_process("newest");

?>
However, it's still causing the error below:

Fatal error: Cannot redeclare class poll in /home/destroyerx/public_html/poll/include/class_poll.php on line 10

I was wondering if I would need to remodify poll.inc.php, but at the same time, I don't know how I would need to do that. Does anyone have any suggestions?

Ciao for now!
__________________
Visit the Destroyer X Network at http://www.destroyerx.net/
Destroyer X is offline   Reply With Quote