cherie
12-14-2004, 09:07 AM
I was following the examples set up by Charter in this post (http://www.phpdig.net/forum/showthread.php?t=348&highlight=includes), 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):
function get_my_includes($filename) {
**if (file_exists($filename)) {
****$buffer = "";
****$handle = fopen($filename, "r");
****while (!feof($handle)) {
******$buffer .= fgets($handle, 4096);
****}
****fclose($handle);
****return $buffer;
**}
}
on search.php (this is line 63)
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
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):
function get_my_includes($filename) {
**if (file_exists($filename)) {
****$buffer = "";
****$handle = fopen($filename, "r");
****while (!feof($handle)) {
******$buffer .= fgets($handle, 4096);
****}
****fclose($handle);
****return $buffer;
**}
}
on search.php (this is line 63)
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