SlideShare a Scribd company logo
Introduc)on	
  to	
  PHP	
  


TCNJ	
  –	
  Web	
  Design	
  2	
  :	
  Dynamic	
  

                By	
  Jean	
  Ho	
  Chu	
  
                Week	
  01.	
  Jan	
  19.	
  2012	
  
What	
  is	
  Dynamic	
  Website?	
  

Dynamic	
  Website	
                                                    Sta/c	
  Website	
  
•    ASP.NET,	
  JSP,	
  Ruby	
  on	
  rail,	
  PHP,	
  etc	
  	
       •    HTML,	
  Javascript,	
  etc	
  
•    Scrip)ng	
  language	
                                             •    Compiled	
  language	
  	
  
•    Generates	
  the	
  code	
  for	
  the	
  site	
                   •    Only	
  displays	
  pages	
  
•    Acts	
  on	
  the	
  server,	
  lives	
  on	
  the	
  server	
     •    Acts,	
  lives	
  anywhere	
  clients	
  are	
  
•    Server	
  Side	
  Programming	
                                    •    Client	
  Side	
  Programming	
  
•    Back	
  End	
  Development	
                                       •    Front	
  End	
  Development	
  

•  Has	
  memories	
                                                    •  No	
  memories	
  
•  Responsive,	
  malleable	
                                           •  Not	
  responsive	
  

•  More	
  difficult	
  to	
  develop	
  the	
  ini)al	
                  •  Quick	
  and	
  cheap	
  to	
  develop	
  the	
  ini)al	
  
   website	
                                                               website	
  
This	
  is	
  Sta)c	
  HTML	
  Website…	
  
This	
  is	
  Dynamic	
  Website	
  !	
  

                                                                                           Fast,	
  Clean,	
  Easy	
  
  Molds	
  &	
  Frames	
                              Contents	
                           Diverse	
  results!	
  




                                      +	
                                         =	
  
Server	
  side	
  code	
  provides	
  	
      Contents	
  are	
                           The	
  html	
  page	
  of	
  	
  
templates	
                                   provided	
  by	
  users	
  or	
             what	
  the	
  users	
  see	
  is	
  
from	
  the	
  server	
                       from	
  databases	
                         	
  generated!	
  
What	
  is	
  Client	
  ?	
  Server?	
  

Client	
                          Server	
  
•  Visible	
  Nature	
            •  Invisible	
  God	
  
What	
  is	
  Client	
  ?	
  Server?	
  

Client	
                                   Server	
  
•  From	
  your	
  computer	
              •  From	
  the	
  hos)ng	
  service	
  
•  All	
  the	
  user	
  interac)ons	
     •  Never	
  shown	
  directly,	
  
   happen	
  from	
  the	
  client	
          performs	
  and	
  executes	
  on	
  
                                              the	
  browser	
  
Stolen	
  from	
  my	
  professor	
  -­‐	
  
What	
  is	
  PHP?	
  

•  PHP	
  :	
  “Hypertext	
  Preprocessor.”	
  

•  “Widely	
  used	
  general-­‐purpose	
  scrip)ng	
  
   language	
  that	
  is	
  especially	
  suited	
  for	
  Web	
  
   development	
  and	
  can	
  be	
  embedded	
  into	
  
   HTML.”	
  	
  	
  -­‐	
  from	
  www.php.net-­‐	
  
How	
  does	
  PHP	
  act?	
  
           User	
  




             From	
  Codin’	
  for	
  the	
  web	
  Codin’	
  for	
  the	
  Web,	
  CHARLES	
  WYKE-­‐SMITH	
  
How	
  to	
  use?	
  
<!DOCTYPE	
  html	
  PUBLIC	
  "-­‐//W3C//DTD	
  XHTML	
  1.0	
  
     Transi)onal//EN"	
  
	
   "hkp://www.w3.org/TR/xhtml1/DTD/xhtml1-­‐
     transi)onal.dtd">	
  
<html	
  xmlns="hkp://www.w3.org/1999/xhtml"	
  xml:lang="en"	
  
                                                                    •  Can	
  be	
  embedded	
  into	
  
     lang="en">	
  
<head>	
                                                               HTML	
  page	
  
	
   <meta	
  hkp-­‐equiv="Content-­‐Type"	
  content="text/
     html;	
  charset=un-­‐8"/>	
  
	
   <)tle>Who	
  are	
  you?</)tle>	
  
