PHP Programming

From Wikibooks, open books for an open world
Jump to: navigation, search

Loupe light.svg

PHPWikibookCover.png

Introduction

Setup and Installation

Note: Before contributing, check out the discussion page. How to write your examples.

Learning the Language

The Basics

This section is about things that are important for any type of PHP development. Useful for a PHP programmer of any level.
  1. Start a PHP Beginner Tutorial 100% developed  as of 10 Feb 2006 (10 Feb 2006)
  2. Beginning with "Hello World!" 100% developed  as of 10 Feb 2006 (10 Feb 2006)
  3. Nuts and Bolts 75% developed  as of 14 Jan 2006 (14 Jan 2006)
  4. Commenting and Style 100% developed  as of 14 Jan 2006 (14 Jan 2006)
  5. Comparison operators 75% developed  as of 2016-04-06 (2016-04-06)
  6. Arrays 75% developed  as of 10 Feb 2006 (10 Feb 2006)
  7. Control structures
    1. The if Structure 75% developed  as of 19 Mar 2009 (19 Mar 2009)
    2. The switch Structure 75% developed  as of 14 Jan 2006 (14 Jan 2006)
    3. The while Loop 75% developed  as of 14 Jan 2006 (14 Jan 2006)
    4. The do while Loop 50% developed  as of 14 Jan 2006 (14 Jan 2006)
    5. The for Loop 50% developed  as of 14 Jan 2006 (14 Jan 2006)
    6. The foreach Loop 75% developed  as of 14 Jan 2006 (14 Jan 2006)
  8. Functions 75% developed  as of 10 Feb 2006 (10 Feb 2006)
  9. Files 100% developed  as of 12 Feb 2008 (12 Feb 2008)
  10. Mailing 50% developed  as of 14 Jan 2006 (14 Jan 2006)
  11. Cookies 75% developed  as of 14 Jan 2006 (14 Jan 2006)
  12. Sessions 75% developed  as of 2008-05-07 (2008-05-07)
  13. Databases
    1. MySQL 75% developed  as of 14 Jan 2006 (14 Jan 2006)
    2. PostgreSQL 25% developed  as of 18 Apr 2009 (18 Apr 2009)
    3. PHP Data Objects 0% developed  as of 18 Dec 2006 (18 Dec 2006)
    4. Neo4j
  14. Integration Methods (HTML Forms, etc.) 75% developed  as of 14 Jan 2006 (14 Jan 2006)

Advanced PHP

Advanced PHP includes high level programming and PHP techniques designed to make PHP even more useful and powerful.

Data Structures

  1. Data Structures

Object Oriented Programming (OOP)

  1. Classes
  2. Special Methods
  3. Overriding and Overloading
  4. Inheritance
  5. SSH Class

Templating

  1. Why Templating
  2. Templates
  3. Caching
  4. SMARTY templating system
  5. PRADO Component Framework
  6. Flat Frog
  7. XML
  8. XSL

Libraries

  1. PHP PEAR
  2. PHP Manual Function Reference
  3. PHP 5 Functions

Frameworks

CakePHP CodeIgniter Drupal Kohana
Laravel Nette Qcodo Silverstripe
Solar Symfony Yii Zend

Security

  1. Configuration: Register Globals
  2. SQL Injection Attacks
  3. Cross Site Scripting Attacks
  4. Building a secure user login system

See also the section on avoiding session fixation in the Sessions chapter.

Command-Line Interface (CLI)

  1. PHP CLI
  2. PHP-GTK
  3. Daemonization

Appendices