Unix permissions, read vs. execute (PHP context)

后端 未结 2 1967
借酒劲吻你
借酒劲吻你 2020-12-09 17:37

I have a php script which needs to connect to a database. The credentials for the database are stored in another php script.

If I set the permissions for the credent

2条回答
  •  猫巷女王i
    2020-12-09 18:12

    Scripts are read, not executed. Execute permission for scripts tells the loader or kernel to read the shebang line and pass the script to the named interpreter.

提交回复
热议问题