Use the getcwd() function or dirname(__FILE__)
"; echo dirname(__FILE__); ?>
For more PHP articles about getting the directory where the current file is located, please pay attention to the PHP Chinese website for articles related to the getcwd() function!