PHP Crash Course takes you from beginner 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. You'll also learn how to create consistent, modern-looking web pages with easily customizable templates by combining dynamic PHP scripts, static HTML code, and Bootstrap styling; how to write scripts that can communicate with MySQL to enable data-rich web apps; and how to implement best-practice website security. 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.
Les mer
Acknowledgments
Introduction

PART I: LANGUAGE FUNDAMENTALS
Chapter 1: PHP Program Basics
Chapter 2: Data Types
Chapter 3: Strings and String Functions
Chapter 4: Making Choices with Conditionals
Chapter 5: Creating Reusable Code with Functions

PART II: WORKING WITH DATA
Chapter 6: Repeating Actions with Loops
Chapter 7: Simple Arrays
Chapter 8: Sophisticated Arrays
Chapter 9: Working with Files and Directories

PART III: PROGRAMMING WEB APPLICATIONS
Chapter 10: Client-Server Communication and Web Development Basics
Chapter 11: Creating and Processing Web Forms
Chapter 12: Validating Form Data
Chapter 13: Organizing a Web Application

PART IV: STORING USER DATA WITH BROWSER SESSIONS
Chapter 14: Working with Sessions
Chapter 15: Implementing a Shopping Cart
Chapter 16: Authentication and Authorization

PART V: OBJECT-ORIENTED PHP
Chapter 17: Introduction to Object-Oriented Programming
Chapter 18: Declaring Classes and Creating Objects
Chapter 19: Inheritance
Chapter 20: Managing Classes and Namespaces with Composer
Chapter 21: Efficient Template Design with Twig
Chapter 22: Structuring an Object-Oriented Web Application
Chapter 23: Error Handling with Exceptions
Chapter 24: Logging Events, Messages, and Transactions
Chapter 25: Static Methods, Properties, and Enumerations
Chapter 26: Abstract Methods, Interfaces, and Traits

PART VI: DATABASE-DRIVEN APPLICATION DEVELOPMENT
Chapter 27: Introduction to Databases
Chapter 28: Database Programming with the PDO Library
Chapter 29: Programming CRUD Operations
Chapter 30: ORM Libraries and Database Security
Chapter 31: Working with Dates and Times

Appendix A: Installing PHP
Appendix B: Database Setup
Appendix C: Replit Configuration
Les mer

Produktdetaljer

ISBN
9781718502529
Publisert
2025-01-21
Utgiver
Vendor
No Starch Press,US
Høyde
234 mm
Bredde
177 mm
Aldersnivå
P, 06
Språk
Product language
Engelsk
Format
Product format
Heftet
Antall sider
728

Forfatter

Biografisk notat

Dr. Matt Smith is a senior lecturer in computing at Technological University Dublin, specializing in web applications and immersive technologies. With over 30 years of teaching experience and degrees from the University of Huddersfield (BA), the University of Aberdeen (MSc), and the Open University (PhD), he has been at the forefront of PHP-based web development education since the mid-2000s.