</head>	
  
<body>	
  
                                                                    •  Starts	
  with	
  	
  	
  <?php	
  
                                                                    •  Closes	
  with	
  	
  	
  	
  ?>	
  
<?php	
  	
  

print	
  "Hello";	
  

?>	
  

</body>	
  
</html>	
  
What	
  is	
  Database?	
  

•  A	
  database	
  is	
  a	
  collec)on	
  of	
  tables	
  (made	
  up	
  
   of	
  columns	
  and	
  rows)	
  that	
  stores	
  informa)on.	
  	
  
What	
  is	
  MySQL?	
  

•  MySQL	
  :	
  most	
  popular	
  open-­‐source	
  database	
  
•  Database	
  Management	
  System	
  (DBMS)	
  

•  Cf	
  )	
  	
  Oracle	
  and	
  Microsor’s	
  SQL	
  Serve	
  are	
  also	
  
   database,	
  and	
  are	
  compe)tors	
  to	
  MySQL	
  
PHP	
  &	
  mySQL	
  
How	
  to	
  use?	
  



•  	
  PHP’s	
  mysql_query()	
     •  $result	
  =	
  mysql_query(SQL	
  
                                       command,	
  ➝	
  database	
  
                                       connec)on);	
  
Why	
  use	
  PHP	
  and	
  MySQL?	
  

•  Easy	
  to	
  edit	
  and	
  update	
  
•  Let	
  the	
  users	
  fill	
  in	
  the	
  space	
  (ex	
  :	
  facebook	
  my	
  pages,	
  blogs,	
  etc…)	
  
•  Save	
  and	
  Access	
  to	
  Database	
  (impossible	
  with	
  html)	
  
•  and	
  more…	
  


                    TO	
  MAKE	
  A	
  DYNAMIC	
  WEBSITE	
  
All	
  in	
  all,	
  
Examples	
  of	
  Dynamic	
  Websites	
  
wordpress	
  
Framework	
  and	
  template	
  for	
  making	
  pornolio	
  websites	
  and	
  blog	
  
-­‐>	
  	
  To	
  edit	
  and	
  update	
  easily	
  
wordpress	
  
Framework	
  and	
  template	
  for	
  making	
  pornolio	
  websites	
  and	
  blog	
  
-­‐>	
  	
  To	
  edit	
  and	
  update	
  easily	
  
shopify	
  
Framework	
  and	
  template	
  for	
  making	
  shopping	
  mall.	
  
-­‐>	
  	
  To	
  remember	
  user’s	
  interac)ons	
  
facebook	
  
Social	
  networking	
  service	
  
-­‐>	
  To	
  provide	
  a	
  planorm	
  for	
  the	
  users	
  to	
  fill	
  in	
  and	
  share	
  the	
  contents	
  
ny/mes	
  
All	
  about	
  organizing	
  data	
  
Data	
  visualiza/on	
  
Ny)mes	
  interac)ve	
  graphics	
  
-­‐>	
  To	
  provide	
  real	
  )me	
  interac)ve	
  data	
  visualiza)on	
  
Wefeelfine.org	
  
Web	
  project	
  to	
  sort	
  and	
  view	
  blog	
  posts	
  with	
  emo)onal	
  contents	
  
-­‐>	
  To	
  provide	
  a	
  different	
  interface	
  and	
  meaning	
  for	
  the	
  web	
  
Interac/ve	
  Web	
  Art	
  Projects	
  
Aaron	
  Koblin,	
  Ten	
  Thousand	
  Cents	
  
-­‐>	
  To	
  explore	
  new	
  possibili)es	
  for	
  engaging	
  users	
  as	
  part	
  of	
  the	
  art	
  project	
  
YOUR	
  WORK	
  GOES	
  HERE	
  
                                  ?	
  
Please	
  do	
  not	
  hesitate	
  to	
  explore	
  with	
  crea)ve	
  projects	
  
           engaging	
  dynamic	
  web	
  technologies	
  	
  	
  

More Related Content

What's hot

The Need For Speed - Rigor's slides from ShopVisible Client Connect 2012
The Need For Speed - Rigor's slides from ShopVisible Client Connect 2012The Need For Speed - Rigor's slides from ShopVisible Client Connect 2012
The Need For Speed - Rigor's slides from ShopVisible Client Connect 2012
Rigor
 
