Hey all,

On my webhost's linux machine running php and apache, I can use .htaccess files to configure my php_include directory. For example:

php_value include_path ".:/www/public_html/includes"

If I put the above code into my .htaccess file, apache will look in that directory to try to find 'header.php', or whatever else I include.

This is nice, but I cannot reproduce the same functionality on my Windows XP box running php and apache. If i try to use the same code, nothing happens. If I try to use the code that PHP.org calls 'appropriate', it also fails. Example:


php_value include_path ".;D:\www\public_html\includes"

That does NOT work, although from reading the documentation it looks as though it should. Any advice? Does anyone have a clue? Thanks a bunch!

    Are you sure your XP Apache has been configured to accept .htaccess files, as well as the options it takes?

      Jeb,

      Thanks for replying to my question, even though you probably already knew that I was being rather stupid and didn't even check to be sure that .htacces was set up properly.

      You were right - AllowOverride wasn't turned on in Apache! Thanks so much for the advice - now it works perfectly.

      James

        You are quite welcome. 🙂

        Pssst: Please mark your thread as "Resolved" by clicking the link at the bottom of the page. It helps us sift through the piles of threads 😉 - cheers!

          Write a Reply...