SlideShare a Scribd company logo
Tech Talk: PHP
Lee Jen Wei
Overview
 Web Development Trends
 What is PHP ?
 MVC Frameworks
 Mobile Web Apps
 Command Line PHP
 Sites Using PHP
 Pros
 Cons
 References
Web Development Trends
 PHP
 Ruby (on Rails)
 Python (Django)
 ASP.NET
 JavaScript (Ajax, Node.js, AngularJS, Backbone.js,
Ember.js etc)
 Java
 Perl
 Scala (Play Framework)
 Erlang
 Clojure
 Groovy/Grails etc
What is PHP?
 PHP is mainly focused on server-side scripting, so
you can do anything any other CGI program can do,
such as collect form data, generate dynamic page
content, or send and receive cookies.
 The best things in using PHP are that it is extremely
simple for a newcomer, but offers many advanced
features for a professional programmer.
PHP: Hypertext Preprocessor
 Development started in 1994, by Rasmus Lerdorf.
 Server-side scripting language
 Interpreted language
 Multi-platform (Linux, *nix, Windows)
 Syntax resembles C and Perl
 Simpler and faster to develop in (than C and Perl
or Java)
 Fast, flexible and pragmatic
What is PHP?
Example:
Where does PHP fit ?
Web Browser
Internet or
Intranet
page
Web
HTTP
Request
Page
Web
page
Web
Server
server
Added
function
ality
Added
function
ality
Client-side
“Active pages”
JavaScript, VBScript,
Applet, ActiveX
Server-side
“Dynamic pages”
CGI, SSI, Server
API, ASP, JSP, PHP,
COM/DCOM,
CORBAActive and dynamic page technology
can be used together – server-side
program generates customized active
pages.
Putting it all together
Web-Client
Web-Server
DBMS
Database
Output
SQL
commands
PHP
HTML-Form
(+JavaScript)
Reply
WWW
Submit
Data
Call PHP
interpreter
Response Response
LAN
Web-Browser
Database
Server
PHP – MVC Frameworks
Model-View-Controller (MVC)
Yii
CakePHP
CodeIgniter
Symfony
Zend Framework
Kohana
many others
PHP – Mobile Web Apps
 Common to use server-side PHP to develop Mobile
Web Apps or Hybrid Apps
 Reuse php web site backend components and logic
 Enjoy the advantages of PHP
 Eg.
PHP Yii Framework
+
jQuery Mobile
(or any mobile web app framework)
Command Line PHP
 What is this good for:
 Parsing files to put into a database
 Ideal for scripts regularly executed using cron (on
*nix or Linux) or Task Scheduler (on Windows).
 Anything you use a shell script or perl script to do
 Variables of use:
 $argc, $argv[]
 $stdin, $stdout, $stderr
Sites using PHP
Sites using PHP
 Yahoo, Facebook, Google, YouTube, eBay, Flickr,
Zynga, Wikipedia, Craiglist, Digg
 Cisco, Oracle, Intel, Nokia, China Mobile,
 Wordpress sites (CMS), Drupal sites (CMS)
 etc
PHP - Pros
 Open source, completely free
 Specifically designed for Web Development /
Developers
 Excellent documentation
 Simplicity, Easy to learn, including frameworks
 Largest community support
 Multi-platforms
 Easy deployment (just copy the files)
 Easy to scale up and out
 Readily available pool of talents/coders
PHP - Pros
 Rapid prototyping, fast development time
 Lightweight, low overheads
 Fast execution time
 Silo process, loosely coupled
 Highly configurable
 Procedural / Object Oriented programming
 Extensive libraries / modules
 Support wide range of interfaces (DB, Outputs,
Protocols, Caching etc)
PHP - Cons
 Best used with caching stack
 Not thread-safe
 Less efficient multithreading support
 No strong standards of coding style
 Flexible, many ways to accomplished same task
 Not strongly typed, implicit conversion
 Not particularly sexy
 No built-in scheduler
 Not good for GUI or desktop apps
References
 www.php.net
 pecl.php.net
 pear.php.net
 www.yiiframework.com
 cakephp.org
 www.codeigniter.com

More Related Content

What's hot (20)

PDF
PHP is the King, nodejs is the Prince and Lua is the fool
Alessandro Cinelli (cirpo)
 
PDF
PHP Files: An Introduction
Jacques Woodcock
 
PDF
A New Approach Towards Web-based IDEs
Dr. Jan Köhnlein
 
PDF
PHP is the King, nodejs the prince and python the fool
Alessandro Cinelli (cirpo)
 
PPTX
Blazor - .NET in the Browser!
David Paquette
 
PDF
PHP is the king, nodejs is the prince and Lua is the fool
Alessandro Cinelli (cirpo)
 
PDF
Organizing Your PHP Projects (2010 ConFoo)
Paul Jones
 
PPTX
Blazor v1.1
Juan Luis Guerrero Minero
 
PPTX
DevDay 2018 - Blazor
Denis Voituron
 
PPTX
Training ppt
nikita vijay
 
PDF
Groovy and noteworthy
Izzet Mustafaiev
 
PPTX
Opensourceman ( url for slides with animations https://goo.gl/R638tW )
Андрей Вандакуров
 
PPTX
Web development revolution
Ahmed El-Zekred
 
PPTX
Node.js Getting Started &amd Best Practices
botsplash.com
 
PDF
[drupalday2017] - DevOps: strumenti di automazione per Drupal8
DrupalDay
 
PPTX
Web to App:作業系統革命 Firefox OS
Veck Hsiao
 
PPTX
UNC Chapel Hill 2014 CTC Retreat - Carolina Cloudapps / RedHat OpenShift Ente...
Jonathan Pletzke
 
PDF
Blazor - The New Silverlight?
Christian Nagel
 
PPTX
Programming languages used in Firefox OS
Prathamesh Chavan
 
PDF
High Productivity Web Development Workflow
Vũ Nguyễn
 
PHP is the King, nodejs is the Prince and Lua is the fool
Alessandro Cinelli (cirpo)
 
PHP Files: An Introduction
Jacques Woodcock
 
A New Approach Towards Web-based IDEs
Dr. Jan Köhnlein
 
PHP is the King, nodejs the prince and python the fool
Alessandro Cinelli (cirpo)
 
Blazor - .NET in the Browser!
David Paquette
 
PHP is the king, nodejs is the prince and Lua is the fool
Alessandro Cinelli (cirpo)
 
Organizing Your PHP Projects (2010 ConFoo)
Paul Jones
 
DevDay 2018 - Blazor
Denis Voituron
 
Training ppt
nikita vijay
 
Groovy and noteworthy
Izzet Mustafaiev
 
Opensourceman ( url for slides with animations https://goo.gl/R638tW )
Андрей Вандакуров
 
Web development revolution
Ahmed El-Zekred
 
Node.js Getting Started &amd Best Practices
botsplash.com
 
[drupalday2017] - DevOps: strumenti di automazione per Drupal8
DrupalDay
 
Web to App:作業系統革命 Firefox OS
Veck Hsiao
 
UNC Chapel Hill 2014 CTC Retreat - Carolina Cloudapps / RedHat OpenShift Ente...
Jonathan Pletzke
 
Blazor - The New Silverlight?
Christian Nagel
 
Programming languages used in Firefox OS
Prathamesh Chavan
 
High Productivity Web Development Workflow
Vũ Nguyễn
 

Viewers also liked (20)

PDF
Introduction to the CII Badge Programe, OW2con'16, Paris.
OW2
 
DOC
Wildi 2009 Resume
Wildi
 
PDF
Logic Circuit Project Final Presentation
Matthew Chang
 
PDF
OW2con'14 - Keynote from Microsoft
OW2
 
PPT
Itf ipp ch06_2012_final
dphil002
 
PDF
197x 20090704 Scalaで並行プログラミング
Net Penguin
 
PDF
Square Numbers - Update November 12
figo GmbH
 
PDF
OW2con'14 - OpenPaaS, the open source collaboration platform, Linagora
OW2
 
PDF
OW2con'14- erOCCI, a scalable, model-based REST API framework
OW2
 
DOC
1 early britain. the celts
Mr. Euc@s
 
PPT
2013 cch basic principles ch12
dphil002
 
PDF
MuseScore - Capitole du Libre 2012
Nicolas Froment
 
PPT
Chapter 3
dphil002
 
PDF
To be Open Source or not to be ? OW2con’12, Paris
OW2
 
PPTX
프로젝트N 기획문서
Matthew Chang
 
PDF
OW2con'14 - Sustainable financing of open source, an insider view, XWiki
OW2
 
PPT
Chapter 6
dphil002
 
PDF
E-Government Portal-DAWLATI, OW2con'12, Paris
OW2
 
PPS
Giethoon villagewithoutstreets
alfcoltrane
 
PDF
Introduction of Trustie Software Repository & Passion-Lab Data Center, OW2con...
OW2
 
Introduction to the CII Badge Programe, OW2con'16, Paris.
OW2
 
Wildi 2009 Resume
Wildi
 
Logic Circuit Project Final Presentation
Matthew Chang
 
OW2con'14 - Keynote from Microsoft
OW2
 
Itf ipp ch06_2012_final
dphil002
 
197x 20090704 Scalaで並行プログラミング
Net Penguin
 
Square Numbers - Update November 12
figo GmbH
 
OW2con'14 - OpenPaaS, the open source collaboration platform, Linagora
OW2
 
OW2con'14- erOCCI, a scalable, model-based REST API framework
OW2
 
1 early britain. the celts
Mr. Euc@s
 
2013 cch basic principles ch12
dphil002
 
MuseScore - Capitole du Libre 2012
Nicolas Froment
 
Chapter 3
dphil002
 
To be Open Source or not to be ? OW2con’12, Paris
OW2
 
프로젝트N 기획문서
Matthew Chang
 
OW2con'14 - Sustainable financing of open source, an insider view, XWiki
OW2
 
Chapter 6
dphil002
 
E-Government Portal-DAWLATI, OW2con'12, Paris
OW2
 
Giethoon villagewithoutstreets
alfcoltrane
 
Introduction of Trustie Software Repository & Passion-Lab Data Center, OW2con...
OW2
 
Ad

Similar to Tech talk: PHP (20)

PPTX
Introduction To Web Development & The New Digital Workplace
Jen Wei Lee
 
PPTX
Intro to Perfect - LA presentation
Tim Taplin
 
PDF
Node JS vs PHP Which Backend to Choose for Your Project.pdf
Pixlogix Infotech
 
PPTX
Normalizing x pages web development
Shean McManus
 
PPT
Phpyahoo
cainacinacniacnian
 
PPT
The i7 Framework for System-i
Ivo Jansch
 
PPT
Introduction to PHP - SDPHP
Eric Johnson
 
PPT
Django, What is it, Why is it cool?
Tom Brander
 
PDF
PHP Vs NodeJS for Backend Web Development.pdf
SofiaCarter4
 
PDF
Evolution of deploy.sh
Leonid Mamchenkov
 
PDF
Improve Your Business Standards with Backend Development .pdf
WPWeb Infotech
 
PPT
Federico Feroldi Php In Yahoo
Federico Feroldi
 
PPTX
Php verses .net
CBitss Technologies
 
PPTX
Applied+Web+Development+[Autosaved].pptx
voot1
 
PPTX
Webtechnologies
-jyothish kumar sirigidi
 
PDF
Node.js vs PHP, What should SMBs prefer for web development.pdf
Mindfire LLC
 
PPT
Ruby on Rails
arunv
 
PPTX
Web technologies lesson 1
nhepner
 
PDF
Top 8 Powerful Tools Developers Use for Laravel Web Development.pdf
MoonTechnolabsPvtLtd
 
Introduction To Web Development & The New Digital Workplace
Jen Wei Lee
 
Intro to Perfect - LA presentation
Tim Taplin
 
Node JS vs PHP Which Backend to Choose for Your Project.pdf
Pixlogix Infotech
 
Normalizing x pages web development
Shean McManus
 
The i7 Framework for System-i
Ivo Jansch
 
Introduction to PHP - SDPHP
Eric Johnson
 
Django, What is it, Why is it cool?
Tom Brander
 
PHP Vs NodeJS for Backend Web Development.pdf
SofiaCarter4
 
Evolution of deploy.sh
Leonid Mamchenkov
 
Improve Your Business Standards with Backend Development .pdf
WPWeb Infotech
 
Federico Feroldi Php In Yahoo
Federico Feroldi
 
Php verses .net
CBitss Technologies
 
Applied+Web+Development+[Autosaved].pptx
voot1
 
Webtechnologies
-jyothish kumar sirigidi
 
Node.js vs PHP, What should SMBs prefer for web development.pdf
Mindfire LLC
 
Ruby on Rails
arunv
 
Web technologies lesson 1
nhepner
 
Top 8 Powerful Tools Developers Use for Laravel Web Development.pdf
MoonTechnolabsPvtLtd
 
Ad

Recently uploaded (20)

PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Python basic programing language for automation
DanialHabibi2
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 

Tech talk: PHP

  • 2. Overview  Web Development Trends  What is PHP ?  MVC Frameworks  Mobile Web Apps  Command Line PHP  Sites Using PHP  Pros  Cons  References
  • 3. Web Development Trends  PHP  Ruby (on Rails)  Python (Django)  ASP.NET  JavaScript (Ajax, Node.js, AngularJS, Backbone.js, Ember.js etc)  Java  Perl  Scala (Play Framework)  Erlang  Clojure  Groovy/Grails etc
  • 4. What is PHP?  PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or send and receive cookies.  The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer.
  • 5. PHP: Hypertext Preprocessor  Development started in 1994, by Rasmus Lerdorf.  Server-side scripting language  Interpreted language  Multi-platform (Linux, *nix, Windows)  Syntax resembles C and Perl  Simpler and faster to develop in (than C and Perl or Java)  Fast, flexible and pragmatic
  • 7. Where does PHP fit ? Web Browser Internet or Intranet page Web HTTP Request Page Web page Web Server server Added function ality Added function ality Client-side “Active pages” JavaScript, VBScript, Applet, ActiveX Server-side “Dynamic pages” CGI, SSI, Server API, ASP, JSP, PHP, COM/DCOM, CORBAActive and dynamic page technology can be used together – server-side program generates customized active pages.
  • 8. Putting it all together Web-Client Web-Server DBMS Database Output SQL commands PHP HTML-Form (+JavaScript) Reply WWW Submit Data Call PHP interpreter Response Response LAN Web-Browser Database Server
  • 9. PHP – MVC Frameworks Model-View-Controller (MVC) Yii CakePHP CodeIgniter Symfony Zend Framework Kohana many others
  • 10. PHP – Mobile Web Apps  Common to use server-side PHP to develop Mobile Web Apps or Hybrid Apps  Reuse php web site backend components and logic  Enjoy the advantages of PHP  Eg. PHP Yii Framework + jQuery Mobile (or any mobile web app framework)
  • 11. Command Line PHP  What is this good for:  Parsing files to put into a database  Ideal for scripts regularly executed using cron (on *nix or Linux) or Task Scheduler (on Windows).  Anything you use a shell script or perl script to do  Variables of use:  $argc, $argv[]  $stdin, $stdout, $stderr
  • 13. Sites using PHP  Yahoo, Facebook, Google, YouTube, eBay, Flickr, Zynga, Wikipedia, Craiglist, Digg  Cisco, Oracle, Intel, Nokia, China Mobile,  Wordpress sites (CMS), Drupal sites (CMS)  etc
  • 14. PHP - Pros  Open source, completely free  Specifically designed for Web Development / Developers  Excellent documentation  Simplicity, Easy to learn, including frameworks  Largest community support  Multi-platforms  Easy deployment (just copy the files)  Easy to scale up and out  Readily available pool of talents/coders
  • 15. PHP - Pros  Rapid prototyping, fast development time  Lightweight, low overheads  Fast execution time  Silo process, loosely coupled  Highly configurable  Procedural / Object Oriented programming  Extensive libraries / modules  Support wide range of interfaces (DB, Outputs, Protocols, Caching etc)
  • 16. PHP - Cons  Best used with caching stack  Not thread-safe  Less efficient multithreading support  No strong standards of coding style  Flexible, many ways to accomplished same task  Not strongly typed, implicit conversion  Not particularly sexy  No built-in scheduler  Not good for GUI or desktop apps
  • 17. References  www.php.net  pecl.php.net  pear.php.net  www.yiiframework.com  cakephp.org  www.codeigniter.com