Book description
If you want to get started with PHP, this book is essential. Author David Sklar (PHP Cookbook) guides you through aspects of the language you need to build dynamic server-side websites. By exploring features of PHP 5.x and the exciting enhancements in the latest release, PHP 7, you’ll learn how to work with web servers, browsers, databases, and web services. End-of-chapter exercises help you make the lessons stick.
Whether you’re a hobbyist looking to build dynamic websites, a frontend developer ready to add server-side programs, or an experienced programmer who wants to get up to speed with this language, this gentle introduction also covers aspects of modern PHP, such as internationalization, using PHP from the command line, and package management.
- Learn how PHP interacts with browsers and servers
- Understand data types, variables, logic, looping, and other language basics
- Explore how to use arrays, functions, and objects
- Build and validate web forms
- Work with databases and session management
- Access APIs to interact with web services and other websites
- Jumpstart your project with popular PHP web application frameworks
Table of contents
- Preface
- 1. Orientation and First Steps
- 2. Data: Working with Text and Numbers
- 3. Logic: Making Decisions and Repeating Yourself
- 4. Groups of Data: Working with Arrays
- 5. Groups of Logic: Functions and Files
- 6. Data and Logic Together: Working with Objects
- 7. Exchanging Information with Users: Making Web Forms
-
8. Remembering Information: Databases
- Organizing Data in a Database
- Connecting to a Database Program
- Creating a Table
- Putting Data into the Database
- Inserting Form Data Safely
- A Complete Data Insertion Form
- Retrieving Data from the Database
- Changing the Format of Retrieved Rows
- Retrieving Form Data Safely
- A Complete Data Retrieval Form
- Chapter Summary
- Exercises
- 9. Working with Files
- 10. Remembering Users: Cookies and Sessions
- 11. Talking to Other Websites and Services
- 12. Debugging
- 13. Testing: Ensuring Your Program Does the Right Thing
- 14. Software Engineering Practices You Should Be Aware Of
- 15. Handling Dates and Times
- 16. Package Management
- 17. Sending Email
- 18. Frameworks
- 19. Command-Line PHP
- 20. Internationalization and Localization
- A. Installing and Configuring the PHP Engine
- B. Answers to Exercises
- Index
Product information
- Title: Learning PHP
- Author(s):
- Release date: April 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491933572
You might also like
audiobook
Technically Wrong
Buying groceries, tracking our health, finding a date: whatever we want to do, odds are that …
audiobook
Fall in Love with the Problem, Not the Solution
Unicorns-companies that reach a valuation of more than $1 billion-are rare. Uri Levine has built two. …
audiobook
How to Do Nothing
A galvanizing critique of the forces vying for our attention-and our personal information-that redefines what we …
video
React - The Complete Guide (Includes Hooks, React Router, and Redux) - Second Edition
**This course is now updated for the latest version of React—React 18** React.js is the most …