Learning php david sklar

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 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

Отзывы — Написать отзыв

LibraryThing Review

This is a typical offering from O’Reilly’s Learning series. It’s aimed at those trying to get a proper background and understanding of php (as opposed to those who just want a reference to dip into to . Читать весь отзыв

Читайте также:  Php pdo select from

Источник

Learning PHP

Learning PHP

Read it now on the O’Reilly learning platform with a 10-day free trial.

O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

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

  1. Preface
    1. Who This Book Is For
    2. Contents of This Book
    3. What’s Not in This Book
    4. Other Resources
    5. Conventions Used in This Book
      1. Programming Conventions
      2. Typographical Conventions
      1. PHP’s Place in the Web World
      2. What’s So Great About PHP?
        1. PHP Is Free (as in Money)
        2. PHP Is Free (as in Speech)
        3. PHP Is Cross-Platform
        4. PHP Is Widely Used
        5. PHP Hides Its Complexity
        6. PHP Is Built for Web Programming
        1. Start and End Tags
        2. Whitespace and Case-Sensitivity
        3. Comments
        1. Text
          1. Defining Text Strings
          2. Manipulating Text
          1. Using Different Kinds of Numbers
          2. Arithmetic Operators
          1. Operating on Variables
          2. Putting Variables Inside Strings
          1. Understanding true and false
          2. Making Decisions
          3. Building Complicated Decisions
          4. Repeating Yourself
          5. Chapter Summary
          6. Exercises
          1. Array Basics
            1. Creating an Array
            2. Choosing a Good Array Name
            3. Creating a Numeric Array
            4. Finding the Size of an Array
            1. Declaring and Calling Functions
            2. Passing Arguments to Functions
            3. Returning Values from Functions
            4. Understanding Variable Scope
            5. Enforcing Rules on Arguments and Return Values
            6. Running Code in Another File
            7. Chapter Summary
            8. Exercises
            1. Object Basics
            2. Constructors
            3. Indicating a Problem with Exceptions
            4. Extending an Object
            5. Property and Method Visibility
            6. Namespaces
            7. Chapter Summary
            8. Exercises
            1. Useful Server Variables
            2. Accessing Form Parameters
            3. Form Processing with Functions
            4. Validating Data
              1. Required Elements
              2. Numeric or String Elements
              3. Number Ranges
              4. Email Addresses
              5. Menus
              6. HTML and JavaScript
              7. Beyond Syntax
              1. Organizing Data in a Database
              2. Connecting to a Database Program
              3. Creating a Table
              4. Putting Data into the Database
              5. Inserting Form Data Safely
              6. A Complete Data Insertion Form
              7. Retrieving Data from the Database
              8. Changing the Format of Retrieved Rows
              9. Retrieving Form Data Safely
              10. A Complete Data Retrieval Form
              11. Chapter Summary
              12. Exercises
              1. Understanding File Permissions
              2. Reading and Writing Entire Files
                1. Reading a File
                2. Writing a File
                1. Working with Cookies
                2. Activating Sessions
                3. Storing and Retrieving Information
                4. Configuring Sessions
                5. Login and User Identification
                6. Why setcookie() and session_start() Want to Be at the Top of the Page
                7. Chapter Summary
                8. Exercises
                1. Simple URL Access with File Functions
                2. Comprehensive URL Access with cURL
                  1. Retrieving URLs via GET
                  2. Retrieving URLs via POST
                  3. Using Cookies
                  4. Retrieving HTTPS URLs
                  1. Controlling Where Errors Appear
                  2. Fixing Parse Errors
                  3. Inspecting Program Data
                    1. Adding Debug Output
                    2. Using a Debugger
                    1. Installing PHPUnit
                    2. Writing a Test
                    3. Isolating What You Test
                    4. Test-Driven Development
                    5. More Information About Testing
                    6. Chapter Summary
                    7. Exercises
                    1. Source Control
                    2. Issue Tracking
                    3. Environments and Deployment
                    4. Scaling Eventually
                    5. Chapter Summary
                    1. Displaying the Date or Time
                    2. Parsing a Date or Time
                    3. Calculating Dates and Times
                    4. Working with Timezones
                    5. Chapter Summary
                    1. Installing Composer
                    2. Adding a Package to Your Program
                    3. Finding Packages
                    4. Getting More Information on Composer
                    5. Chapter Summary
                    1. Swift Mailer
                    2. Chapter Summary
                    1. Laravel
                    2. Symfony
                    3. Zend Framework
                    4. Chapter Summary
                    1. Writing Command-Line PHP Programs
                    2. Using PHP’s Built-in Web Server
                    3. Running a PHP REPL
                    4. Chapter Summary
                    1. Manipulating Text
                    2. Sorting and Comparing
                    3. Localizing Output
                    4. Chapter Summary
                    1. Using PHP with a Web-Hosting Provider
                    2. Installing the PHP Engine
                      1. Installing on OS X
                      2. Installing on Linux
                      3. Installing on Windows
                      1. Chapter 2
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        5. Exercise 5
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        5. Exercise 5
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        5. Exercise 5
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        5. Exercise 5
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        1. Exercise 1
                        2. Exercise 2
                        3. Exercise 3
                        4. Exercise 4
                        1. Exercise 2
                        2. Exercise 3
                        3. Exercise 4

                        Product information

                        • Title: Learning PHP
                        • Author(s): David Sklar
                        • Release date: April 2016
                        • Publisher(s): O’Reilly Media, Inc.
                        • ISBN: 9781491933572

                        You might also like

                        Check it out now on O’Reilly

                        Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.

                        Источник

Оцените статью