Re: PHP mySQL and directory protection
From: steve (UseLinkToEmail_at_dbForumz.com)
Date: 08/18/04
- Next message: James Smith: "Re: web mail like MS OWA"
- Previous message: steve: "Re: PHP Nuke"
- In reply to: davidshook: "PHP mySQL and directory protection"
- Next in thread: davidshook: "Re: PHP mySQL and directory protection"
- Reply: davidshook: "Re: PHP mySQL and directory protection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Aug 2004 00:43:32 -0400
"davidshook" wrote:
> I have protected (with .htaccess) directory full of videos and
files.
> How do I create a user log-in (authentication) script using
php/mysql.
> the problem is:
> - I don’t want to create a new entery in the .htaccess/password
> file
> for each user.
>
> Here is a wrking example:
>
> user goes to Index.php and click a link for video
> link points to video.php (video.php is not in protected directory)
> video.php has an embeded video (videofile.wmv) and also has text
> description of the video.
> if the videofile.wmv is not restricted, user gets to see the video
and
> the description text.
> else if the videofiel.wmv is restricted, user gets a prompt for
> username/password. if the user has no login info he only gets to
see
> the description text and a text asking him to subscribe/register.
>
> The reason I am trying to avoid creating an entery in the .htaccess
> for each user is that I was told that after a few hundred enteries
the
> access and reading of the .htaccess is slowed.
> Also, with the .htaccess I have no way of tracking which user are
> logged in and if 2 different users are using the same password;
also
> it is difficult to log out user and keep tract of which videofiles
the
> prefer watching/downloading.
David, IMO you are asking for a very standard login process. I
searched on google using "php user login tutorial", and found the
following which looks excellent:
http://www.phpbuilder.com/columns/tim20000505.php3
-- http://www.dbForumz.com/ This article was posted by author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.dbForumz.com/PHP-mySQL-directory-protection-ftopict140665.html Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=470473
- Next message: James Smith: "Re: web mail like MS OWA"
- Previous message: steve: "Re: PHP Nuke"
- In reply to: davidshook: "PHP mySQL and directory protection"
- Next in thread: davidshook: "Re: PHP mySQL and directory protection"
- Reply: davidshook: "Re: PHP mySQL and directory protection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|