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
Publisher resources
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
book
Learning PHP 5
PHP has gained a following among non-technical web designers who need to add interactive aspects to …
book
Learning PHP 7
Learn the art of PHP programming through this example-rich book filled to the brim with tutorials …
book
Learning PHP and MySQL
The PHP scripting language and MySQL open source database are quite effective independently, but together they …
book
Object-Oriented PHP
Object-Oriented PHP shows developers how to take advantage of the new object-oriented features of PHP. Working …