You are here: Re: Anybody know a script or method to achieve this? (authentication/access related) « PHP Programming Language « IT news, forums, messages
Re: Anybody know a script or method to achieve this? (authentication/access related)

Posted by Chris Smith on 06/05/05 19:48

Jim J <me@privacy.net> wrote:
> I have been trying to find some kind of authentication method or
> script (PHP/perl/javascript or other) to achieve the following, with
> no luck.

Don't bother looking at JavaScript in traditional client-side
environments. JavaScript can be run on a server, but it's somewhat
rare. You're probably better off with one of the other languages.

> Say there are 100 files at a site. A person can choose which file to
> download from a list, and to do so has to enter a code or password.
> When a valid code or password is used they are redirected to a page
> with a direct link to download the file.
>
> Once that code or password has been used to download that one file
> (and the same code/password can be used to access any one of the 100
> files), it is then expired/deleted/made invalid and can't be used
> again to download any other file.
>
> Does anybody know a method or script somewhere that can do this?

This is going to require server-side code, a database (relational or
otherwise), and some mechanism for giving out codes/passwords. It's
also a fairly specific and unusual requirement. This is probably beyond
anything you're going to find pre-written.

As far as writing it, this should be fairly trivial in any server-side
web environment. However, you haven't told us what you're having
problems with, so help will be difficult to come by.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация