0

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?

navand
  • 101
  • 1

1 Answers1

0

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

theotherreceive
  • 8,365
  • 1
  • 31
  • 44