I'm trying to come up with the simplest way of implementing a 'client login' page on a small company's website that I'm building. I don't pretend to know how to script PHP, MySQL or anything. But I know HTML/CSS well, so anything I achieve on top of that is good for me. For example I've so far managed to create a PHP mailer form and a couple of jQuery scripts for design. Woop!
So. They want a page where they can have their clients login and download files. They would also like to be able to have their clients upload files -- but with my abilities (or lack of) I think that's just not going to happen.
I've been looking round at examples and not really finding much of use. So I was thinking that perhaps a really easy way of doing this with PHP is to simply do the following:
Assuming one of the client's folders is ../client/joebloggs
- Client logs in via a simple form with joebloggs/pass.
- If 'joebloggs' folder exists, show them that.
- If it doesnt exist, then show error (maybe just a modified 404?).
So it actually makes the password redundant, but thinking about what they're hosting for their clients I don't think this will be an issue. So I'm thinking if the user tries to enter a username that doesn't exist -- they just wont get anywhere. I think that should be enough security for them (they'll only be hosting videos or media). It also means they won't need to fiddle with any htaccess files or databases of usernames/passwords
I think I could get away with this, as I'm sure they're more worried about giving their clients a 'nice' experience on the website rather than having total security.
Any advice much appreciated!
So. They want a page where they can have their clients login and download files. They would also like to be able to have their clients upload files -- but with my abilities (or lack of) I think that's just not going to happen.
I've been looking round at examples and not really finding much of use. So I was thinking that perhaps a really easy way of doing this with PHP is to simply do the following:
Assuming one of the client's folders is ../client/joebloggs
- Client logs in via a simple form with joebloggs/pass.
- If 'joebloggs' folder exists, show them that.
- If it doesnt exist, then show error (maybe just a modified 404?).
So it actually makes the password redundant, but thinking about what they're hosting for their clients I don't think this will be an issue. So I'm thinking if the user tries to enter a username that doesn't exist -- they just wont get anywhere. I think that should be enough security for them (they'll only be hosting videos or media). It also means they won't need to fiddle with any htaccess files or databases of usernames/passwords

I think I could get away with this, as I'm sure they're more worried about giving their clients a 'nice' experience on the website rather than having total security.
Any advice much appreciated!
Last edited: