Learning PHP : a gentle introduction to the Web's most popular language /
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...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Sebastopol, CA :
O'Reilly Media,
2016.
|
Edición: | First edition. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- 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
- Text
- Defining Text Strings
- Manipulating Text
- Numbers
- Using Different Kinds of Numbers
- Arithmetic Operators
- Variables
- Operating on Variables
- Putting Variables Inside Strings
- Chapter Summary
- Exercises
- Understanding true and false
- Making Decisions
- Building Complicated Decisions
- Repeating Yourself
- Chapter Summary
- Exercises
- 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
- 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
- Object Basics
- Constructors
- Indicating a Problem with Exceptions
- Extending an Object
- Property and Method Visibility
- Namespaces
- Chapter Summary
- Exercises
- 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
- 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
- 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
- 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
- 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
- Controlling Where Errors Appear
- Fixing Parse Errors
- Inspecting Program Data
- Adding Debug Output
- Using a Debugger
- Handling Uncaught Exceptions
- Chapter Summary
- Exercises
- Installing PHPUnit
- Writing a Test
- Isolating What You Test
- Test-Driven Development
- More Information About Testing
- Chapter Summary
- Exercises
- Source Control
- Issue Tracking
- Environments and Deployment
- Scaling Eventually
- Chapter Summary
- Displaying the Date or Time
- Parsing a Date or Time
- Calculating Dates and Times
- Working with Timezones
- Chapter Summary
- Installing Composer
- Adding a Package to Your Program
- Finding Packages
- Getting More Information on Composer
- Chapter Summary
- Swift Mailer
- Chapter Summary
- Laravel
- Symfony
- Zend Framework
- Chapter Summary
- Writing Command-Line PHP Programs
- Using PHP's Built-in Web Server
- Running a PHP REPL
- Chapter Summary
- Manipulating Text
- Sorting and Comparing
- Localizing Output
- Chapter Summary.