Hi Stephen,

Here you mix the php-include path for php with the document_root for apache.

The include path for PHP means that you can do the following:

Cpfunctions2.php:

<?php
  Include_once('includefile.php');
?>

This file has to be in the document_root of the apache as cpfunctions.php is
when it works.

You can then save the file includefile.php in

"C:/www/www/stephenofroissy.com/include"

Frank

-----Ursprüngliche Nachricht-----
Von: Stephen [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 17. Januar 2007 03:47
An: users@httpd.apache.org
Betreff: [EMAIL PROTECTED] Problem with Windoes Apache .htacces include

I normally work on my Linux server at home, but I am on the road for a 
number of weeks, and installed Apache, PHP and MySQL on my laptop. 
Windows XP Pro.

Most works fine, but I can;t seem to get my include override in 
.htaccess working.

The vhosts setting is:

<VirtualHost *:80>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot C:/www/www/stephenofroissy.com/public_html
    ServerName www.stephenofroissytest.com
    ErrorLog C:/www/www/stephenofroissy.com/public_html/error.log
    CustomLog C:/www/www/stephenofroissy.com/public_html/access.log common
</VirtualHost>

www.stephenofroissytest.com does resolve to 127.0.0.1 and I can view the 
index page and the file that I want to include when it is in the 
document root.

The .htacces file is:

# Set the include path
php_value include_path "C:/www/www/stephenofroissy.com/include"

When I have cpfunctions.php in the document root, and enter 
http://www.stephenofroissytest.com/cpfunctions.php it goes as expected.

When I move cpfunctions.php to C:/www/www/stephenofroissy.com/include I 
get a 404. And *no* log entry.

Help!

Please. And thank you

Stephen

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to