PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
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
Old 12-14-2004, 12:34 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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.
__________________
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
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
excludes, includes and other tables Macedonian How-to Forum 0 01-22-2005 07:05 PM
RTF never parse... Ross Troubleshooting 8 07-13-2004 08:58 AM
Apache includes in a template sgreen Mod Submissions 0 06-17-2004 03:44 PM
includes & excludes Andreas_Wien Troubleshooting 9 04-25-2004 08:41 AM
unable to parse url marb Troubleshooting 1 03-27-2004 02:06 AM


All times are GMT -8. The time now is 05:16 AM.


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