Hybrid Mobile Apps | Ionic & AngularJS
Hybrid Mobile Apps | Ionic & AngularJSHybrid Mobile Apps | Ionic & AngularJS
Hybrid Mobile Apps | Ionic & AngularJS
Hamdi Hmidi
 
Pagelet in action
Pagelet in actionPagelet in action
Pagelet in action
Pu Shiming
 
Meanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore ChandraMeanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore Chandra
Kishore Chandra
 
Ui dev@naukri-2011
Ui dev@naukri-2011Ui dev@naukri-2011
Ui dev@naukri-2011
Pankaj Maheshwari
 
The Characteristics of a Successful SPA
The Characteristics of a Successful SPAThe Characteristics of a Successful SPA
The Characteristics of a Successful SPA
Gil Fink
 
Less is more: Getting Real About Content and Features
Less is more: Getting Real About Content and Features Less is more: Getting Real About Content and Features
Less is more: Getting Real About Content and Features
Charlie Morris
 
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPressThe Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
Jonathan Perlman
 
Expert guide for PHP
Expert guide for PHPExpert guide for PHP
Expert guide for PHP
Steve Fort
 
.Less - CSS done right
.Less - CSS done right.Less - CSS done right
.Less - CSS done right
Daniel Hölbling
 
Start using less css
Start using less cssStart using less css
Start using less css
Ali MasudianPour
 
Introduction_Web_Technologies
Introduction_Web_TechnologiesIntroduction_Web_Technologies
Introduction_Web_Technologies
Deepak Raj
 
Miami2015
Miami2015Miami2015
Miami2015
DevinVinson
 
Become a Successful Web Developer in Web development Field in 2017
Become a Successful Web Developer in Web development Field in 2017Become a Successful Web Developer in Web development Field in 2017
Become a Successful Web Developer in Web development Field in 2017
Imran Qasim
 
Introduction to web (techie side)
Introduction to web (techie side)Introduction to web (techie side)
Introduction to web (techie side)
Dominique Hind
 
WordCamp 2012 - WordPress Webapps
WordCamp 2012 - WordPress WebappsWordCamp 2012 - WordPress Webapps
WordCamp 2012 - WordPress Webapps
tjasko
 
Web Designing
Web DesigningWeb Designing
Web Designing
BALUJAINSTITUTE
 
Web dev-101
Web dev-101Web dev-101
Web dev-101
Andrew Pottenger
 
Less
LessLess
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
Hariharan Ganesan
 

What's hot (20)

The Need For Speed - Rigor's slides from ShopVisible Client Connect 2012
The Need For Speed - Rigor's slides from ShopVisible Client Connect 2012The Need For Speed - Rigor's slides from ShopVisible Client Connect 2012
The Need For Speed - Rigor's slides from ShopVisible Client Connect 2012
 
Hybrid Mobile Apps | Ionic & AngularJS
Hybrid Mobile Apps | Ionic & AngularJSHybrid Mobile Apps | Ionic & AngularJS
Hybrid Mobile Apps | Ionic & AngularJS
 
Pagelet in action
Pagelet in actionPagelet in action
Pagelet in action
 
Meanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore ChandraMeanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore Chandra
 
Ui dev@naukri-2011
Ui dev@naukri-2011Ui dev@naukri-2011
Ui dev@naukri-2011
 
The Characteristics of a Successful SPA
The Characteristics of a Successful SPAThe Characteristics of a Successful SPA
The Characteristics of a Successful SPA
 
Less is more: Getting Real About Content and Features
Less is more: Getting Real About Content and Features Less is more: Getting Real About Content and Features
Less is more: Getting Real About Content and Features
 
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPressThe Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
 
Expert guide for PHP
Expert guide for PHPExpert guide for PHP
Expert guide for PHP
 
.Less - CSS done right
.Less - CSS done right.Less - CSS done right
.Less - CSS done right
 
Start using less css
Start using less cssStart using less css
Start using less css
 
Introduction_Web_Technologies
Introduction_Web_TechnologiesIntroduction_Web_Technologies
Introduction_Web_Technologies
 
Miami2015
Miami2015Miami2015
Miami2015
 
