View Single Post
Old 07-15-2004, 08:33 PM   #22
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Your poll.inc.php includes class_poll.php and booth.php, and then booth.php includes class_poll.php again, hence the error.

In search_function.php do:
PHP Code:
ob_start();
require(
"/home/destroyerx/public_html/search/includes/poll.inc.php");
$my_poll_file ob_get_contents();
ob_end_clean(); 
and also in search_function.php do:
PHP Code:
$t_mstrings compact('my_poll_file','js_for_clicks','rss_feed_link','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links'); 
But replace your poll.inc.php with:
PHP Code:
<?php

$include_path 
"/home/destroyerx/public_html/poll"

if (!isset(
$PHP_SELF)) {
    global 
$HTTP_GET_VARS$HTTP_POST_VARS$HTTP_SERVER_VARS;
    
$PHP_SELF $HTTP_SERVER_VARS["PHP_SELF"];
    if (isset(
$HTTP_GET_VARS)) {
        while (list(
$name$value)=each($HTTP_GET_VARS)) {
            $
$name=$value;
        }
    }
    if (isset(
$HTTP_POST_VARS)) {
        while (list(
$name$value)=each($HTTP_POST_VARS)) {
            $
$name=$value;
        }
    }
    if(isset(
$HTTP_COOKIE_VARS)){
        while (list(
$name$value)=each($HTTP_COOKIE_VARS)){
            $
$name=$value;
        }
    }
}

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

$php_poll = new poll();
echo 
$php_poll->set_include_path($include_path);

?>
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote