Your First Script: A Password Protected Site

April 12th, 2008 by dtph

The first thing I want to say is that I’ve lied a few times in this text, not to harm you, but to try to avoid confusing you. I will explain all the lies I’ve told in later articles, but for now you don’t need to think about that.

I would also like to say that even though this script is cool, this is only a very little demonstration of what PHP can do, and it’s not very practical. It may be secure most of the time, but it’s not very flexible, users can’t stay logged in yet, and adding new users will be a pain after a while. Still, it’s way cooler than any “Hello World”-script you will find.

If you want something to do while waiting for my next tutorial you could always try to modify the script, adding support for more than one user or something similar.

If you have any questions or comments about this article, please leave a reply and I’ll answer as quick as possible.

Pages: 1 2 3

2 Responses to “Your First Script: A Password Protected Site”

  1. Genaral_TS Says:

    Very good beginners tutorial dtph :)

    I look forward to reading future php tutorials!

  2. dtph Says:

    Thanks ^^,

    If somebody don’t understand all of the tutorial, don’t worry. Try to get the bigger picture, how PHP works. Also, a good way to learn is to ask questions, so please do.

Leave a Reply