Skip to content

Get current working directory of php script/application

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

or

$myPath = getcwd();
Code language: PHP (php)

See also  The Printing Press - Technology's impact on society
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x