Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

PHP MYSQL

Lecture 01: Introduction to Hypertext


Preprocessor

 PHP is derived from "Hypertext


Preprocessor"
 PHP is a widely-used, open
source (free to download, use,
modify and rerelease) scripting
language Department of Computer
 PHP scripts are executed on the Science
server. – server side scripting
Semester 6
language
Lecturer Yasir A. Mohamed
PHP History
 PHP was developed by Rasmus Lerdorf for monitoring his online
resume in 1995. It slowly became popular. This first version
PHP/F1 has some basic functions.
 PHP/F1 2.0 was released and was quickly replaced by PHP 3.0 in
1997
 PHP 3.0 was interesting. It was developed by Andi Gutmans and
Zeev suraski. It includes support for extensive range of databases
(Oracle and My SQL). This version had better portability and
manageability.
 At that time It was used by thousands of web servers.
PHP History
 PHP 4.0 was released in 2003. It used a new engine and provided
better performance, greater reliability and manageability and
support for web servers other than Apache.
 Apache is the web server that processes requests and serves web
assets and content via HTTP.
 PHP is the programming language that works with apache to help
create dynamic web content.
 MySQL is the database that stores all your information in an
easily queried format or manual format.
PHP History
 It also supports OOP features and built-in session
management.
 After that PHP 5.0 offers a complete object oriented
program models. It also includes better web management,
a more stable website for xampp tool kit, improved My
SQL support and better memory manager. PHP 5.0 was
one of the best languages for system building for last 10
year history.
 A survey was conducted by php scholars in April 2004. It
showed that PHP was in use for over 15 million websites.
Features of PHP

 PHP as a programming language for the web has many


advantages than JSP, ASP and VB.NET. Because of its
simple and open source availability it is the widely used
scripting language for websites.

 The features of PHP that are listed below makes PHP the
most enjoyable language for the developer community.
Features of PHP
 Simple to use
Even a beginner can easily to learn PHP because it has
 Clearly written manual DB
 Stable and logical syntax
 It may take only months for programmer to learn PHP and write
scripts.
 It has Kis principle for (Keep it simple) rapid application
development.
 The KIS principle states that most systems works best if they are
kept simple rather than made complicated
Features of PHP
 Portability
The PHP scripts can be made to work on different platforms from
PHP 3.0 This is because PHP code is interpreted not compiled.
 A compiled language is converted into machine code so
that the processor can execute it.
 An interpreted language is a language in which the
implementations execute instructions directly without
previous compiling a program into machine language.
 The compiled programs run faster than interpreted
programs.
Features of PHP
The meaning of this portability is developer can write code on
windows and install on Unix with translator for PHP.

PHP scripts can be run on Microsoft windows, Unix, Mac OS and


OS/2.
Features of PHP
 Speed
PHP scripts run faster that most scripting languages like ASP, JSP and
Perl. when PHP 4.0 was released it had new analyzing engine which
made it faster. PHP 5.0 was even faster through the use of increased
memory manager.
 Open source
Since PHP is open source, its source code is freely available on the
web. So we need not pay any license. So cost of developing website
application is reduced but reliability and performance is not
affected. This open-source approach also makes the application web
to fix web problems easily.
What is a PHP File
 PHP files can contain text, HTML, CSS, JavaScript, and PHP code
PHP codes are written on the text editor, and the result is
returned to the browser as plain HTML PHP files have extension
".php"
What Can PHP Do?

 PHP can generate dynamic page content


 PHP can create, open, read, write, delete, and close files on the
server
 PHP can collect form data
 PHP can send and receive cookies (Cookies can be used by web
servers to identity and track users as they navigate different
pages on a website, and to identify users returning to a website.)
 PHP can add, delete, and modify data in database
What Can PHP Do?

 PHP can be used to control user-access


 PHP can encrypt data
 PHP is not limited to output HTML. Even we can output images,
PDF files, and even Flash movies. We can also output any text,
such as XHTML and XML.
Why PHP?

 PHP runs on various platforms (Windows, Linux, Unix, Mac OS X,


etc.)
 PHP is compatible with almost all servers used today (Apache, IIS,
Internet Information Services and etc.)
 PHP supports a wide range of databases
 PHP is free. Download it from the official PHP resource:
www.php.net
 PHP is easy to learn and runs professionally on the server side
What's new in PHP 7

 PHP 7 is much faster than the previous popular stable release


(PHP 5.6).
 PHP 7 has upgraded Error Handling
 PHP 7 supports harsh Type Declarations for function point of
view.
 PHP 7 supports new operators (like the spaceship operator:
<=>)
Thanks!
Any questions?

You can find me at:


yaasiraliboss65@gmail.com
sunriseacademy@outlook.com
www.sunriseacademy.com

You might also like