I am still learning about .htaccess files - what you suggested could be useful
to me.
The approach I have taken is to use the auto_prepend feature, namely
php_value auto_prepend_file "/path/to/autoprepend.php"
This is then a single hook, and the contents of autoprepend.php
can then be as complex as you like.
Regs
Brian
At 11:33 11/07/2001 -0700, Aaron Bennett wrote:
>Hi There,
> I currently use .htaccess files to override the include path, which works
>great for me... One of my concerns was the portability of the code, and the
>possibility of not having control of http.conf....
>
>I'm now in the process of porting some of the sites onto a winnt architecure
>(but still using apache as my webserver...). The contents of some of these
>.htaccess files looks simelar to:
>
>php_value include_path
>".:/home/www/htdocs/php-lib:/home/www/htdocs/includes"
>
>unfortunatly, apache for windows would prefer the format somewhat like:
>
>php_value include_path ".;c:\web\site\php-lib;c:\php\whatever\includes"
>
>(note the use of ';' rather than ':' as well)
>
>So my question, is whats the best way to make the site's as portable as can
>be? I assume that i could go thru _all_ the code and make include references
>relative rather than relying on the config to find include()'s.... Any
>suggestions?
>
>--
>Aaron Bennett
>[EMAIL PROTECTED]
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
-------------------------
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
Phone: +612-93197901
Web: http://www.steptwo.com.au/
Email: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]