I am trying to install a security script so that I can make my pages password protected.
In order to set up the script, i need to edit one of the config files so that it points to the "user data" file (this security script uses no MySQL, just local writeable files).
The readme file tells me that I need to create a variable with:
"The full server path to the users.dat file:
EG: $user_data = "c:\path\to\users.dat";
$user_data = "/path/to/users.dat";
When I try to execute the script, file_exists($user_data) returns false, and thus breaks the script.
I am using a free PHP server (ionichost.com) and the server path for my home directory that they give me doesnt seem to work.
I was wondering if there was a function in PHP that i could use that would print the full server path of a file. Something like:
<? print full_server_path($PHP_SELF) ?>
I don't know what is going wrong, any help would be greatly appreciated.
-amitrus