How to restrict file system access in PHP?

前端 未结 2 537
旧时难觅i
旧时难觅i 2021-01-21 10:31

Someone knows a trick to have a PHP script self-restrict access to the file system (fopen, file_get_contents etc.)?

Such calls should be blocke

2条回答
  •  伪装坚强ぢ
    2021-01-21 10:56

    you could of course have everybody develop run php as a user which has only access to the files you want. but this is an OS level solution.

提交回复
热议问题