简体   繁体   中英

How to show in my webpage files that are stores in different hard disks?

I need to show information in my webpage built using PHP Zendframework that is stored in a server that has several hard disk.

So, I need to know how I can make accessible files that are in a different hard disk than the one in which the app is working (same server).

Normally you do something like /public/files/myfile.doc but you always are in the directory where the webpage is located. How can I do to have the same behavior but for files that are in different disks than the app?

Thanks.

This post is not related to Zend Framework 2, just general linux filesystem issue. Can be solved with symlinks easy, just link any folder (with read access for web-server user) to /public:

ln -s /folder1 /public

or any /public subfolder:

ln -s /mnt/other_disk/folder2 /public/folders

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM