Good day! Tell me, please, a good tutorial on php for beginners (so that, as they say, everything was clear).

  • one
    documentation ... trite yes ... but effective ... - BomBom
  • 2
    PHP 5 in the script, he studied. - erofeev

7 answers 7

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

Having realized this service, we briefly admire ourselves and think what the user is waiting for in service version 0.2. Up to this point was the worst bydlokod))). And here development begins, any attempts to expand the service become similar to Sisyphean labor. To add some functionality, you need to edit the code in 5-10 places, forget in one place, search for half an hour, you do not find it, you are angry and you come to understand that you are guilty, because you didn’t think of a normal architecture. Here you begin to revise the methods of your thinking. At this stage, the key words will probably be the repeatability of the code, OOP or procedural style.

Then there are attempts to remake your service and make it better, if there are none, then everything is very bad. Only by reworking the old, you constantly raise your quality bar and grow. Taking on new ones, you will rather re-step on the same rake. At this stage, you will look and be interested in debugging methods, searching for bottlenecks, refactoring, and of course programming patterns. And only at this moment it is worthwhile to open books and be amazed how much you know and at the same time only unfamiliar places in the language and complex nuances. At this point, the book will bring much more benefit than if you read it as a newcomer, plus you can yourself evaluate its quality.

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

  • Vital ... - AseN

All of the above is nice, but comrades. How could you forget about the manual ???

If you didn't code it at all - forget about the books. Start with the manual. and periodically come back to it. I assure you - php will know no worse than the main healer =) You need to read books to be able to create something useful. First you need to get the tool, and the fastest and most effective way - manual)

  • one
    or rather documentation - I fully support! - BomBom

The book is not so important, practice is important, you can start with any book, if you do not have programming experience - do not choose a book like "php for a week", etc. Because you are a beginner - I advise you immediately read http://phpfaq.ru/na_tanke (good text a bit).

If you don't have knowledge of html, start with it, but if you have it, you can start :)

I once studied on the books: “We create dynamic websites using PHP, MySQL and JavaScript”, “PHP Collection of recipes” and my favorite was “Objects, templates and programming techniques”

In general, you should immediately learn to work with the documentation and quickly find solutions to the questions you are interested in, IMHO - this is almost the main feature of a really good programmer (well, of course, he immediately learns how to put it into practice and, preferably, remember)

Guessing in advance. Try to learn the basics of working with databases even when you have strong basic knowledge so that you understand everything right away. In the Nixon book, I really like how the work with the database is presented, everything is very intelligible and simple, while the "difficulties" are affected, as it were, in passing, so you remember where you can find this information but do not attach greater importance to it. Most likely, you also have to learn javascript and css.

Anyway good luck.

Just in case - if there is no experience in programming video courses and video tutorials are absolutely contraindicated.

  • one
    This is not a copy-paste, this is how the tags are processed ... - Zowie
  • Thank! I already have experience with html, I will start learning php - ka5itoshka

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

I worked as a tester at one office, I 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. Found a php programmer, but I don’t know the language!

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

What is all this about me? Moreover, if there is a need and a desire, then everything can be achieved, and no matter what the self-help / reference guide will be!

PS: before that, I indulged in a bit of a delphi

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

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

    • Thank! I will punch! - ka5itoshka Nov.
    • one
      who? : DDDD - BomBom
    • Open SLAED - ka5itoshka

    I recommend to start with the lessons of the Internet university intuit.ru , since I myself started with them and received more than comprehensive knowledge of PHP. Further, in order to try something more interesting in practice, I recommend the book "PHP5 on examples" by the authors: Maxim Kuznetsov, Igor Simdyanov, Sergey Golyshev. Good luck in learning;)

      Council in three steps.

      step 1 st. Nicherta you will not understand from the manual on php, whether it is simplified three times, until you see live how people write working code. For this: you find video tutorials preferably Evgeny Popov and watch theory!

      Step 2 If you carefully plunged into the jungle of php programming, after watching video courses, professional rehabilitation does not place you. For this: take the book "Learning PHP and MySql" into the hands of the authors: Michelle E. Davis and John A. Filips and read from cover to cover. Better than this book is hard to find!

      Step 3 You set yourself a specific task, it is desirable to fix on paper and solve it. You will find help on the иrbis and Hashcode forums .

      • one
        > you find video tutorials preferably Evgeny Popov Here every fifth moronic question on the topic "how to fix a non-working code, wrote on the video lesson". Further did not read, for a minus it is enough. - Sh4dow
      • And what scares you in video tutorials? Have you read a lot of books? I will argue that, of all the many advisers who answer the "debility questions", consider themselves to be powerful programmers, although in fact they are not. - NeonDT
      • one
        @NeonDT, in his answers and comments, I think he can afford criticism. And Popov really crap. PS: I do not digest video lessons in their essence. Only manuals, books, forums. - Oleg Arkhipov
      • 2
        Popov is generally well done, a pretender type, but he climbs into a sphere in which he himself did not fully understand (if he understood at all), therefore there is a lot of criticism from others. Programming language is not a panacea, any language is mastered in a short time, the main thing is not to know the syntax, but the basics, the algorithms, the ability to think and write the algorithms yourself. Then the muse will come to you. - Alex Kapustin
      • 3
        @NeonDT video does not provide: a base of algorithms; knowledge of subtleties, paradigms, patterns; theory (no, not "getters in php", but "principles of the processor" / "features of the UDP protocol" / "design of applications" etc); practical skills. From this it is quite simple to conclude that the video can be suitable for professional development of professionals (in the format of webinars / master classes), but it is useless and even harmful for beginners. Because lazy shkololo should be weaned from drugs , and not bring everything on a silver platter. - Sh4dow