Skip to main content
The 2024 Developer Survey results are live! See the results
686

Start learning PHP — Useful resources for beginners and advanced

Created
Active
Last edited
Viewed 3k times
2 min read
Part of PHP Collective
44

Start learning PHP — Useful resources for beginners and advanced!

If you're wondering where to start from learning the PHP language or needing some more knowledge to deep dive into the language, you are on the right place!

I want to share with you some links with useful materials to start learning. All you need is the motivation to learn and go ahead!


Official PHP documentation is also good

Other sources:

Books

  • PHP & MySQL by Jon Duckett features best and modern practices, guides you from very basics to creation of a full-featured application!

Video Courses

Some people prefer learning from videos, though be warned that most tutorials found on Youtube are of questionable quality. There are some quality tutorials though:

And some cheat sheets in order to get some code started:

How to install PHP on different OP

Windows:

  • The simplest way to start working with PHP on Windows would be

    • download the zip archive from the topmost link labeled zip on this page
    • unpack it in C:\PHP folder
    • start running your php scripts in console right away, with C:\PHP\php your_script.php
    • run a web server by opening a Windows console and typing C:\PHP\php -S localhost:80 -t C:\WEBSITE where C:\WEBSITE is a folder where your site would be. Then just open http://localhost/ in your browser
  • Or you could try a bundled software pack such as MAMP, XAMPP, WampServer and such.

  • Or if your requirement is using IIS, then you could try IIS and PHP

Linux (Ubuntu):

macOS:


You can find some useful Stack Overflow question and answers/tutorials here:

PHP guides, introduction and others

PHP and Databases

PHP Arrays

Object-Oriented Programming

Dates and Time

Common Errors/Error Handling

Others


And last but not least—with only reading, nothing happens. Watch, read, and exercise! Do some projects and practice, practice, practice and it will get easier and easier to learn new things from the examples.

Cheers and wish you the motivation to learn and deep dive into it!

9