View Single Post
Old 06-21-2004, 04:44 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. If you are only including PHP files, you can remove the get_my_includes function, as this function reads but does not parse PHP files. The function is meant for text files like HTML files.

Next, change the following:

PHP Code:
$my_page_header includes("/home/destroyerx/search/templates/destroyerx/header.php");
$my_page_sidebar includes("/home/destroyerx/search/templates/destroyerx/sidebar.php");
$my_page_main includes("/home/destroyerx/search/templates/destroyerx/main.php"); 
$my_page_footer includes("/home/destroyerx/search/templates/destroyerx/footer.php"); 

to the following:

PHP Code:
$my_page_header = include("/home/destroyerx/search/templates/destroyerx/header.php");
$my_page_sidebar = include("/home/destroyerx/search/templates/destroyerx/sidebar.php");
$my_page_main = include("/home/destroyerx/search/templates/destroyerx/main.php"); 
$my_page_footer = include("/home/destroyerx/search/templates/destroyerx/footer.php"); 

Last, change the following:

PHP Code:
$t_mstrings compact('my_page_header','my_page_footer','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links'); 

to the following:

PHP Code:
$t_mstrings compact('my_page_header','my_page_sidebar','my_page_main','my_page_footer','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links'); 

Keep everything else the same, and remember to remove any 'word' wrapping in the above code.
__________________
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