installtech
6/29/2013 - 7:29 PM

Get full path (for htpasswd for exemple)

Get full path (for htpasswd for exemple)

<?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>";