Access synology shared folder from PHP

谁说胖子不能爱 提交于 2019-12-24 07:05:07

问题


I am hosting a web station from my Synology NAS, this creates a folder under - /volume1/web/website. However, i wish to access another shared folder volume1/shared/ from my web page. This shared folder requires authentication which I can access however I am unsure about getting access using a PHP script.


回答1:


I'm having the same issue. There is some feedback around, and this article looks like it has an answer: http://forum.synology.com/wiki/index.php/Install_Zina_Media_Server

Essentially you need to edit the open_basedir configuration in php.ini to allow PHP to access these folders. Out of the box PHP is locked out of shares.

Further to this, new versions of DSM (5+) provide handy access to the open_basedir directive from within the control panel. Tested and successful!



来源:https://stackoverflow.com/questions/22267971/access-synology-shared-folder-from-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!