[PHP] Include PHP library file in the .htaccess

2009-01-30 Thread R B
Hello.

Supose that i have this script:

?php

require_once(lib.php);


lib_function();
?

I want to know if there is a way to call the lib.php library from the
.htaccess instead of the PHP script?
Thanks.


Re: [PHP] Include PHP library file in the .htaccess

2009-01-30 Thread Andrew Ballard
On Fri, Jan 30, 2009 at 12:41 PM, R B rbp...@gmail.com wrote:
 Hello.

 Supose that i have this script:

 ?php

 require_once(lib.php);


 lib_function();
 ?

 I want to know if there is a way to call the lib.php library from the
 .htaccess instead of the PHP script?
 Thanks.


.htaccess won't call it since it isn't actually executed, but you can
set up an auto_prepend_file in .htaccess that will be automatically
prepended to all your PHP scripts in the folder (assuming the server
config allows it).

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php