dream6120 2010-06-30 10:08
浏览 24
已采纳

PHP中的路径,这是正确的 - 绝对的还是相对的?

In my code, I have included some files for use. When I specify the absolute path, I get a "Forbidden" message.

However, when I use the relative path, the code works.

I wonder why the absolute path was not being accepted.

Can someone explain what is going on?

Thanks in advance!

  • 写回答

3条回答 默认 最新

  • doumi5223 2010-06-30 11:11
    关注

    To save yourself from trouble, always use absolute one.
    As for your case, it's easy. You're just using a wrong path. Most likely you messed up a web root with filesystem root.

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

报告相同问题?