PDA

View Full Version : .htaccess: Invalid command 'php3_include_path'


rsh
11-22-2000, 12:46 PM
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]&quot;./:/big/dom/xdomain/...&quot;
</font><font face="Verdana, Arial" size="2">
This becomes:
</font><font face="Courier" size="3">
php_variable[nbsp][nbsp] &quot;include_path&quot;[nbsp][nbsp] &quot;./:/big/dom/xdomain...&quot;
</font><font face="Verdana, Arial" size="2">
Hope this helps.

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support

rsh
11-23-2000, 01:32 AM
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 &quot;include_path&quot; [path]

also causes an Internal Server Error.[nbsp][nbsp]The error log gives me a similar error:

Invalid command 'php_variable'[nbsp]

rsh
11-23-2000, 01:36 AM
Fixed it![nbsp][nbsp]Looks like it should be:

php_value &quot;include_path&quot; [Path]

(At least the server error is gone, haven't checked to make sure the includes work yet).