filesystems - in php - how to access the Folders which are out side the Web root Directory -


how can access folders out side web root directory?

we using wampserver 2.0 (apache 2.2.11,php 5.3.0 & sql 5.1.36).

usr | - www      |- docs         |-      |- webroot         |- index.php 

just use "normal" file paths. e.g. access a in docs folder index.php, can use relative paths ../docs/a or absolute paths /usr/www/docs/a.

the "webroot" directory marks entry point urls. has no effect on php files. normal files in filesystem , can therefore access other files in system via ordinary file paths.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -