PHP Cookbook, 3rd Edition
- Length: 820 pages
- Edition: 3
- Language: English
- Publisher: O'Reilly Media
- Publication Date: 2014-07-25
- ISBN-10: 144936375X
- ISBN-13: 9781449363758
- Sales Rank: #306919 (See Top 100 Books)
Want to understand a certain PHP programming technique? Or learn how to accomplish a particular task? This cookbook is the first place to look. With more than 350 code-rich recipes revised for PHP 5.4 and 5.5, this third edition provides updated solutions for generating dynamic web content—everything from using basic data types to querying databases, and from calling RESTful APIs to testing and securing your site.
Each recipe includes code solutions that you can freely use, along with a discussion of how and why they work. Whether you’re an experienced PHP programmer or coming to PHP from another language, this book is an ideal on-the-job resource.
You’ll find recipes to help you with:
- Basic data types: strings, numbers, arrays, and dates and times
- Program building blocks: variables, functions, classes, and objects
- Web programming: cookies, forms, sessions, and authentication
- Database access using PDO, SQLite, and other extensions
- RESTful API clients and servers, including HTTP, XML, and OAuth
- Key concepts: email, regular expressions, and graphics creation
- Designing robust applications: security and encryption, error handling, debugging and testing, and performance tuning
- Files, directories, and PHP’s Command Line Interface
- Libraries and package managers such as Composer and PECL
Table of Contents
Chapter 1. Strings
Chapter 2. Numbers
Chapter 3. Dates and Times
Chapter 4. Arrays
Chapter 5. Variables
Chapter 6. Functions
Chapter 7. Classes and Objects
Chapter 8. Web Fundamentals
Chapter 9. Forms
Chapter 10. Database Access
Chapter 11. Sessions and Data Persistence
Chapter 12. XML
Chapter 13. Web Automation
Chapter 14. Security and Encryption
Chapter 15. Internationalization and Localization
Chapter 16. Error Handling
Donate to keep this site alive
How to download source code?
1. Go to: https://www.oreilly.com/
2. Search the book title: PHP Cookbook, 3rd Edition
, sometime you may not get the results, please search the main title
3. Click the book title in the search results
3. Publisher resources
section, click Download Example Code
.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.