i've installed Apache and PHP under windows and nearly everything works fine...

I just can't set my include paths in the .htaccess - file.

Apache doesn't recognize the commands "php_value" AND/OR "include_path" in this .htaccess - file...

error messages: Invalid command "include_path"... / .."php_value"...

anyone can help?

thanks...

    this is an example .htaccess for include path

    phpvalue include_path my/include/path

    you can also use [man]ini_set[/man] to set your path in your code

      thanks, but that doesn't work either....

      [Fri Aug 01 15:54:19 2003] [alert] [client 127.0.0.1] c:/programme/apache group/apache/htdocs/pms_debug/.htaccess: Invalid command 'phpvalue', perhaps mis-spelled or defined by a module not included in the server configuration

        sorry, if forgot an underscore

        php_value include_path my/include/path

        all one line, no line breaks

          yes.. 😃

          but that's what's my problem.. it doesn't work.. i get the same error as described above..

            ...and that's the error message:

            c:/programme/apache group/apache/htdocs/pms_debug/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration

              hmmm don't know what to tell ya, that is how you would do it

              have you tried the [man]ini_set[/man] way yet

                don't know, what i should do with ini_set ... 🙁

                  you can try this, in your code before you want to include something

                  ini_set("include_path", "/path/to/dir");

                    thank you, but that would just be an unsatisfying workaround for my needs.
                    i have lots of php-projects where the include-paths are defined in .htaccess-files. that's why i would need a solution to make it work this way...

                      11 days later

                      When using PHP as an Apache module, not cgi and cli version, you can also change the configuration settings using directives in Apache configuration files (e.g. httpd.conf) and .htaccess files (You will need "AllowOverride Options" or "AllowOverride All" privileges)

                      Your problem is that php is not loaded as an Apache module.

                      Follow the instructions on this page:
                      (refer to section C.3.3.)

                      http://worldhello.net/doc/website_howto/apache-conf.html

                        Write a Reply...