Installed Appserv. Made a php.

D:/Appserv/www/x/y/file.php

Then I have a folder, like "E:/foldie"

I want file.php to mess with that folder. I found this somewhere:
<IfModule mod_alias.c>
Alias /foldie/ "E:/foldie"
<Directory "E:/foldie">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>

So I added it to my httpd.config file.Then I added the following to file.php:

echo(realpath("../../foldie/"));

Was expecting "G:/foldie". Nothing happened.

Help?

link|improve this question
feedback

1 Answer

The Alias Directive is for apache to serve files from a different directory, it is separate to php code running on the apache server.

link|improve this answer
I want a .php to read the files in another drive. I want to configure apache to le tme. – navand Jul 8 '11 at 16:39
Well, you can't configure apache to do this, you'll have to write php to do it. – theotherreceive Jul 8 '11 at 19:08
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.