「PHP Programming」の版間の差分

出典: フリー教科書『ウィキブックス(Wikibooks)』
削除された内容 追加された内容
M Minor adoptions
Added a reference
69 行 69 行
==== Libraries ====
==== Libraries ====
# [[{{BOOKNAME}}/PHP_PEAR|PHP PEAR]]
# [[{{BOOKNAME}}/PHP_PEAR|PHP PEAR]]
# [http://php.net/manual/en/funcref.php PHP Manual Function Reference]
# [http://www.w3schools.com/php/ PHP5 Functions]
# [http://www.w3schools.com/php/ PHP5 Functions]


91 行 92 行
# [[{{BOOKNAME}}/User login systems|Building a secure user login system]]
# [[{{BOOKNAME}}/User login systems|Building a secure user login system]]


''See also the [[{{BOOKNAME}}/sessions#Avoiding Session Fixation|section on avoiding session fixation]] in the [[{{BOOKNAME}}/sessions|Sessions chapter]].''
''See also the [[{{BOOKNAME}}/Sessions#Avoiding Session Fixation|section on avoiding session fixation]] in the [[{{BOOKNAME}}/Sessions|Sessions chapter]].''


==== Command-Line Interface (CLI) ====
==== Command-Line Interface (CLI) ====

2015年1月23日 (金) 07:33時点における版

PHP is a scripting language designed to fill the gap between SSI (Server Side Includes) and Perl, intended for the Web environment. Its principal application is the implementation of Web pages having dynamic content. PHP has gained quite a following in recent times, and it is one of the frontrunners in the Open Source software movement. Its popularity derives from its C-like syntax, and its simplicity. The newest version of PHP is 5.5 and it is heavily recommended to always use the newest version for better security, performance and of course features.

If you've ever been to a website that prompts you to login, you've probably encountered a server-side scripting language. Due to its market saturation, this means you've probably come across PHP. PHP was designed by Rasmus Lerdorf to display his resume online and to collect data from his visitors.

Basically, PHP allows a static webpage to become dynamic. "PHP" is an acronym that stands for "PHP: Hypertext Preprocessor". The word "Preprocessor" means that PHP makes changes before the HTML page is created. This enables developers to create powerful applications that can publish a blog, remotely control hardware, or run a powerful website such as Wikipedia or Wikibooks. Of course, to accomplish something such as this, you need a database application such as MySQL.

Before you embark on the wonderful journey of Server Side Processing, it is recommended that you have a basic understanding of the HyperText Markup Language (HTML). But PHP can also be used to build GUI-driven applications for example by using PHP-GTK.

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% 開発済み  as of 10 Feb 2006 (10 Feb 2006)
  2. Beginning with "Hello World!" 100% 開発済み  as of 10 Feb 2006 (10 Feb 2006)
  3. Nuts and Bolts 75% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
  4. Commenting and Style 100% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
  5. Arrays 75% 開発済み  as of 10 Feb 2006 (10 Feb 2006)
  6. Control structures
    1. The if Structure 75% 開発済み  as of 19 Mar 2009 (19 Mar 2009)
    2. The switch Structure 75% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
    3. The while Loop 75% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
    4. The do while Loop 50% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
    5. The for Loop 50% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
    6. The foreach Loop 75% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
  7. Functions 75% 開発済み  as of 10 Feb 2006 (10 Feb 2006)
  8. Files 100% 開発済み  as of 12 Feb 2008 (12 Feb 2008)
  9. Mailing 50% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
  10. Cookies 75% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
  11. Sessions 75% 開発済み  as of 2008-05-07 (2008-05-07)
  12. Databases
    1. MySQL 75% 開発済み  as of 14 Jan 2006 (14 Jan 2006)
    2. PostgreSQL 25% 開発済み  as of 18 Apr 2009 (18 Apr 2009)
    3. PHP Data Objects 0% 開発済み  as of 18 Dec 2006 (18 Dec 2006)
  13. Integration Methods (HTML Forms, etc.) 75% 開発済み  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. Class Extensions (Inheritance)
  5. The SSH Class

Templating

  1. Why Templating
  2. Templates
  3. Caching
  4. SMARTY templating system
  5. PRADO Component Framework
  6. Flat Frog templating system 25% 開発済み  as of 23 march 2006 (23 march 2006)
  7. XSL

Libraries

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

Frameworks

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

テンプレート:Alphabetical テンプレート:Status ja:PHP