I wish to authenticate client logons via sessions and display the contents of a specific directory to the user based on logon... So far, no problem... Script lists contents of appropriate directory and creates a link to access each file (.pdf reports)...
Here's my problem-
If I just use subdirectories within my public_html directory, a saavy user could access files via the path in the link anchor without authentication and perhaps guess their way into other users directories...
If I place the files somewhere other than public_html I can list the files; but, Apache won't/can't serve them upon demand.
I do not with to ask users to authenticate again using Apache & .htaccess so.... Any ideas???
PLUS...
Follow Up Question-
If I wish to addslashes to all post variables, how can I do that without calling each by name? I tried:
But, this didn't work for me...
TIA for all!
Here's my problem-
If I just use subdirectories within my public_html directory, a saavy user could access files via the path in the link anchor without authentication and perhaps guess their way into other users directories...
If I place the files somewhere other than public_html I can list the files; but, Apache won't/can't serve them upon demand.
I do not with to ask users to authenticate again using Apache & .htaccess so.... Any ideas???
PLUS...
Follow Up Question-
If I wish to addslashes to all post variables, how can I do that without calling each by name? I tried:
Code:
while (list($key,$val) = each($_POST))
{
$_POST[$key] = addslashes($val);
}
TIA for all!