Re: [PHP] Trouble setting include_path

2004-05-02 Thread Curt Zirzow
* Thus wrote Pablo Gosse ([EMAIL PROTECTED]):
 Hi folks.  I'm trying to use an .htaccess file to set my include path
 and for some reason it's not overriding the value in php.ini, but
 instead still shows and uses the original value from php.ini, not what
 is in the .htaccess file.

Most default apache configurations now a days dont have .htaccess
enabled by default (for performance reasons.) Or some hosting
services implicitly turn this option off. So no matter what
you put in the .htaccess file, it will be ignored.

You can test this by putting in your .htaccess file something like:
bogus_statment

if you reload your page on your server and dont get a 500 server
error, apache isn't even looking at the .htaccess file. You can
set set the include_path using the php function ini_set().


Another possibility is that  the hosting company had issued an
apache command:
  php_admin_value include_path /path/for/include

Then you can't modify the include_path at all.


Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

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



RE: [PHP] Trouble setting include_path

2004-05-02 Thread Pablo Gosse
snip
Most default apache configurations now a days dont have .htaccess
enabled by default (for performance reasons.) Or some hosting
services implicitly turn this option off. So no matter what
you put in the .htaccess file, it will be ignored.

You can test this by putting in your .htaccess file something like:
bogus_statment

if you reload your page on your server and dont get a 500 server
error, apache isn't even looking at the .htaccess file. You can
set set the include_path using the php function ini_set().
/snip

Thanks, Curt.  That was indeed the problem.

Cheers,
Pablo

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