Get current working directory of php script/application

$myPath = realpath(dirname(__FILE__));
Code language: PHP (php)

or

$myPath = getcwd();
Code language: PHP (php)
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments