Hi,
What if the user tries to download the file thru DAP or any other download
tool? Can we restric even that...?
Regards,
Guru.
===
"Cristian Marin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I think you want the user to browse thru the directories
I think you want the user to browse thru the directories and download a
file.
In this case the only way I see this resolving is to make your own index
list of files. You can create a index.php in every directory the user can
see in which you can do something like:
.."
for ($i=0; $i".$files[$i].""
Well what I would probably do is this :
Store the users authenticated directory name in a session from the login form.
Add a mod_rewrite directive to the top level users directory which
redirects to a PHP script on attempted direct access to the specified
directories.
Use this PHP script to de
Hi Cristian,
Well what wanted to tell u is all the files that i wanna secure are kind of
Word Documents, PDFs, .EXEs which users can access. If i use .htaccess files
it works fine. But i want to provide a HTML login form. can u now explain me
how i can go about... ?
Regards,
Guru.
"Cristian Ma
Create the authentication form which submit the page to a php ... there you
verify first if the user and password are ok then you make something like
this:
if ($username='ok' && $password='ok')
session_start();
session_register('username');
session_register('id_user');
}
after this in
Hi Neil,
Well is it basically to collect user name and password from user? What
actually i am looking for is skipping this screen and having the same
functionality thru a HTML form.
Lemme explain you in details... I have a set of files protected using the
Auth Directives. So user's need to provid
Try this. Please note that on windows you *cannot* raise a http auth box
this way (PHP_AUTH_USER is not defined for Apache on windows), so you will
need to use this on your live unix Apache/PHP server :
function getUserAuthPW() {
// If present, set user Authenticate Password box values