Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
27 views

Module #1 - Introduction To PHP

PHP is a server-side scripting language created by Rasmus Lerdorf in 1994. Originally created to maintain his personal homepage, PHP has evolved into a full-featured programming language commonly used for web development. PHP code is embedded into HTML and executed by the server before the page is sent to the browser. It allows developers to create dynamic webpages that interact with databases. Some key advantages of PHP include being easy to learn, highly flexible, efficient performance, and cost-effective as it is open-source. Potential disadvantages include some security risks due to its open-source nature and not being as suitable for large applications compared to other languages.

Uploaded by

clangdelacruz007
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Module #1 - Introduction To PHP

PHP is a server-side scripting language created by Rasmus Lerdorf in 1994. Originally created to maintain his personal homepage, PHP has evolved into a full-featured programming language commonly used for web development. PHP code is embedded into HTML and executed by the server before the page is sent to the browser. It allows developers to create dynamic webpages that interact with databases. Some key advantages of PHP include being easy to learn, highly flexible, efficient performance, and cost-effective as it is open-source. Potential disadvantages include some security risks due to its open-source nature and not being as suitable for large applications compared to other languages.

Uploaded by

clangdelacruz007
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

REVIEW

PHP
Programming
PHP was created by

Rasmus Lerdorf

in 1994
History
• PHP is a server side scripting
language which originally stood for
Personal Home Page.

• It was never intended to be a fully


blown programming language as
Rasmus had simply wanted a set of
tools to help him maintain his
homepage.
History
• As the language developed and
became what it is today the acronym
changed to be the recursive version we
have now : PHP : Hypertext
Preprocessor.
History
• The Hypertext Preprocessor part
refers to HTML, Hyper Text Markup
Language,

• and the fact that it is run on the server


and so can be used to process the
HTML before it is sent to the browser
and processed again.
PHP stands for

"Hypertext PreProcessor"
PHP is a programming
language use for

Website Development
PHP is a scripting language
used to create dynamic and
interactive HTML Web pages
PHP allows developers to
create Dynamic Webpages

that can interact with


Databases.
PHP is C Language-Like
Uses of PHP
• PHP is a server side scripting
language that is embedded in HTML.

• It is used to manage dynamic content,


databases, session tracking, even build
entire e-commerce sites.
Uses of PHP
• It is integrated with a number of
popular databases.

• including MySQL, PostgreSQL, Oracle,


Sybase, Informix, and Microsoft SQL
Server.
Versions of PHP
• PHP Version 1.0
– As mentioned before, PHP development
started way back in 1994 and was
developed by RasmusLerdorf.

• PHP Version 2.0


– The initial version of PHP, though not very
refined gained a lot of popularity by the
developer community when it was
released for public usage in 1995.
Versions of PHP
• PHP Version 3.0 (1998)
– As PHP’s popularity grew, it attracted the
attention of ZeevSuraski and
AndiGutmans.

• PHP Version 4.0


– Finally, in the year 2000, PHP version 4
powered by Zend Engine 1 was released
for public usage.
Versions of PHP
• PHP Version 5.0 and 6.0
– In 2004, this was released and was
powered by Zend Engine 2

• Current Version 7.0


– During the period of 2016 and 2017, PHP
underwent major changes and the update
was released as PHP 7.
– The version number selected for rolling
out this release has to face several
debates.
Advantages of PHP
• Easy and Simple to Learn
– PHP is considered one of the easiest
scripting languages. Compared to other
web languages, PHP doesn’t require a
manual or intensive studying. PHP syntax
is logical and well-organized.
Advantages of PHP
• Extremely Flexible
– PHP is highly flexible whether it is during
an ongoing project or after completing the
project.

– Flexibility in a scripting language is very


crucial, as functionality can change
anytime during the course of a project.
Advantages of PHP
• Easy Integration and Compatibility
– PHP is compatible with a large majority of
operating systems. It can easily run on
different platforms, including UNIX,
Solaris and Linux.
Advantages of PHP
• Efficient Performance
– Depending on how the web developer
codes, PHP has the potential to turn in an
efficient language.
Advantages of PHP
• Cost-Efficient
– PHP is an open-source web language,
hence is completely free. There is no
expense involved in purchasing expensive
licenses or software.
Dis-advantages of PHP
• Security
– Since it is open sourced, so all people can
see the source code, if there are bugs in
the source code, it can be used by people
to explore the weakness of PHP
Dis-advantages of PHP
• Not suitable for large applications
– Hard to maintain since it is not very
modular.
Dis-advantages of PHP
• Weak type
– Implicit conversion may surprise unwary
programmers and lead to unexpected
bugs.

– For example, the strings “1000” and “1e3”


compare equal because they are implicitly
cast to floating point numbers.
Salary of PHP Programmer
As of Jan 11, 2021, the average
annual pay for a PHP Developer in the
United States and Caloocan City PH is
$86,003 or 4,132,444.15 pesos a year.
Software Tools Needed
using ANDROID PHONE
Software Tools Needed
using DESKTOP/LAPTOP
Example Code
In DESKTOP/LAPTOP

• How to create PHP Program?

• How to save PHP Program?

• How to run PHP Program?


In ANDROID PHONE

• How to create PHP Program?

• How to save PHP Program?

• How to run PHP Program?


End of Presentation
to be continued…
• Thank you class 

You might also like