I've placed a file/script inside my "tmp" directory just beneath the /public_html/ directory like this: /home/myaccount/tmp/public_html/

How can I determine what the absolute path is ?
/usr/..../...../home/myaccount/tmp

Thanks in advance !
Pedro

    if you have shell access, log in and type:

    pwd

    if not, in PHP you could do something like:

    echo realpath ('.');

      www.php.net/realpath

      you talking abotu the realpath function in PHP?

      or many www.php.net/pathinfo

      pathinfo function?
      <?php

      $path_parts = pathinfo("/www/htdocs/index.html");

      echo $path_parts["dirname"] . "\n";
      echo $path_parts["basename"] . "\n";
      echo $path_parts["extension"] . "\n";

      ?>

        Write a Reply...