View Single Post
Old 12-14-2004, 09:07 AM   #1
cherie
Green Mole
 
Join Date: Dec 2004
Posts: 1
Parse error with includes

I was following the examples set up by Charter in this post, but I am getting two errors

Parse error: parse error in /home/virtual/site212/fst/var/www/html/phpdig2/libs/search_function.php on line 4

Fatal error: Call to undefined function: phpdigsearch() in /home/virtual/site212/fst/var/www/html/phpdig2/search.php on line 63

on search_function.php the code is (line 4 in bold):
PHP Code:
function get_my_includes($filename) { 
*[
b]*if (file_exists($filename)) { [/b]
****
$buffer ""
****
$handle fopen($filename"r"); 
****while (!
feof($handle)) { 
******
$buffer .= fgets($handle4096); 
****} 
****
fclose($handle); 
****return 
$buffer
**} 

on search.php (this is line 63)
PHP Code:
phpdigSearch($id_connect$query_string$option$refine,
              
$refine_url$lim_start$limite$browse,
              
$site$path$relative_script_path$template$adlog_flag$rssdf); 

What am I doing wrong?

thanks

cherie
cherie is offline   Reply With Quote