Zend PHP Certification Study Guide

Book description

The first and only officially authorized book on the PHP Certification exam developed by Zend Technologies, the commercial developer of PHP. Zend's PHP Certification exam is a high-quality, carefully developed exam designed to enhance and certify the skills of the PHP professional. The Zend PHP Certification Study Guide is a concise, densely packed book that will get you up to speed quickly on the nature of the exam's questions and what to expect on exam day. It's authoritative content comes directly from those writing the exam at Zend Technologies.

Table of contents

  1. Copyright
  2. About the Authors
  3. We Want to Hear from You!
  4. Reader Services
  5. Foreword
  6. Introduction
    1. What Does This Guide Cover?
      1. How Is the Guide Organized?
    2. Other Resources You Might Want to Consult
  7. 1. The Basics of PHP
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. Language and Platform
    4. Getting Started
      1. The Special <?= ?> Tags
    5. Scripts and Files
    6. Manipulating Data
      1. Numeric Values
      2. String Values
      3. Boolean Values
      4. Arrays
      5. Objects
      6. The NULL Data Type
      7. Resources
    7. Identifiers, Constants, and Variables
      1. Variables
      2. Variable Substitution in Strings
      3. Statements
      4. Constants
    8. Operators
      1. The Assignment Operator
      2. Arithmetic Operators
      3. Bitwise Operators
      4. Error-control Operators
      5. String Operators
      6. Comparison Operators
      7. Logical Operators
      8. Typecasting
      9. Combined Assignment Operators
      10. Combining Operations: Operator Precedence and Associativity
    9. Conditional Structures
      1. Alternative if-then-else Syntax
      2. Short-form if-then-else
      3. The case Statement
    10. Iteration and Loops
      1. The while Structure
      2. The do-while Structure
      3. The for Loop
      4. Continuing a Loop
    11. Functions and Constructs
      1. Functions and Variable Scope
      2. Functions with Variable Parameters
      3. Variable Variables and Variable Functions
    12. Exam Prep Questions
  8. 2. Object-Oriented PHP
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. Getting Started
    4. Instantiating a Class: Objects
    5. Classes as Namespaces
    6. Objects and References
    7. Implementing Inheritance
    8. Magic Functions: Serializing Objects
    9. Exam Prep Questions
  9. 3. PHP and the Web
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. Server-side Versus Client-side
    4. HTML Forms
    5. Cookies
    6. Sessions
    7. Exam Prep Questions
  10. 4. Arrays
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. Creating Arrays
      1. Using the Array Operator
      2. Counting the Number of Elements in an Array
      3. Assigning Values from an Array to Multiple Variables
    4. Multidimensional Arrays
    5. Navigating Arrays
      1. Using foreach
      2. Using the Internal Pointer
      3. Using a Callback
    6. Manipulating Keys
      1. Checking if an Element Exists
      2. Changing the Array of Keys
      3. Sorting an Array by Its Keys
    7. Manipulating Arrays
      1. Sorting Multidimensional Arrays
      2. Randomizing Arrays
      3. Merging Arrays
      4. Intersection and Difference
    8. Serializing Arrays
    9. Exam Prep Questions
  11. 5. Strings and Regular Expressions
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. Comparing Strings
      1. Comparison with == and ===
      2. Using strcmp and Friends
      3. Matching Portions of Strings
        1. Matching Leading Substrings
        2. Matching Substrings at Arbitrary Offsets
    4. Formatting Strings
      1. printf Formats
      2. printf() Family Functions
    5. Extracting Data from Strings
      1. Extracting Substrings by Offset
      2. Extracting Formatted Data
    6. Modifying Strings
      1. Modifying Substrings by Offset
      2. Replacing Substrings
    7. Regular Expressions
      1. Basic PCRE Syntax
      2. Extracting Data with Regular Expressions
      3. Pattern Replacement with Regular Expressions
      4. Splitting Strings into Components
    8. Exam Prep Questions
  12. 6. File Manipulation
    1. Techniques You’ll Need to Master
    2. Terms You’ll Need to Understand
    3. Opening Files
    4. Closing Files
    5. Reading from a File
    6. Writing to a File
    7. Determining Information About Files
    8. Manipulating Files on the Filesystem
      1. Copying, Deleting, and Moving Files
      2. Changing Ownership and Permissions
    9. Locking Files
    10. Miscellaneous Shortcuts
      1. file()
      2. readfile()
      3. file_get_contents()
    11. Exam Prep Questions
  13. 7. Managing Dates and Times
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. How PHP Handles Dates
    4. Getting the Current Time Stamp
    5. Getting a Date Array
    6. Formatting a Date String
    7. Getting a UNIX Time Stamp from a Date Array
    8. Getting a UNIX Time Stamp from a String
    9. Exam Prep Questions
  14. 8. Managing Email
    1. Introduction
      1. Terms You’ll Need to Understand
      2. Techniques You’ll Need to Master
    2. How Email Is Delivered
      1. MTA—Mail Transport Agent
      2. SMTP—Simple Mail Transport Protocol
      3. MX Records
      4. MUA—Mail User Agent
      5. SASL—Simple Authentication and Security Layer
      6. Other Emerging Technologies
    3. Preparing PHP
      1. If You Are Using PHP on UNIX
      2. If You Are Using PHP on Windows or Netware
    4. Sending Email
      1. Sending an Email to More Than One Recipient
    5. Managing Email Headers
      1. The Cc: and Bcc: Headers
      2. The From: Header
    6. Setting the Subject
    7. Formatting an Email Message
      1. Plain-Text Emails
      2. Basic HTML Emails
    8. Attaching a File to a Message
      1. Attached Images for HTML Emails
    9. Using Extra Command-Line Parameters
    10. A Word About Email Delivery
    11. Further Reading
    12. Exam Prep Questions
  15. 9. PHP and Databases
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. “Databasics”
      1. Indices
      2. Writing Good Indices
      3. Primary Keys
      4. Foreign Keys and Relations
    4. Creating Tables or Adding and Removing Rows
      1. Inserting a Row
      2. Deleting Rows
    5. Retrieving Information from a Database
    6. Extracting Data from More Than One Table
    7. Aggregate Functions
    8. Sorting
    9. Transactions
    10. PHP and Databases
      1. There’s Date and Date
    11. Exam Prep Questions
  16. 10. Stream and Network Programming
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. php.ini Settings to Understand
    4. What Are File Wrappers?
      1. How Do You Choose Which File Wrapper Is Used?
      2. What Built-In Wrappers Does PHP Provide?
      3. Not All Wrappers Are Created Equal
      4. Using a File Wrapper
      5. Correctly Detecting Line Endings
      6. Closing a File Wrapper
      7. Other Functions That Work with File Wrappers
    5. Introducing Streams
      1. What Is Stream Metadata?
      2. Pipelines
      3. What Is the Stream Transport?
      4. What Is the Stream Context?
      5. How Do Streams Affect Me?
    6. Connecting to Remote Hosts Using Sockets
      1. When Should I Use a Socket Instead of a File Wrapper?
      2. What Network Transports Does PHP Support?
      3. How Do I Open a Socket?
      4. Persistent Sockets
      5. Timeouts When Opening a Socket
      6. How Do I Use a Socket?
      7. Blocking Mode
      8. Read/Write Timeouts
      9. Closing a Socket
    7. Further Reading
    8. Exam Prep Questions
  17. 11. Security
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. Data Filtering
    4. Register Globals
    5. SQL Injection
    6. Command Injection
    7. Cross-Site Scripting
    8. Shared Hosting
    9. Exam Prep Questions
  18. 12. Debugging and Performance
    1. Terms You’ll Need to Understand
    2. Techniques You’ll Need to Master
    3. Coding Standards
      1. Flattening if Statements
      2. Splitting Single Commands Across Multiple Lines
      3. Concatenation Versus Substitution
      4. Choose Your Opening Tags Carefully
    4. One Equal, Two Equals, Three Equals
      1. There’s Equal and Equal
    5. Testing for Resource Allocation
    6. Ternary Operators and if Statements
    7. Logging and Debugging
      1. Using Debuggers
    8. Optimizing Performance
      1. Hardware Issues
      2. Web Server Issues
      3. Avoid Overkill
      4. Zip It Up
    9. Database Optimizations
      1. Keep Your Code Simple
    10. Caching Techniques
      1. Bytecode Caches
    11. Exam Prep Questions
  19. 13. Getting Ready for the Certification Exam
    1. What the Exam Tests
    2. How to Register
      1. Registration via Pearson VUE Call Center
      2. Registration via the Person VUE Website
      3. Registration at the Test Center
    3. What to Expect at the Test Center
    4. How the Exam Works
      1. Exam Instructions
    5. NDA (NONDISCLOSURE AGREEMENT)
      1. Viewing Backward and Forward
      2. Reviewing Your Answers
      3. Your Comments
    6. What Kinds of Questions Are Asked?
      1. Single Choice Questions
      2. Multiple Choice Questions
      3. Fill in the Blanks Questions
      4. Open Questions
  20. Practice Exam Questions
    1. Answers
  21. Glossary

Product information

  • Title: Zend PHP Certification Study Guide
  • Author(s): Zend Technologies
  • Release date: July 2004
  • Publisher(s): Sams
  • ISBN: 9780672327094