Log In
Or create an account -> 
Imperial Library
  • Home
  • About
  • News
  • Upload
  • Forum
  • Help
  • Login/SignUp

Index
Preface
Who This Book Is For Contents of This Book What’s Not in This Book Other Resources Conventions Used in This Book
Programming Conventions Typographical Conventions
Using Code Examples Safari® Books Online Comments and Questions Acknowledgments
1. Orientation and First Steps
PHP’s Place in the Web World What’s So Great About PHP?
PHP Is Free (as in Money) PHP Is Free (as in Speech) PHP Is Cross-Platform PHP Is Widely Used PHP Hides Its Complexity PHP Is Built for Web Programming
PHP in Action Basic Rules of PHP Programs
Start and End Tags Whitespace and Case-Sensitivity Comments
Chapter Summary
2. Data: Working with Text and Numbers
Text
Defining Text Strings Manipulating Text
Validating strings Formatting text
Numbers
Using Different Kinds of Numbers Arithmetic Operators
Variables
Operating on Variables Putting Variables Inside Strings
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
Creating an Array Choosing a Good Array Name Creating a Numeric Array Finding the Size of an Array
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
Required Elements Numeric or String Elements Number Ranges Email Addresses <select> Menus HTML and JavaScript Beyond Syntax
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 a File Writing a File
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
Retrieving URLs via GET Retrieving URLs via POST Using Cookies Retrieving HTTPS URLs
Serving API Requests Chapter Summary Exercises
12. Debugging
Controlling Where Errors Appear Fixing Parse Errors Inspecting Program Data
Adding Debug Output Using a Debugger
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
A. Installing and Configuring the PHP Engine
Using PHP with a Web-Hosting Provider Installing the PHP Engine
Installing on OS X Installing on Linux Installing on Windows
Modifying PHP Configuration Directives Appendix Summary
B. Answers to Exercises
Chapter 2
Exercise 1 Exercise 2 Exercise 3 Exercise 4 Exercise 5
Chapter 3
Exercise 1 Exercise 2 Exercise 3 Exercise 4
Chapter 4
Exercise 1 Exercise 2 Exercise 3 Exercise 4
Chapter 5
Exercise 1 Exercise 2 Exercise 3 Exercise 4 Exercise 5
Chapter 6
Exercise 1 Exercise 2 Exercise 3 Exercise 4
Chapter 7
Exercise 1 Exercise 2 Exercise 3 Exercise 4 Exercise 5
Chapter 8
Exercise 1 Exercise 2 Exercise 3 Exercise 4
Chapter 9
Exercise 1 Exercise 2 Exercise 3 Exercise 4 Exercise 5
Chapter 10
Exercise 1 Exercise 2 Exercise 3 Exercise 4
Chapter 11
Exercise 1 Exercise 2 Exercise 3 Exercise 4
Chapter 12
Exercise 1 Exercise 2 Exercise 3 Exercise 4
Chapter 13
Exercise 2 Exercise 3 Exercise 4
Index
  • ← Prev
  • Back
  • Next →
  • ← Prev
  • Back
  • Next →

Chief Librarian: Las Zenow <zenow@riseup.net>
Fork the source code from gitlab
.

This is a mirror of the Tor onion service:
http://kx5thpx2olielkihfyo4jgjqfb7zx7wxr3sd4xzt26ochei4m6f7tayd.onion