PHP for Absolute Beginners
392 pages
English
PDF
4.5

PHP for Absolute Beginners

PHP for Absolute Beginners

Author:

Year:

Summary:

Introduction

The book "PHP for Absolute Beginners" (original title PHP for Absolute Beginners) is a tutorial written by Jason Lengstorf and Thomas Blom Hansen in 2014. Despite the fact that several years have passed since its release, the book remains relevant for those taking their first steps in web development with PHP. The authors set themselves the goal of guiding the reader from complete unfamiliarity with the language to creating a full-fledged web application using practices that were modern at the time.

What the book is about

The book is structured as a practical guide. It begins with installing the necessary software (Apache web server, PHP interpreter, MySQL DBMS) and explaining basic concepts: variables, data types, conditional operators, loops, and functions. Gradually, the reader becomes familiar with working with forms, sessions, files, and databases. Special attention is paid to object-oriented programming (OOP) — the authors introduce the concepts of classes, objects, inheritance, and encapsulation. The culmination of the book is creating a simple blog with a registration system, authorization, and the ability to add and edit posts.

Who this book is for

The book is aimed at absolute beginners — those who have never programmed in PHP or have minimal experience in other languages. It does not require prior knowledge of web development, but assumes a basic understanding of HTML and CSS (the authors briefly explain the fundamentals). It is suitable for students, schoolchildren, as well as self-taught learners who want to systematize their knowledge and gain practical experience.

What the reader will learn

  • How to set up a local development environment (XAMPP, MAMP).
  • Basics of PHP syntax: variables, arrays, strings, conditional constructs.
  • Working with superglobal arrays ($_GET, $_POST, $_SESSION).
  • Interacting with MySQL databases via the MySQLi extension.
  • Principles of object-oriented programming in PHP.
  • Creating secure forms and protecting against SQL injections.
  • Developing a full-fledged web application (blog) from scratch.

Strengths

The main advantage of the book is its step-by-step approach. Each chapter contains code examples that can be immediately run and modified. The authors do not overload with theory but explain concepts through real-world tasks. The book is well-structured: from simple to complex, with repetition of previously covered material. Also worth noting are the exercises at the end of chapters — they help reinforce skills. Special praise goes to the chapter on OOP: the authors not only list the syntax but show how to design classes for a real project.

Who it is recommended for

The book is ideal for those who want to quickly learn PHP and immediately start creating dynamic websites. It will be useful for beginner web developers who are already familiar with HTML/CSS and want to add server-side logic. The book can also serve as a reference for those studying PHP from other sources and wanting to see a complete picture. However, it is worth considering that the book was published in 2014, so some outdated practices (e.g., using MySQLi instead of PDO) may require additional study of modern standards. Nevertheless, for understanding the basics, this is an excellent choice.

Recommendations