how to include .lib files in php
Posted: Wed Feb 10, 2010 1:40 pm
Hi,
I am a newbie to PHP. I am trying to include a header_footer.lib file to my php script.
Currently I am trying with two options:
1. include("./header_footer.lib");
Output :
Parse error: syntax error, unexpected T_STRING in /var/www/cgi-bin/header_footer.lib on line 17
2.include ("/header_footer.lib");
Output :
Warning: include(/header_footer.lib) [function.include]: failed to open stream: No such file or directory in /var/www/cgi-bin/bloomsearch.php on line 9
Warning: include() [function.include]: Failed opening '/header_footer.lib' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/cgi-bin/bloomsearch.php on line 9
Note :The header_footer.lib file contains some sub routines to be used for web pages.Please help me in solving this issue
Also, how to call those subs in php script.
Thanks in Advance,
Lathangi
I am a newbie to PHP. I am trying to include a header_footer.lib file to my php script.
Currently I am trying with two options:
1. include("./header_footer.lib");
Output :
Parse error: syntax error, unexpected T_STRING in /var/www/cgi-bin/header_footer.lib on line 17
2.include ("/header_footer.lib");
Output :
Warning: include(/header_footer.lib) [function.include]: failed to open stream: No such file or directory in /var/www/cgi-bin/bloomsearch.php on line 9
Warning: include() [function.include]: Failed opening '/header_footer.lib' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/cgi-bin/bloomsearch.php on line 9
Note :The header_footer.lib file contains some sub routines to be used for web pages.Please help me in solving this issue
Thanks in Advance,
Lathangi