Search code snippets, questions, articles...

Get current directory in PHP

You can get the current directory in PHP using this code
<?php
    echo getcwd();
?>
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet