Название: PHP Crash Course: The Complete, Modern, Hands-On Guide (Early Access) Автор: Matt Smith Издательство: No Starch Press Год: 08/19/24 Страниц: 692 Язык: английский Формат: pdf (true) Размер: 17.9 MB
Start off your web development journey the right way with this beginner-friendly introduction to PHP programming.
This book will take you from beginner-level to professional PHP programming, through hundreds of in-depth examples and hands-on exercises. You’ll explore best practices for developing fast, secure, and easy-to-maintain websites, while establishing a broad foundation of programming knowledge and experience.
PHP is one of the engines that drive the internet: it plays a role both in what the user sees on web pages and in what happens behind the scenes, such as processing form submissions, talking to other websites, and interacting with databases. The language was first released in 1995, but it wasn’t until the late 2000s, when my computing students encouraged me to introduce PHP into their web programming classes, that I began working with it in earnest. They wanted to improve their skill profiles for the job market, since they felt the internet was going to continue to grow in importance in the work of computing. Clearly, they were right.
PHP is currently in its eighth major version, so as well as being tried and tested, it’s faster and more secure than ever before. It’s a free, open source, and well-maintained language. While other popular web programming languages are available, about 70 percent of the web is run by PHP programs, including Etsy, Facebook (using its dialect of PHP, called Hack), Spotify, Wikipedia, and WordPress. PHP also has a relatively shallow learning curve. We’ll start off with just a few lines of code, and once you’re comfortable with the basics, we’ll move on to larger, more structured web application systems.
You’ll learn how to: Create consistent, modern-looking web pages with easily customizable templates by combining dynamic PHP scripts, static HTML code, and Bootstrap styling Write server-side scripts for responding to HTTP requests, processing forms, and validating data Use browser sessions to implement shopping carts and user logins, and to store other user data Write scripts that can communicate with MySQL and other PDO databases, enabling database-driven, data-rich web applications Implement modern, best-practice website security, including user data sanitization, session-based logins using hashed passwords, and database prepared statements Save time with up-to-date, professional, open-source tools, including Composer dependency management and the Twig templating library
As you follow along, you’ll learn real-life patterns and modern programming techniques for creating, extending, and modifying web applications, all using the powerful PHP language.
Who This Book Is For: PHP Crash Course is for anyone wanting to learn PHP programming in a practical, hands-on way, regardless of whether you have previous programming experience. Since most PHP programs are web applications, knowing about the HyperText Markup Language (HTML) and Cascading Style Sheets (CSS) languages used to represent the content and visual style of web pages might prove helpful, but you don’t need to know any web programming, such as jаvascript.