Snippets

Dan Bochichio Find Direct Path (Directory Location) on Server

Created by Former user

File server-path-location.php Added

  • Ignore whitespace
  • Hide word diff
+<?php
+$dir = dirname(__FILE__);
+echo "<p>Full path to this dir: " . $dir . "</p>";
+echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>";
+?>
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.