How to set root folder for PHP include files

前端 未结 5 1872
悲&欢浪女
悲&欢浪女 2020-12-13 15:55

I\'ve spent days researching the internet and I can\'t find the answer that I will understand and are able to implement.

I\'ve got the website in which I want to us

5条回答
  •  北海茫月
    2020-12-13 16:17

    To get/display the current work directory, php have a builtin function for that

     echo getcwd() . "\n";
    

    This will display the current directory of your php file which is now being executed.

提交回复
热议问题