SlideShare una empresa de Scribd logo
1 de 25
Descargar para leer sin conexión
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	
  	
  	
  

Más contenido relacionado

La actualidad más candente

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 2012Rigor
 
Hybrid Mobile Apps | Ionic & AngularJS
Hybrid Mobile Apps | Ionic & AngularJSHybrid Mobile Apps | Ionic & AngularJS
Hybrid Mobile Apps | Ionic & AngularJSHamdi Hmidi
 
Pagelet in action
Pagelet in actionPagelet in action
Pagelet in actionPu Shiming
 
Meanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore ChandraMeanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore ChandraKishore Chandra
 
The Characteristics of a Successful SPA
The Characteristics of a Successful SPAThe Characteristics of a Successful SPA
The Characteristics of a Successful SPAGil 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 WordPressJonathan Perlman
 
Expert guide for PHP
Expert guide for PHPExpert guide for PHP
Expert guide for PHPSteve Fort
 
Introduction_Web_Technologies
Introduction_Web_TechnologiesIntroduction_Web_Technologies
Introduction_Web_TechnologiesDeepak Raj
 
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 2017Imran 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 Webappstjasko
 
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
 

La actualidad más candente (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 ...
 

Destacado

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

Destacado (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 a Week01 jan19 introductionto_php

Gettings started with Web development
Gettings started with Web developmentGettings started with Web development
Gettings started with Web developmentUjjwal 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 ISITComHamdi Hmidi
 
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 developmentpuneetbatra24
 
Tech Thursdays: Building Products
Tech Thursdays: Building ProductsTech Thursdays: Building Products
Tech Thursdays: Building ProductsHayden Bleasel
 
Presentation 1 Web--dev
Presentation 1 Web--devPresentation 1 Web--dev
Presentation 1 Web--devaltsav
 
Putting together a web app
Putting together a web appPutting together a web app
Putting together a web appRyan Lou
 
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 2017Marc 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 developmentDmitryDemyankov
 
Training presentation.pptx
Training presentation.pptxTraining presentation.pptx
Training presentation.pptxNishchaiyaBayla1
 
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 1Henry 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 DevelopmentQurinom Solutions
 

Similar a 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
 
web development process WT
web development process WTweb development process WT
web development process WT
 
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
 

Último

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Último (20)

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

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  