PHP display current server path

后端 未结 6 1055
春和景丽
春和景丽 2020-12-29 20:28

I need to setup a path in my php but I currently don\'t know the path.

I need to configure the paths to the uploads directory

Should look like this below:

6条回答
  •  情深已故
    2020-12-29 21:29

    echo $_SERVER["DOCUMENT_ROOT"];
    

    'DOCUMENT_ROOT' The document root directory under which the current script is executing, as defined in the server's configuration file.

    http://php.net/manual/en/reserved.variables.server.php

提交回复
热议问题