Get current working directory of php script/applicationJanuary 8, 2010February 2, 2020 $myPath = realpath(dirname(__FILE__));Code language: PHP (php) or $myPath = getcwd();Code language: PHP (php)Share this:TwitterFacebookMoreLinkedInRedditTumblrPinterestWhatsApp Like this:Like Loading... RelatedTags:PHP Subscribe Notify of new follow-up comments new replies to my comments Label {} [+] Name* Email* Website Label {} [+] Name* Email* Website 0 Comments Inline Feedbacks View all comments