Become a Successful Web Developer in Web development Field in 2017
Become a Successful Web Developer in Web development Field in 2017Become a Successful Web Developer in Web development Field in 2017
Become a Successful Web Developer in Web development Field in 2017
 
Introduction to web (techie side)
Introduction to web (techie side)Introduction to web (techie side)
Introduction to web (techie side)
 
WordCamp 2012 - WordPress Webapps
WordCamp 2012 - WordPress WebappsWordCamp 2012 - WordPress Webapps
WordCamp 2012 - WordPress Webapps
 
Web Designing
Web DesigningWeb Designing
Web Designing
 
Web dev-101
Web dev-101Web dev-101
Web dev-101
 
Less
LessLess
Less
 
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
 

Viewers also liked

Sierra leone
Sierra leoneSierra leone
Sierra leone
kfaas
 
Themenotebookmodel
ThemenotebookmodelThemenotebookmodel
Themenotebookmodel
kfaas
 
Sierra leone
Sierra leoneSierra leone
Sierra leone
kfaas
 
Ped, contra, di , ver, ex- jeopardy
Ped, contra, di , ver, ex- jeopardyPed, contra, di , ver, ex- jeopardy
Ped, contra, di , ver, ex- jeopardy
kfaas
 
Airiti books user guide 2011
Airiti books user guide 2011Airiti books user guide 2011
Airiti books user guide 2011airitiBooks
 

Viewers also liked (6)

008 traning
008 traning008 traning
008 traning
 
Sierra leone
Sierra leoneSierra leone
Sierra leone
 
Themenotebookmodel
ThemenotebookmodelThemenotebookmodel
Themenotebookmodel
 
Sierra leone
Sierra leoneSierra leone
Sierra leone
 
Ped, contra, di , ver, ex- jeopardy
Ped, contra, di , ver, ex- jeopardyPed, contra, di , ver, ex- jeopardy
Ped, contra, di , ver, ex- jeopardy
 
Airiti books user guide 2011
Airiti books user guide 2011Airiti books user guide 2011
Airiti books user guide 2011
 

Similar to Week01 jan19 introductionto_php

Gettings started with Web development
Gettings started with Web developmentGettings started with Web development
Gettings started with Web development
Ujjwal Ojha
 
"Python web development combines the simplicity of the language with powerful...
"Python web development combines the simplicity of the language with powerful..."Python web development combines the simplicity of the language with powerful...
"Python web development combines the simplicity of the language with powerful...
softwaretrainer2elys
 
Javascript - Getting started | DevCom ISITCom
Javascript - Getting started | DevCom ISITComJavascript - Getting started | DevCom ISITCom
Javascript - Getting started | DevCom ISITCom
Hamdi Hmidi
 
Web Desing.pptx
Web Desing.pptxWeb Desing.pptx
Web Desing.pptx
SiamSarker2
 
Web dev#1
Web dev#1Web dev#1
Web dev#1
Richard Bao
 
Learn web development: Front-end vs Back-end development
Learn web development: Front-end vs Back-end developmentLearn web development: Front-end vs Back-end development
Learn web development: Front-end vs Back-end development
puneetbatra24
 
Tech talk php_cms
Tech talk php_cmsTech talk php_cms
Tech talk php_cms
Shehrevar Davierwala
 
Tech Thursdays: Building Products
Tech Thursdays: Building ProductsTech Thursdays: Building Products
Tech Thursdays: Building Products
Hayden Bleasel
 
Presentation 1 Web--dev
Presentation 1 Web--devPresentation 1 Web--dev
Presentation 1 Web--dev
altsav
 
Putting together a web app
Putting together a web appPutting together a web app
Putting together a web app
Ryan Lou
 
Web Development
Web DevelopmentWeb Development
Web Development
Harshdeep Singh
 
Php reports sumit
Php reports sumitPhp reports sumit
Php reports sumit
Sumit Biswas
 
SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017
SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017
SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017
Marc D Anderson
 
IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...
IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...
IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...
Serdar Basegmez
 
Workflow driven development
Workflow driven developmentWorkflow driven development
Workflow driven development
DmitryDemyankov
 
Training presentation.pptx
Training presentation.pptxTraining presentation.pptx
Training presentation.pptx
NishchaiyaBayla1
 
Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1
Henry S
 
