Professional Documents
Culture Documents
1
What is PHP?
● PHP is a general Purpose scripting Language.
● Full form of PHP is Recursive acronym i.e. Hypertext
Preprocessor.
2
What is PHP?
● PHP code will give results in the form of HTML, JSON,
XML or binary data in the form of Image or Audio,
video formats.
● Platform compatibility
3
PHP History
4
Why PHP Popular?
●Simplicity
●Compatibility
● Zero Cost
●Savviest System
Systems
5
Why PHP Popular?
●
Versatile
● Large Community/Libraries
6
Basic Language Constructs
Example 1 : Helloworld.php
<?php
echo '<p>Hello, World!</p>';
?>
CS380 7
Basic Language Constructs
<!DOCTYPE html>
<html>
<head>
<title>PHP "Hello, World!" program</title>
</head>
<body>
<?php
echo '<p>Hello, World!</p>';
?>
</body>
</html>
CS380 8
Licencing
CS380 9
Development and Community
Php.net is the best PHP repository and web site to get online
manual and resources documentations and new releases. Developer
can get the solutions to their problems in this site.
Various free PHP forums available to learn improve and share the
PHP development:
● CodeProject
● CodeGuru
● Dream In Code
● Designers Talk
● Programming Forums
CS380 10
A List of PHP editors
Editor Available on Platforms GUI builder Debugger
CS380 11
PHP Frameworks
To promote rapid application development,
PHP can be developed using many frameworks
which provide building blocks like CakePHP,
Symphony, Codeigniter, Drupal, Laravel ,
Joomla and Zend Framework etc.
CS380 12
Interesting Facts
⚫ Top 10 famous websites which are originally
developed in PHP
◦ Facebook.
◦ Yahoo
◦ Wikipedia
◦ WordPress
◦ Tumblr
◦ MailChimp
◦ Flickr
◦ Digg
CS380 13
PHP Installation
⚫ PHP can be installed on various platforms and works on
various operating systems.
⚫ PHP installation on Linux and windows
⚫ Linux
Apache Server Installation
PostgresSql Installation
PHP server Installation
⚫ Windows
IIS Server Installation
PostgresSql Installation
PHP server Installation
CS380 14
PHP Installation
⚫ PHP can be installed on various platforms and works on
various operating systems.
⚫ The below are some of the available PHP bundles.
⚫ The first letter standing for the respective operating system,
PHP is commonly used as the P in this bundle
◦ LAMP architecture for Linux, Apache, MySQL and PHP
◦ WAMP for Windows, Apache, MySQL and PHP
◦ XAMPP for Linux, Solaris, Windows, and Mac OS X,
Apache web server, MySQL, PHP, Perl, a FTP server and
phpMyAdmin.
◦ MAMP for macOS, Apache, MySQL and PHP
CS380 15
PHP Installation
⚫ PHP can be installed on various platforms and works on
various operating systems.
⚫ The below are some of the available PHP bundles.
⚫ The first letter standing for the respective operating system,
PHP is commonly used as the P in this bundle
◦ LAMP architecture for Linux, Apache, MySQL and PHP
◦ WAMP for Windows, Apache, MySQL and PHP
◦ XAMPP for Linux, Solaris, Windows, and Mac OS X,
Apache web server, MySQL, PHP, Perl, a FTP server and
phpMyAdmin.
◦ MAMP for macOS, Apache, MySQL and PHP
CS380 16