Book description
PHP and MySQL Web Development, Fifth Edition
The definitive guide to building database-driven Web applications with PHP and MySQL
PHP and MySQL are popular open-source technologies that are ideal for quickly developing database-driven Web applications. PHP is a powerful scripting language designed to enable developers to create highly featured Web applications quickly, and MySQL is a fast, reliable database that integrates well with PHP and is suited for dynamic Internet-based applications.
PHP and MySQL Web Development shows how to use these tools together to produce effective, interactive Web applications. It clearly describes the basics of the PHP language, explains how to set up and work with a MySQL database, and then shows how to use PHP to interact with the database and the server.
This practical, hands-on book consistently focuses on real-world applications, even in the introductory chapters. The authors cover important aspects of security and authentication as they relate to building a real-world website and show you how to implement these aspects in PHP and MySQL. They also introduce you to the integration of front-end and back-end technologies by using JavaScript in your application development.
The final part of this book describes how to approach real-world projects and takes the reader through the design, planning, and building of several projects, including:
User authentication and personalization
Web-based email
Social media integration
The fifth edition of PHP and MySQL Web Development has been thoroughly updated, revised, and expanded to cover developments in PHP through versions 5.6 and 7, as well as features introduced in recent stable releases of MySQL.
Contents at a Glance
Part I: Using PHP
1 PHP Crash Course
2 Storing and Retrieving Data
3 Using Arrays
4 String Manipulation and Regular Expressions
5 Reusing Code and Writing Functions
6 Object-Oriented PHP
7 Error and Exception Handling
Part II: Using MySQL
8 Designing Your Web Database
9 Creating Your Web Database
10 Working with Your MySQL Database
11 Accessing Your MySQL Database from the Web with PHP
12 Advanced MySQL Administration
13 Advanced MySQL Programming
Part III: Web Application Security
14 Web Application Security Risks
15 Building a Secure Web Application
16 Implementing Authentication Methods with PHP
Part IV: Advanced PHP Techniques
17 Interacting with the File System and the Server
18 Using Network and Protocol Functions
19 Managing the Date and Time
20 Internationalization and Localization
21 Generating Images
22 Using Session Control in PHP
23 Integrating JavaScript and PHP
24 Other Useful Features
Part V: Building Practical PHP and MySQL Projects
25 Using PHP and MySQL for Large Projects
26 Debugging and Logging
27 Building User Authentication and Personalization
28 Building a Web-Based Email Service with Laravel Part I (Web Edition)
29 Building a Web-Based Email Service with Laravel Part II (Web Edition)
30 Social Media Integration Sharing and Authentication (Web Edition)
31 Building a Shopping Cart (Web Edition)
Part VI: Appendix
A Installing Apache, PHP, and MySQL
Table of contents
- About This E-Book
- Title Page
- Copyright Page
- Contents at a Glance
- Table of Contents
- Lead Authors
- Contributing Authors
- We Want to Hear from You!
- Reader Services
- Accessing the Free Web Edition
- Introduction
-
I: Using PHP
-
1. PHP Crash Course
- Before You Begin: Accessing PHP
- Creating a Sample Application: Bob’s Auto Parts
- Embedding PHP in HTML
- Adding Dynamic Content
- Accessing Form Variables
- Understanding Identifiers
- Examining Variable Types
- Declaring and Using Constants
- Understanding Variable Scope
- Using Operators
- Working Out the Form Totals
- Understanding Precedence and Associativity
- Using Variable Handling Functions
- Making Decisions with Conditionals
- Repeating Actions Through Iteration
- Breaking Out of a Control Structure or Script
- Employing Alternative Control Structure Syntax
- Using declare
- Next
- 2. Storing and Retrieving Data
- 3. Using Arrays
-
4. String Manipulation and Regular Expressions
- Creating a Sample Application: Smart Form Mail
- Formatting Strings
- Joining and Splitting Strings with String Functions
- Comparing Strings
- Matching and Replacing Substrings with String Functions
-
Introducing Regular Expressions
- The Basics
- Delimiters
- Character Classes and Types
- Repetition
- Subexpressions
- Counted Subexpressions
- Anchoring to the Beginning or End of a String
- Branching
- Matching Literal Special Characters
- Reviewing Meta Characters
- Escape Sequences
- Backreferences
- Assertions
- Putting It All Together for the Smart Form
- Finding Substrings with Regular Expressions
- Replacing Substrings with Regular Expressions
- Splitting Strings with Regular Expressions
- Further Reading
- Next
- 5. Reusing Code and Writing Functions
-
6. Object-Oriented PHP
- Understanding Object-Oriented Concepts
- Creating Classes, Attributes, and Operations in PHP
- Instantiating Classes
- Using Class Attributes
- Calling Class Operations
- Controlling Access with private and public
- Writing Accessor Functions
- Implementing Inheritance in PHP
- Using Traits
- Designing Classes
- Writing the Code for Your Class
-
Understanding Advanced Object-Oriented Functionality in PHP
- Using Per-Class Constants
- Implementing Static Methods
- Checking Class Type and Type Hinting
- Late Static Bindings
- Cloning Objects
- Using Abstract Classes
- Overloading Methods with __call()
- Using __autoload()
- Implementing Iterators and Iteration
- Generators
- Converting Your Classes to Strings
- Using the Reflection API
- Namespaces
- Using Subnamespaces
- Understanding the Global Namespace
- Importing and Aliasing Namespaces
- Next
- 7. Error and Exception Handling
-
1. PHP Crash Course
-
II: Using MySQL
- 8. Designing Your Web Database
-
9. Creating Your Web Database
- Using the MySQL Monitor
- Logging In to MySQL
- Creating Databases and Users
- Setting Up Users and Privileges
- Introducing MySQL’s Privilege System
- Setting Up a User for the Web
- Using the Right Database
- Creating Database Tables
- Understanding MySQL Identifiers
- Choosing Column Data Types
- Further Reading
- Next
- 10. Working with Your MySQL Database
- 11. Accessing Your MySQL Database from the Web with PHP
- 12. Advanced MySQL Administration
- 13. Advanced MySQL Programming
-
III: Web Application Security
- 14. Web Application Security Risks
- 15. Building a Secure Web Application
- 16. Implementing Authentication Methods with PHP
-
IV: Advanced PHP Techniques
- 17. Interacting with the File System and the Server
- 18. Using Network and Protocol Functions
- 19. Managing the Date and Time
- 20. Internationalization and Localization
- 21. Generating Images
- 22. Using Session Control in PHP
- 23. Integrating JavaScript and PHP
- 24. Other Useful Features
-
V: Building Practical PHP and MySQL Projects
-
25. Using PHP and MySQL for Large Projects
- Applying Software Engineering to Web Development
- Planning and Running a Web Application Project
- Reusing Code
- Writing Maintainable Code
- Implementing Version Control
- Choosing a Development Environment
- Documenting Your Projects
- Prototyping
- Separating Logic and Content
- Optimizing Code
- Testing
- Further Reading
- Next
- 26. Debugging and Logging
- 27. Building User Authentication and Personalization
-
25. Using PHP and MySQL for Large Projects
- VI: Appendix
- Index
Product information
- Title: PHP and MySQL® Web Development, Fifth Edition
- Author(s):
- Release date: September 2016
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780133038644
You might also like
book
Networking Fundamentals
Become well-versed with basic networking concepts such as routing, switching, and subnetting, and prepare for the …
book
Python Crash Course, 3rd Edition
Python Crash Course is the world's best-selling guide to the Python guide programming language, with over …
book
Building Microservices, 2nd Edition
As organizations shift from monolithic applications to smaller, self-contained microservices, distributed systems have become more fine-grained. …
book
Learn PHP 8: Using MySQL, JavaScript, CSS3, and HTML5
Write solid, secure, object-oriented code in the new PHP 8. In this book you will create …