SyntaxFix
Write A Post
Hire A Developer
Questions
Where is the file that you're running? If it is in your public html folder, you can do echo dirname(__FILE__);
echo dirname(__FILE__);