Grow your CSS skills. Land your dream job.

Last updated on:

Find the Full Path to a File

<?php
  echo dirname(__FILE__);
?>
  1. Save the file as fullpath.php
  2. Upload to the folder you'd like to know the full path to
  3. Go to http://www.yoursite/lots/of/folders/fullpath.php

You'd might be surprised what shows up. Sometimes you need more than just /lots/of/folders/ as your full path to a file (e.g. .htpasswd). This script will allow you to see that.

Leave a Comment

Current day month ye@r *

*May or may not contain any actual "CSS" or "Tricks".