Get current working directory of php script/application

$myPath = realpath(dirname(__FILE__));

or

$myPath = getcwd();
Tags:

Leave a Reply

Your email address will not be published.