This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

Find Absolute Path Of A File Or Directory Using PHP

The absolute path for a file or directory is not the same as the URI.  The absolute path on the web server is/home/DIR/Xs/something/mydir/. Here is how to find the absolute path on your web host for a given directory if you can’t find it, or it isn’t shown, in your web hosts control panel.

  1. Copy and paste the following code into a text file (take out the space between the less than sign and the question mark): < ?php
    $getPath = getcwd();
    echo $getPath;
    ?>
  2. Save the file as a PHP file, say abspath.php.
  3. Upload the file into the root directory, or a sub-directory, of your website.
  4. In your web browser, go to http://www.mysite/abspath.php (or wherever you saved the file to)
VN:F [1.5.7_846]
Rating: 10.0/10 (1 vote cast)
VN:F [1.5.7_846]
Rating: +1 (from 1 vote)
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • De.lirio.us
  • Xerpi

Related posts:

  1. Simple file upload script using php
  2. Finding size of a directory using php
  3. Fix the problem in getting 500 Internal Server Error In Localhost Due To .htaccess
  4. File System Reference In PHP
  5. Upload Your Scripts For Free
  6. Custom Error Pages Using .htaccess
  7. Loading swf file from another server using crossdomain.xml

Leave a Reply

Spam Protected