Introduction To PHP 19-1-24
Introduction To PHP 19-1-24
Introduction To PHP 19-1-24
PHP files can contain text, HTML, CSS, JavaScript, and PHP code
PHP code is executed on the server, and the result is returned to the
browser as plain HTML
PHP files have extension ".php"
Advantages of PHP
Simple: PHP is quite easy to learn and use. It has a vast set of tutorials,
resources, and other insights that anyone can use to learn this language
effortlessly.
Performance: PHP websites typically run very fast (rather than JSP,
ASP.NET etc.). It runs efficiently on the server side.
Stable: PHP is stable since it has been in existence for a long time.
Open-source: PHP is open source and free to use. It means that
developers don’t have to pay a license fee to use PHP to develop
software products. An open source programming language is thus one in
which the source code to the language's compiler or interpreter is
accessible for viewing, modifying and redistributing to the world.
Download it from the official PHP resource: www.php.net
Community support: PHP has an active online community that helps you
whenever you face an issue. PHP Extension Community Library
(http://pecl.php.net/), which contains hundreds of ready-made widgets
and extensions that developers can use to painlessly add new
functionality to PHP. Using these widgets is often a more time- and cost-
efficient alternative to rolling your own code.
Flexible: Since It is a dynamically typed language, there are no hard
rules on how to build features using it.
Third-Party Application Support: It supports all the widely used
databases, including MySQL, ODBC, SQLite etc.
Secured: It provides us a secure platform for developing websites as it
has multiple security levels.
Portability: PHP runs on various platforms (Windows, Linux, Unix, Mac
OS X, etc.)
Compatibility: It is compatible with almost all servers used today
(Apache, IIS, etc.)
Supports many Protocols: PHP supports a large number of major
protocols such as POP3, IMAP, and LDAP.
Extensible: Extensible architecture of PHP enables developers to easily
add support for new technologies to the language through modular
extensions.
Applications of PHP
Server-side web development: It is a development where the
program runs on server dealing with the generation of content of
web page.
Content Management Systems (CMS): It is a framework already
designed by other programmers and coders on which you can either
contribute your knowledge and skills, or just use those coders’ skills
to design your own website or blog
E-commerce websites: E-commerce, or electronic commerce, refers
to the buying and selling of goods and services over the internet.
Database-driven applications: It is a software application that relies
on a database to store, manage, and retrieve data. It utilizes a
database management system (DBMS) to organize and manipulate
data, enabling efficient data storage, retrieval, and management.
Web APIs: It is an API as the name suggests, it can be accessed over
the web using the HTTP protocol. It is a framework that helps you to
create and develop HTTP based services.
History
Ve Relea
Supporte
rsi se Notes
d until
on date
8
Officially called "Personal Home Page Tools (PHP Tools)".
1.0 June
This is the first use of the name "PHP".
1995
22
23 June Added more advanced two-stage parse/execute tag-
4.0 May
2001 parsing system called the Zend engine.
2000
10
12
Dece Introduced "superglobals" ( $_GET , $_POST , $_SESSION ,
4.1 March
mber etc.)
2002
2001[
27
31
Dece Introduced the command-line interface (CLI), to
4.3 March
mber supplement the CGI.
2005
2002
13 5
5.0 July Septemb Zend Engine II with a new object model.
2004 er 2005
2
6
Nove Enabled the filter extension by default.
5.2 January
mber Native JSON support.
2011
2006
Not
Abandoned version of PHP that planned to include native
6.x releas —
Unicode support.
ed
1
1
Dece iterable type, nullable types, void return type, class
7.1 Decemb
mber constant visibility modifiers, short list syntax, ulti-catch
er 2019
2016
30
30 Object parameter and return type declaration, Libsodium
Nove
7.2 Novemb extension, abstract method overriding, parameter type
mber
er 2020 widening
2017
6
6 Flexible Heredoc and Nowdoc syntax, support for
Dece
7.3 Decemb reference assignment and array deconstruction with
mber
er 2021 list(), PCRE2 support, hrtime() function
2018