Introduction to HTML, CSS, and JavaScript for Web Development
Introduction to HTML, CSS, and JavaScript for Web DevelopmentIntroduction to HTML, CSS, and JavaScript for Web Development
Introduction to HTML, CSS, and JavaScript for Web Development
Qurinom Solutions
 
Wt unit 1 ppts web development process
Wt unit 1 ppts web development processWt unit 1 ppts web development process
Wt unit 1 ppts web development process
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
 
web development process WT
web development process WTweb development process WT

Similar to Week01 jan19 introductionto_php (20)

Gettings started with Web development
Gettings started with Web developmentGettings started with Web development
Gettings started with Web development
 
"Python web development combines the simplicity of the language with powerful...
"Python web development combines the simplicity of the language with powerful..."Python web development combines the simplicity of the language with powerful...
"Python web development combines the simplicity of the language with powerful...
 
Javascript - Getting started | DevCom ISITCom
Javascript - Getting started | DevCom ISITComJavascript - Getting started | DevCom ISITCom
Javascript - Getting started | DevCom ISITCom
 
Web Desing.pptx
Web Desing.pptxWeb Desing.pptx
Web Desing.pptx
 
Web dev#1
Web dev#1Web dev#1
Web dev#1
 
Learn web development: Front-end vs Back-end development
Learn web development: Front-end vs Back-end developmentLearn web development: Front-end vs Back-end development
Learn web development: Front-end vs Back-end development
 
Tech talk php_cms
Tech talk php_cmsTech talk php_cms
Tech talk php_cms
 
Tech Thursdays: Building Products
Tech Thursdays: Building ProductsTech Thursdays: Building Products
Tech Thursdays: Building Products
 
Presentation 1 Web--dev
Presentation 1 Web--devPresentation 1 Web--dev
Presentation 1 Web--dev
 
Putting together a web app
Putting together a web appPutting together a web app
Putting together a web app
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Php reports sumit
Php reports sumitPhp reports sumit
Php reports sumit
 
SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017
SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017
SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017
 
IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...
IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...
IBM Connect 2017: Your Data In the Major Leagues: A Practical Guide to REST S...
 
Workflow driven development
Workflow driven developmentWorkflow driven development
Workflow driven development
 
Training presentation.pptx
Training presentation.pptxTraining presentation.pptx
Training presentation.pptx
 
Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1
 
Introduction to HTML, CSS, and JavaScript for Web Development
Introduction to HTML, CSS, and JavaScript for Web DevelopmentIntroduction to HTML, CSS, and JavaScript for Web Development
Introduction to HTML, CSS, and JavaScript for Web Development
 
Wt unit 1 ppts web development process
Wt unit 1 ppts web development processWt unit 1 ppts web development process
Wt unit 1 ppts web development process
 
web development process WT
web development process WTweb development process WT
web development process WT
 

Recently uploaded

AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
manji sharman06
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Neo4j
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
Fwdays
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Ukraine
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
AlexanderRichford
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
Pablo Gómez Abajo
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
Fwdays
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - MydbopsMySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
Mydbops
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
DianaGray10
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeckPoznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
FilipTomaszewski5
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
Mydbops
 

Recently uploaded (20)

AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
Call Girls Chandigarh🔥7023059433🔥Agency Profile Escorts in Chandigarh Availab...
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - MydbopsMySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeckPoznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
 

