「PHP Programming」の版間の差分

出典: フリー教科書『ウィキブックス(Wikibooks)』
削除された内容 追加された内容
編集の要約なし
M Reverted edits by Academia001 (talk) to last version by QuiteUnusual
1 行 1 行
[[Image:PHPWikibookCover.png|right]]
'''
'''PHP''' is a [[w:Scripting programming language|scripting]] language designed to fill the gap between [[w:Server Side Includes|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.
== PHP training institute in Delhi | PHP courses institutes Delhi ==
'''
PHP is a scripting language which is executed on server Actually PHP file is a combination of HTML, CSS and JavaScript. If we want to run PHP programming language then you have to use open source web server software such as XMPP server and Wamp Server. After installing both these software, web server act as local host which makes environment to test PHP code whether it may be right or wrong. PHP support cross platform OS like Unix like system, Windows, other 32 bit and 64 bit platform.
PHP is powered by Zend Software, which is free of cost that is released under licensed software. PHP has been widely ported and can be deployed on most of the web servers.
PHP is simply mixed with HTML code due to which it is easy learn by a normal html programmer. PHP code is processed by PHP interpreter, which is usually as web server on native module or CGI. After PHP code is executed, web server send resulting output to its client. PHP has capability for CLI and has capacity for standalone graphics applications.


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. [[Wikipedia:PHP|PHP]] was designed by [[Wikipedia:Rasmus Lerdorf|Rasmus Lerdorf]] to display his resume online and to collect data from his visitors.
There are so many institute which gives you [http://www.admecindia.co.in/online-training-web-development.html web designing & development education] Insert non-formatted text here but most of the student are not satisfied due to their inappropriate knowledge about PHP programming language. For the convenience of students we designed step by step course curriculum which allows them to learn PHP programming language in an easy manner. We ensure you that if you will get guidance via our talented trainers , you definitely get desired job in any work profile in which you want. There are cuntless benefits which differentiate our student from others :


Basically, PHP allows a static webpage to become dynamic. "PHP" is an acronym that stands for "'''P'''HP: '''H'''ypertext '''P'''reprocessor". The word "Preprocessor" means that PHP makes changes before the HTML page is created. This enables developers to create powerful applications which 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.
* Good Job Assistance
* Classroom exercises, quizzes will be provided at regular intervals
* Continuous feedback will be provided during training sessions so that every we ensure ourselves that every student will learn each and every concept regarding PHP programming.
* We will provide you an opportunity to get interact with industry experts.
* You can come to us again if you have any sort of doubt in any subjective concept.


Before you embark on the wonderful journey of Server Side Processing, it is recommended that you have a basic understanding of the [[HTML|HyperText Markup Language (HTML)]]. But [[Wikipedia:PHP|PHP]] can also be used to build [[Wikipedia:GUI|GUI]]-driven applications for example by using [[w:PHP-GTK|PHP-GTK]].
Our PHP training course is provide you job opportunities in top MNCs which help a respectable position in society.


== Setup and Installation ==
For more information you can contact us on following :

Address: C-7/ 114, IInd and IIIrd Floor, Sector-7, Near Rohini East Metro Station, Rohini, New Delhi, Delhi 110085
* [[{{BOOKNAME}}/Setup_and_Installation#Windows|Installation on Windows]]
Phone:09540776405
** '''[[{{BOOKNAME}}/Setup_and_Installation#Easy_Windows_Setup_Instructions|Easy Windows Setup Instructions]]'''
* [[{{BOOKNAME}}/Setup_and_Installation#Linux|Installation on Linux]]
* [[{{BOOKNAME}}/Setup_and_Installation#Mac_OS_X|Installation on Mac OS X]]
* [[{{BOOKNAME}}/Uses|Uses of PHP]]

Note: Before contributing, check out the [[{{TALKPAGENAME}}|discussion]] page. [[{{TALKPAGENAME}}#The_newline_.22operator.22|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.

#[http://www.afterhoursprogramming.com/tutorial/PHP/Overview/ Start a PHP Beginner Tutorial]
#[[{{BOOKNAME}}/hello world|Beginning with "Hello World!"]] {{stage|100%|10 Feb 2006}}
#[[{{BOOKNAME}}/basics|Nuts and Bolts]] {{stage|75%|14 Jan 2006}}
#[[{{BOOKNAME}}/comments|Commenting and Style]] {{stage|100%|14 Jan 2006}}
#[[{{BOOKNAME}}/arrays|Arrays]] {{stage|75%|10 Feb 2006}}
#Control structures
##[[{{BOOKNAME}}/if structure|The if Structure]] {{stage|75%|19 Mar 2009}}
##[[{{BOOKNAME}}/switch structure|The switch Structure]] {{stage|75%|14 Jan 2006}}
##[[{{BOOKNAME}}/while loop|The while Loop]] {{stage|75%|14 Jan 2006}}
##[[{{BOOKNAME}}/do while loop|The do while Loop]] {{stage|50%|14 Jan 2006}}
##[[{{BOOKNAME}}/for loop|The for Loop]] {{stage|50%|14 Jan 2006}}
##[[{{BOOKNAME}}/foreach loop|The foreach Loop]] {{stage|75%|14 Jan 2006}}
#[[{{BOOKNAME}}/functions|Functions]] {{stage|75%|10 Feb 2006}}
#[[{{BOOKNAME}}/Files|Files]] {{stage|100%|12 Feb 2008}}
#[[{{BOOKNAME}}/mail|Mailing]] {{stage|50%|14 Jan 2006}}
#[[{{BOOKNAME}}/cookies|Cookies]] {{stage|75%|14 Jan 2006}}
#[[{{BOOKNAME}}/sessions|Sessions]] {{stage|75%|2008-05-07}}
#Databases
##[[{{BOOKNAME}}/mysql|MySQL]] {{stage|75%|14 Jan 2006}}
##[[{{BOOKNAME}}/PostgreSQL|PostgreSQL]] {{stage|25%|18 Apr 2009}}
##[[{{BOOKNAME}}/pdo|PHP Data Objects]] {{stage|00%|18 Dec 2006}}
#[[{{BOOKNAME}}/integration_methods|Integration Methods (HTML Forms, etc.)]] {{stage|75%|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====
#[[{{BOOKNAME}}/Data_Structures|Data Structures]]

====Object Oriented Programming (OOP)====
#[[{{BOOKNAME}}/Classes|Classes]]
#[[{{BOOKNAME}}/Special_Methods|Special Methods]]
#[[{{BOOKNAME}}/Overriding_Overloading|Over riding and Over loading]]
#[[{{BOOKNAME}}/Inheritance|Class Extensions (Inheritance)]]
#[[{{BOOKNAME}}/SSH Class| The SSH Class]]

==== Templating ====
#[[{{BOOKNAME}}/whytemplating| Why Templating]]
#[[{{BOOKNAME}}/template| Templates]]
#[[{{BOOKNAME}}/caching| Caching]]
#[[{{BOOKNAME}}/smarty| SMARTY templating system]]
#[[{{BOOKNAME}}/prado| PRADO Component Framework]]
#[[{{BOOKNAME}}/Flat Frog| Flat Frog templating system]] {{stage|25%|23 march 2006}}
#[[{{BOOKNAME}}/XSL| XSL]]

==== Libraries ====
[[{{BOOKNAME}}/PEAR|PHP PEAR]]

==== Frameworks ====
*[http://www.cakephp.org/ CakePHP]
*[http://codeigniter.com/ CodeIgniter]
*[http://kohanaframework.org/ Kohana]
*[http://nette.org/ Nette]
*[http://www.qcodo.com/ Qcodo]
*[http://www.solarphp.com/ Solar]
*[http://www.symfony-project.org/ Symfony]
*[http://framework.zend.com/ Zend Framework]
*[http://www.yiiframework.com/ Yii]
*[http://www.drupal.org/ Drupal]
*[http://www.silverstripe.com/ Silverstripe]
*[http://www.laravel.com/ Laravel]

==== Security ====
#[[{{BOOKNAME}}/Register Globals| Configuration: Register Globals]]
#[[{{BOOKNAME}}/SQL Injection| SQL Injection Attacks]]
#[[{{BOOKNAME}}/Cross Site Scripting| Cross Site Scripting Attacks]]
#[[{{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]].''

==== Command-Line Interface (CLI) ====
#[[{{BOOKNAME}}/CLI| PHP CLI]]
#[[{{BOOKNAME}}/CLI/PHP-GTK| PHP-GTK]]
#[[{{BOOKNAME}}/CLI/Daemonization| Daemonization]]

==Appendices==
*[[/Code Snippets/]]
*[[/Coding Standards/]]
*[[/Alternative Hungarian Notation/]]
*[[/Editors/]]
*[[/Resources/]]
*[[/Contributors/]]

{{Subjects|PHP scripting language}}
{{alphabetical|P}}
{{status|75%}}
__NOTOC__ __NOEDITSECTION__

[[ar:لغات البرمجة/بي اش بي]]
[[ca:PHP]]
[[de:Websiteentwicklung: PHP]]
[[et:PHP]]
[[es:Programación en PHP]]
[[eu:PHP]]
[[fr:Programmation PHP]]
[[id:Pemrograman PHP]]
[[it:PHP]]
[[he:PHP]]
[[nl:Programmeren in PHP]]
[[ja:PHP]]
[[pl:PHP]]
[[pt:Curso de PHP]]
[[ro:PHP]]
[[ru:PHP]]
[[fi:PHP]]
[[th:ภาษาพีเอชพี]]
[[vi:PHP]]

2014年11月20日 (木) 15:23時点における版

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 which 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
  2. Beginning with "Hello World!" テンプレート:Stage
  3. Nuts and Bolts テンプレート:Stage
  4. Commenting and Style テンプレート:Stage
  5. Arrays テンプレート:Stage
  6. Control structures
    1. The if Structure テンプレート:Stage
    2. The switch Structure テンプレート:Stage
    3. The while Loop テンプレート:Stage
    4. The do while Loop テンプレート:Stage
    5. The for Loop テンプレート:Stage
    6. The foreach Loop テンプレート:Stage
  7. Functions テンプレート:Stage
  8. Files テンプレート:Stage
  9. Mailing テンプレート:Stage
  10. Cookies テンプレート:Stage
  11. Sessions テンプレート:Stage
  12. Databases
    1. MySQL テンプレート:Stage
    2. PostgreSQL テンプレート:Stage
    3. PHP Data Objects テンプレート:Stage
  13. Integration Methods (HTML Forms, etc.) テンプレート:Stage

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. Over riding and Over loading
  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 テンプレート:Stage
  7. XSL

Libraries

PHP PEAR

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