PHP Tutorial

Good afternoon! Please tell me a good phptutorial for beginners (so that, as they say, everything is clear).


Answer 1, authority 100%

My recipe: first, some simple collection of lessons, so that it seems that everything is easy and simple. The next moment we come up with a task for ourselves, not to blind a framework, well, not a mega portal, but for example, we are doing some kind of light service (I personally made an address book for Active Directory) and a set of limited functionality for it, for which in no case should we get out . We gradually learn to face problems and solve them on the go, while going to google, hashcode, php.net, etc. We alternately look for similar implementations of similar services, compare and notice smart implementations, but without total copy-paste.

Having implemented this service, we admire ourselves for a short time and think about what the user expects in version 0.2 of the service. Up to this point, it was the most terrible bydlokod))). And here development begins, any attempts to expand the service become like Sisyphean labor. To add some functionality, you need to edit the code in 5-10 places, forgot in one place, search for half an hour, you don’t find it, you get angry and come to understand that you are to blame, because you didn’t come up with a normal architecture. Here you begin to reconsider the methods of your thinking. At this stage, the keywords will probably be code repetition, OOP or procedural style.

Next, there are attempts to remake your service and make it better, if there are none, then everything is very bad. Only by remaking the old, you constantly raise the quality bar for yourself and grow. Taking on new ones, you are more likely to step on the same rake again. At this stage, you will look and be interested in debugging methods, finding bottlenecks, refactoring and, of course, programming patterns. And only at this moment it is worth opening books and being amazed at how much you know and at the same time picking out only unfamiliar places in the language and complex nuances. At this point, the book will be much more useful than if you read it as a beginner, plus you yourself will be able to assess its quality.

Summarizing: if you go in the direction of quality, you need to finish old projects to a level that satisfies you.


Answer 2, authority 67%

All of the above is certainly good, but comrades. How could you forget manual???

If you haven’t coded at all, forget about books. Start with the manual. and return to it periodically. I assure you – you will know php as well as the chief healer =) You need to read books in order to be able to create something useful. First you need to get a tool, and the fastest and most effective way is a manual)


Answer 3, authority 50%

The book is not so important, practice is important, you can start with any book, if you have no experience in programming – don’t choose a book like “php in a week” and so on.
Because you are a beginner – I advise you to immediately read http://phpfaq.ru/na_tanke (fortunately, there is not much text).

If you don’t have knowledge of html, start with it, if you have, you can start 🙂

I used to learn from books: “Building Dynamic Websites with PHP, MySQL and JavaScript”, “PHP Cookbook” and my favorite was “Objects, Patterns and Programming Techniques”

In general, you need to immediately learn how to work with documentation and quickly find solutions to issues that interest you, IMHO – this is almost the main feature of a really good programmer (and of course, he immediately learns to put it into practice and, preferably, memorize)

Thinking ahead. Try to learn the basics of working with the database already when you have strong basic knowledge so that you immediately understand everything correctly. In Nixon’s book, I really like how the work with the database is presented, everything is very intelligible and simple, while the “difficulties” are touched upon, as if in passing, so you remember where you can find this information but do not attach more importance to it.
Most likely, you also have to learn javascript and css.

Good luck anyway.

Just in case, if you have no experience in programming, video courses and video tutorials are strictly contraindicated.


Answer 4, authority 33%

All these tutorials to one place. There would be a desire.

I worked as a tester at one office, I worked and didn’t know grief, but the trouble is, one sunny morning we were told that the office was closing. I had to look for another job. I found it, a php programmer, but I don’t know the language!

Nothing, I took a test task, took a reference book, read everything, wrote it in a week and got a job.

What am I doing all this for? Moreover, if there is a need and a desire, then everything can be achieved, and no matter what the tutorial / reference book will be!

PS: before that I messed around a bit with delphi


Answer 5, authority 17%

http://PHP.SU + Explore several CMS systems. I myself am self-taught, and when I started five years ago, this is how I understood what PHP is and how to deal with it.

UPD// CMS system would suggest for Open SLAED picking http://www.slaed.net/files-view-1103.html


Answer 6

Tip in three steps.

Step 1. You won’t understand anything from the php manual, if it’s simplified three times, until you see live how people write working code. Therefore: find video tutorials, preferably Evgeny Popov and watch the theory!

Step 2. If you have thoroughly immersed yourself in the jungle of php programming, after watching video courses, professional rehabilitation does not fit you. Therefore: pick up the book “Learning PHP and MySql” by Michelle E. Davis and John A. Philips and read it from cover to cover. It’s hard to find a better book than this!

Step 3. You set yourself a specific task, it is desirable to fix it on paper and solve it. Help can be found on the forums irbisand Hashcode