View Full Version : .htaccess: Invalid command 'php3_include_path'
I added the following line to the .htaccess file in my /www directory:
php3_include_path "./:/big/dom/xdomain/path/path"
(where domain is my domain, and path/path is a directory for my PHP includes)
This throws an Internal Server Error, and my error log says:
.htaccess: Invalid command 'php3_include_path', perhaps mis-spelled or defined by a module not included in the server configuration
Anybody know what I'm doing wrong?
Justin
11-22-2000, 02:33 PM
Sorry about that, you are correct -- I glanced at an existing .htaccess file and typed it out from memory, replacing 'value' with 'variable'. Glad you got it figured out :)
------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support
Justin
11-23-2000, 01:15 AM
If you are on one of the newer servers, you are using PHP4 which has a new format for variables. Where in PHP3 you would say:
</font><font face="Courier" size="3">
php3_include_path[nbsp][nbsp]"./:/big/dom/xdomain/..."
</font><font face="Verdana, Arial" size="2">
This becomes:
</font><font face="Courier" size="3">
php_variable[nbsp][nbsp] "include_path"[nbsp][nbsp] "./:/big/dom/xdomain..."
</font><font face="Verdana, Arial" size="2">
Hope this helps.
------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support
Thanks for the quick response (I'm a new to FutureQuest and am really impressed with the support).
I'm on QBERT, which is PHP4, but using
php_variable "include_path" [path]
also causes an Internal Server Error.[nbsp][nbsp]The error log gives me a similar error:
Invalid command 'php_variable'[nbsp]
Fixed it![nbsp][nbsp]Looks like it should be:
php_value "include_path" [Path]
(At least the server error is gone, haven't checked to make sure the includes work yet).
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.