Question:
Hi,
I can not override the php include_path from my .htaccess file. Running my php script gives ‘failure opening xxx.inc’ and still lists the default include path!
I’m sure my syntax is correct – why won’t this work?
Answer:
I noticed you are using one of the cgi-based php versions. When running these you must use your own php.ini file.
.htaccess has no effect. .htaccess only works with the mod_php apache module.
To set php options using the cgi-based php versions, do the following:
1. Create the directory /home/your_username/etc/
2. Put your own custom php.ini file
This will solve the problem.