1.
1 2 3 4 5 6 7 |
<?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>"; ?> |
and get the url that you need,
2.
2. Create a .htaccess file and place this file in the root directory.
Write the following in the file.
1 2 3 4 |
php_flag log_errors on php_value error_log C:\wamp\www\errors\php_error.log |
This will then create a readable file in the errors folder (create this) which identifies any errors in code that would appear in a browser window. For security this should be turned OFF so as not to let any would-be hacker see a file structure to attack.