Learning PHP
A Gentle Introduction to the Web's Most Popular Language
Paperback Engels 2016 1e druk 9781491933572Samenvatting
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
Specificaties
Lezersrecensies
Inhoudsopgave
-PHP’s Place in the Web World
-What’s So Great About PHP?
-PHP in Action
-Basic Rules of PHP Programs
-Chapter Summary
2. Data: Working with Text and Numbers
-Text
-Numbers
-Variables
-Chapter Summary
-Exercises
3. Logic: Making Decisions and Repeating Yourself
-Understanding true and false
-Making Decisions
-Building Complicated Decisions
-Repeating Yourself
-Chapter Summary
-Exercises
4. Groups of Data: Working with Arrays
-Array Basics
-Looping Through Arrays
-Modifying Arrays
-Sorting Arrays
-Using Multidimensional Arrays
-Chapter Summary
-Exercises
5. Groups of Logic: Functions and Files
-Declaring and Calling Functions
-Passing Arguments to Functions
-Returning Values from Functions
-Understanding Variable Scope
-Enforcing Rules on Arguments and Return Values
-Running Code in Another File
-Chapter Summary
-Exercises
6. Data and Logic Together: Working with Objects
-Object Basics
-Constructors
-Indicating a Problem with Exceptions
-Extending an Object
-Property and Method Visibility
-Namespaces
-Chapter Summary
-Exercises
7. Exchanging Information with Users: Making Web Forms
-Useful Server Variables
-Accessing Form Parameters
-Form Processing with Functions
-Validating Data
-Displaying Default Values
-Putting It All Together
-Chapter Summary
-Exercises
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
-Understanding File Permissions
-Reading and Writing Entire Files
-Reading and Writing Parts of Files
-Working with CSV Files
-Inspecting File Permissions
-Checking for Errors
-Sanitizing Externally Supplied Filenames
-Chapter Summary
-Exercises
10. Remembering Users: Cookies and Sessions
-Working with Cookies
-Activating Sessions
-Storing and Retrieving Information
-Configuring Sessions
-Login and User Identification
-Why setcookie() and session_start() Want to Be at the Top of the Page
-Chapter Summary
-Exercises
11. Talking to Other Websites and Services
-Simple URL Access with File Functions
-Comprehensive URL Access with cURL
-Serving API Requests
-Chapter Summary
-Exercises
12. Debugging
-Controlling Where Errors Appear
-Fixing Parse Errors
-Inspecting Program Data
-Handling Uncaught Exceptions
-Chapter Summary
-Exercises
13. Testing: Ensuring Your Program Does the Right Thing
-Installing PHPUnit
-Writing a Test
-Isolating What You Test
-Test-Driven Development
-More Information About Testing
-Chapter Summary
-Exercises
14. Software Engineering Practices You Should Be Aware Of
-Source Control
-Issue Tracking
-Environments and Deployment
-Scaling Eventually
-Chapter Summary
15. Handling Dates and Times
-Displaying the Date or Time
-Parsing a Date or Time
-Calculating Dates and Times
-Working with Timezones
-Chapter Summary
16. Package Management
-Installing Composer
-Adding a Package to Your Program
-Finding Packages
-Getting More Information on Composer
-Chapter Summary
17. Sending Email
-Swift Mailer
-Chapter Summary
18. Frameworks
-Laravel
-Symfony
-Zend Framework
-Chapter Summary
19. Command-Line PHP
-Writing Command-Line PHP Programs
-Using PHP’s Built-in Web Server
-Running a PHP REPL
-Chapter Summary
20. Internationalization and Localization
-Manipulating Text
-Sorting and Comparing
-Localizing Output
-Chapter Summary
Appendix A: Installing and Configuring the PHP Engine
Appendix B: Answers to Exercises
Anderen die dit boek kochten, kochten ook
Rubrieken
- advisering
- algemeen management
- coaching en trainen
- communicatie en media
- economie
- financieel management
- inkoop en logistiek
- internet en social media
- it-management / ict
- juridisch
- leiderschap
- marketing
- mens en maatschappij
- non-profit
- ondernemen
- organisatiekunde
- personal finance
- personeelsmanagement
- persoonlijke effectiviteit
- projectmanagement
- psychologie
- reclame en verkoop
- strategisch management
- verandermanagement
- werk en loopbaan