douxin8383 2013-02-04 15:22
浏览 52
已采纳

PHP脚本可以包含在我的文件系统之外吗?

I have a PHP script called constants.php, in there I have a lot of valuable data, like my MySQL information, etc.

Is it possible to access that script outside my machine? Lets say, using the following: include http://www.fakewebsite.com/config/constants.php

  • 写回答

4条回答 默认 最新

  • dppcyt6157 2013-02-04 15:28
    关注

    Well, yes and no.

    Yes: They will be able to access the output of the file constants.php (however most likely it will be blank).

    No: They won't be able to access your variables. You can only access these before PHP has been parsed.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?