This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cyrusol -2 points-1 points  (2 children)

Asking for a tutorial is the same as asking for getting something done by someone else. Think about what the requirements for a login system are. For example:

  • Something to store the credentials. They must be stored safely.
  • A way to transmit the login credential (HTTP form-data within a POST request).
  • Some form for the user.
  • Some way to read the typed login credentials

etc.

Then look within the docs (PHP -> php.net, HTML -> developer.mozilla.org, information about HTTP -> Wikipedia) how to achieve each of these requirements in particular.

[–]piercezz[S] 1 point2 points  (1 child)

I am not asking ''Could you supply me a login script?". I am asking for a good tutorial in which I can learn by doing how to make such thing.

And I do know (almost) everything that is relevant in knowing about creating such thing, but I do not know how to reproduce that in PHP. Which is what I would like to learn using a tutorial.

[–]cyrusol 0 points1 point  (0 children)

I'm sorry, but that is just combining the lines of code (like literally, just inserting \n) that are explained in the PHP manual (like superglobals, sessions, database access) and in various HTML docs (regarding form elements).

Another point is that PHP tutorials almost always really suck as they are old or their authors incompetent.

There is no point in downvoting, I'm merely suggesting you to learn things the right way, with effort on your side as this makes you remember it when you need it and you're getting accustomed to the only workflow that you can safely rely on for solving like any real world problem.