Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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