client login script?

This is a discussion on "client login script?" within the PHP Forum section. This forum, and the thread "client login script? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 20th, 2005, 11:27
New Member
Join Date: Jul 2005
Location: London
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
client login script?

Hi,
Apologies, if this is not in the right forum for this.

I would like to put a client login script on a webpage that when the client enters their username and password, they are automatically directed to their own corresponding folder in the public_html directory of my ftp server. Is this at all possible?

If not, does anybody have any suggestions on the best way to set up such a client login without needing to acquire specific software to do the job?

Thanks for your time
Reply With Quote

  #2 (permalink)  
Old Jul 20th, 2005, 19:39
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I assume you have no previous coding experience? If not then this could be a problem as it sounds like quite a specific problem...
Reply With Quote
  #3 (permalink)  
Old Jul 20th, 2005, 20:19
New Member
Join Date: Jul 2005
Location: London
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
you are quite correct to assume that, but i'm quite a quick learner and just need to be shoved in the right direction.

Is what i require possible to do?
Reply With Quote
  #4 (permalink)  
Old Jul 21st, 2005, 15:53
New Member
Join Date: Jul 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Yes what you hope to achieve is possible. You need some kind of database format (MySQL, Oracle etc) to store all your client information in. You then use a server side scripting language like PHP or ASP to make a connection to the database and retrieve the correct login info when data is submitted from a client.

I would recommend you use something PHP/MySQL. There are many tutorials scattered around the internet (its to much to explain here) that can help you. Just do a search for "account system in PHP", "membership system in PHP", "sessions PHP" etc.

:wink:
Reply With Quote
  #5 (permalink)  
Old Jul 23rd, 2005, 16:56
New Member
Join Date: Jul 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
You could make it really simple:

Code: Select all
if (is_dir($userlogin))
{
header("$userlogin/index.php");
}
else
{
echo("The username doesn't exist");
}
That'd be a very quick way to do it, and there isn't any password.

Sheeps
Reply With Quote
  #6 (permalink)  
Old Jul 23rd, 2005, 17:26
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
I spend a lot of my time teaching newcomers to PHP (and other languages) who have requirements such as the one described here. A small proportion of bright and determined people can pick up PHP and MySQL from books (and prior knowledge of some other programming language helps), but the majority prefer to learn in some sort of mentor or job placement, or on a course. From what you describe you want to do, it seems very practical (there may be a devil in the detail of the specification though ... your description is quite brief) and it wouldn't take too long for an experienced programmer. For a newcomer, it would take an order of magnitude more time though.

I'm concerned at "Sheepymot"'s suggestion; I guess he/she's assuming that register_globals is on and there's a form with an entry box named userlogin. All sorts of potential security holes (starting with users entering ../ as their name) come to mind ... just as starters.
Reply With Quote
  #7 (permalink)  
Old Jul 23rd, 2005, 17:47
New Member
Join Date: Jul 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Hi, yeah. I did say that it was a very basic way, sorry if it doesn't conform to your safetty requirements, but you could build from this.
Reply With Quote
Reply

Tags
client, login, script

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
login script mbarr Databases 13 Mar 12th, 2008 03:39
Client Management Script for Designers - Request Features! e39m5 Webforumz Cafe 6 Apr 30th, 2007 02:34
login script help Aaron1988 PHP Forum 2 Oct 25th, 2006 15:03
login client automatically to https website minnie ASP.NET Forum 1 Jul 30th, 2006 18:15
PHP Login script advice chimp PHP Forum 1 Dec 21st, 2005 17:16


All times are GMT. The time now is 18:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43