Re: Include PHP library file in the .htaccess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 30, 2009 at 12:41 PM, R B <rbpphp@xxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux