PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Parse error with includes (http://www.phpdig.net/forum/showthread.php?t=1633)

cherie 12-14-2004 09:07 AM

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

Charter 12-14-2004 12:34 PM

Note the rest of this thread. You don't need the get_my_includes function if trying to include PHP files. Anyway, if you are meaning to use the get_my_includes function, maybe it's placed incorrectly or something is up with those asterisks.


All times are GMT -8. The time now is 11:20 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.