Week01 jan19 introductionto_php

  • 1. Introduc)on  to  PHP   TCNJ  –  Web  Design  2  :  Dynamic   By  Jean  Ho  Chu   Week  01.  Jan  19.  2012  
  • 2. What  is  Dynamic  Website?   Dynamic  Website   Sta/c  Website   •  ASP.NET,  JSP,  Ruby  on  rail,  PHP,  etc     •  HTML,  Javascript,  etc   •  Scrip)ng  language   •  Compiled  language     •  Generates  the  code  for  the  site   •  Only  displays  pages   •  Acts  on  the  server,  lives  on  the  server   •  Acts,  lives  anywhere  clients  are   •  Server  Side  Programming   •  Client  Side  Programming   •  Back  End  Development   •  Front  End  Development   •  Has  memories   •  No  memories   •  Responsive,  malleable   •  Not  responsive   •  More  difficult  to  develop  the  ini)al   •  Quick  and  cheap  to  develop  the  ini)al   website   website  
  • 3. This  is  Sta)c  HTML  Website…  
  • 4. This  is  Dynamic  Website  !   Fast,  Clean,  Easy   Molds  &  Frames   Contents   Diverse  results!   +   =   Server  side  code  provides     Contents  are   The  html  page  of     templates   provided  by  users  or   what  the  users  see  is   from  the  server   from  databases    generated!  
  • 5. What  is  Client  ?  Server?   Client   Server   •  Visible  Nature   •  Invisible  God  
  • 6. What  is  Client  ?  Server?   Client   Server   •  From  your  computer   •  From  the  hos)ng  service   •  All  the  user  interac)ons   •  Never  shown  directly,   happen  from  the  client   performs  and  executes  on   the  browser  
  • 7. Stolen  from  my  professor  -­‐  
  • 8. What  is  PHP?   •  PHP  :  “Hypertext  Preprocessor.”   •  “Widely  used  general-­‐purpose  scrip)ng   language  that  is  especially  suited  for  Web   development  and  can  be  embedded  into   HTML.”      -­‐  from  www.php.net-­‐  
  • 9. How  does  PHP  act?   User   From  Codin’  for  the  web  Codin’  for  the  Web,  CHARLES  WYKE-­‐SMITH  
  • 10. How  to  use?   <!DOCTYPE  html  PUBLIC  "-­‐//W3C//DTD  XHTML  1.0   Transi)onal//EN"     "hkp://www.w3.org/TR/xhtml1/DTD/xhtml1-­‐ transi)onal.dtd">   <html  xmlns="hkp://www.w3.org/1999/xhtml"  xml:lang="en"   •  Can  be  embedded  into   lang="en">   <head>   HTML  page     <meta  hkp-­‐equiv="Content-­‐Type"  content="text/ html;  charset=un-­‐8"/>     <)tle>Who  are  you?</)tle>   </head>   <body>   •  Starts  with      <?php   •  Closes  with        ?>   <?php     print  "Hello";   ?>   </body>   </html>  
  • 11. What  is  Database?   •  A  database  is  a  collec)on  of  tables  (made  up   of  columns  and  rows)  that  stores  informa)on.    
  • 12. What  is  MySQL?   •  MySQL  :  most  popular  open-­‐source  database   •  Database  Management  System  (DBMS)   •  Cf  )    Oracle  and  Microsor’s  SQL  Serve  are  also   database,  and  are  compe)tors  to  MySQL  
  • 14. How  to  use?   •   PHP’s  mysql_query()   •  $result  =  mysql_query(SQL   command,  ➝  database   connec)on);  
  • 15. Why  use  PHP  and  MySQL?   •  Easy  to  edit  and  update   •  Let  the  users  fill  in  the  space  (ex  :  facebook  my  pages,  blogs,  etc…)   •  Save  and  Access  to  Database  (impossible  with  html)   •  and  more…   TO  MAKE  A  DYNAMIC  WEBSITE   All  in  all,  
  • 16. Examples  of  Dynamic  Websites  
  • 17. wordpress   Framework  and  template  for  making  pornolio  websites  and  blog   -­‐>    To  edit  and  update  easily  
  • 18. wordpress   Framework  and  template  for  making  pornolio  websites  and  blog   -­‐>    To  edit  and  update  easily  
  • 19. shopify   Framework  and  template  for  making  shopping  mall.   -­‐>    To  remember  user’s  interac)ons  
  • 20. facebook   Social  networking  service   -­‐>  To  provide  a  planorm  for  the  users  to  fill  in  and  share  the  contents  
  • 21. ny/mes   All  about  organizing  data  
  • 22. Data  visualiza/on   Ny)mes  interac)ve  graphics   -­‐>  To  provide  real  )me  interac)ve  data  visualiza)on  
  • 23. Wefeelfine.org   Web  project  to  sort  and  view  blog  posts  with  emo)onal  contents   -­‐>  To  provide  a  different  interface  and  meaning  for  the  web  
  • 24. Interac/ve  Web  Art  Projects   Aaron  Koblin,  Ten  Thousand  Cents   -­‐>  To  explore  new  possibili)es  for  engaging  users  as  part  of  the  art  project  
  • 25. YOUR  WORK  GOES  HERE   ?   Please  do  not  hesitate  to  explore  with  crea)ve  projects   engaging  dynamic  web  technologies  