Displaying the Current Script’s Directory Path in PHP


Get the directory of the currently executing script with dirname() and __FILE__.

Source Code

echo dirname(__FILE__);
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments