Mobile app version of vmapp.org
Login or Join
Rivera981

: Apache - How to extend localhost scope e.g. to other drives? In Apache httpd.conf file I can set the DocumentRoot value. After setting this, if I view "localhost" in a browser, I can see the

@Rivera981

Posted in: #Apache #Localhost

In Apache httpd.conf file I can set the DocumentRoot value. After setting this, if I view "localhost" in a browser, I can see the folders and files this given folder contains. I cannot "speak" PHP language well yet but I assume that all PHP activities in connection with files and folders are limited to the scope of localhost, so if I handle files with PHP they must be in the folder set as DocumentRoot (or in subfolders of it).

How can I set localhost's scope to a wider range, especially to other drives? My goal is to be able to handle files with PHP on my whole computer (it's a "locahost-only" project so it's not a must to be able to use it on "real" servers).

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Rivera981

1 Comments

Sorted by latest first Latest Oldest Best

 

@Karen161

PHP can access any files any where within your computer if you give it the right access permission. You can use absolute paths when locating a file in PHP.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme