How to set the DOCUMENT_ROOT and site root in my local PHP dev setup?

前端 未结 5 1689
孤街浪徒
孤街浪徒 2021-01-30 11:56

I\'m doing a job for a guy with a site online. It\'s an alien site to me, and I\'m slowly working through the strange code. I have MAMP locally and my http://localhost/ has many

5条回答
  •  半阙折子戏
    2021-01-30 12:22

    For the current process, you can just do

    $_SERVER["document_root"] = "whatever";

    Be careful though.

提交回复
热议问题