Search code examples
linuxgitserverfilepath

Path to Files on server


I want to use git for my sites. So I understand that I have to use SSH and initialize git in the folder. But I can't find those files and want to know what is the path for those files?


Solution

  • something I found, If you have PHP then you can use this to get absolute path

    <?php
    $path = getcwd();
    echo "This Is Your Absolute Path: ";
    echo $path;
    ?>
    

    example :- /home/user/public_html/test/test.php.

    refrence :- Check this