Jump to content

PHP Programming

75% developed
From Wikibooks, open books for an open world

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. Beginning with "Hello World!"100% developed  as of 10 Feb 2006 (10 Feb 2006)
  2. Nuts and Bolts75% developed  as of 14 Jan 2006 (14 Jan 2006)
  3. Commenting and Style100% developed  as of 14 Jan 2006 (14 Jan 2006)
  4. Comparison operators75% developed  as of 2016-04-06 (2016-04-06)
  5. Arrays75% developed  as of 10 Feb 2006 (10 Feb 2006)
  6. Control structures
    1. The if Structure75% developed  as of 19 Mar 2009 (19 Mar 2009)
    2. The switch Structure75% developed  as of 14 Jan 2006 (14 Jan 2006)
    3. The while Loop75% developed  as of 14 Jan 2006 (14 Jan 2006)
    4. The do while Loop50% developed  as of 14 Jan 2006 (14 Jan 2006)
    5. The for Loop50% developed  as of 14 Jan 2006 (14 Jan 2006)
    6. The foreach Loop75% developed  as of 14 Jan 2006 (14 Jan 2006)
  7. Functions75% developed  as of 10 Feb 2006 (10 Feb 2006)
  8. PHP Include Files
  9. Files100% developed  as of 12 Feb 2008 (12 Feb 2008)
  10. Mailing50% developed  as of 14 Jan 2006 (14 Jan 2006)
  11. Cookies75% developed  as of 14 Jan 2006 (14 Jan 2006)
  12. Sessions75% developed  as of 2008-05-07 (2008-05-07)
  13. Databases
    1. MySQL75% developed  as of 14 Jan 2006 (14 Jan 2006)
    2. PostgreSQL25% developed  as of 18 Apr 2009 (18 Apr 2009)
    3. PHP Data Objects0% developed  as of 18 Dec 2006 (18 Dec 2006)
    4. Neo4j
    5. DBAL
  14. Integration Methods (HTML Forms, etc.)75% developed  as of 14 Jan 2006 (14 Jan 2006)
  15. Regular expressions

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

Caching

  1. Caching

Templating

  1. Why Templating
  2. Templates
  3. Smarty templating system
  4. Flat Frog
  5. XML
  6. XSL

Libraries

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

Frameworks

CakePHPCodeIgniterDrupalKohana
LaravelNetteQcodoSilverstripe
SolarSymfonyYiiZend

Security

  1. Configuration: Register Globals
  2. SQL Injection Attacks
  3. Building a secure user login system
  4. Cross Site Scripting Attacks (XSS)
  5. Secure HTTP headers
  6. Encryption

See also:

Command-Line Interface (CLI)

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

Appendices

close