Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Php Tutorium

1,366 views

Published on

Die Folien zum 1. Vortrag meines PHP-Tutoriums an der TU-Ilmenau.

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Php Tutorium

  1. 1. PHP-Tutorium <ul><li>Das World-Wide-Web: Ein Technologie-Mix </li></ul><ul><li>Das Web 1.0 </li></ul><ul><ul><li>Übersicht </li></ul></ul><ul><ul><li>HTML </li></ul></ul><ul><ul><li>HTTP </li></ul></ul><ul><ul><li>JavaScript </li></ul></ul><ul><li>Das Web 2.0 </li></ul><ul><li>PHP: Überblick & Eigenheiten </li></ul><ul><li>PHP und Formulare </li></ul><ul><li>PHP-Funktionen und die Referenz </li></ul><ul><li>Datenbanken </li></ul><ul><li>PHP-Frameworks </li></ul>
  2. 2. Das World-Wide-Web: Ein Technologie-Mix Anfrage (Request) Antwort (Response) Server www.hallo.de Webserver PHP Client Browser JavaScript HTTP
  3. 3. Das World-Wide-Web: Ein Technologie-Mix <ul><li>Client-Server-Struktur </li></ul><ul><li>Server-seitige Technologien: </li></ul><ul><ul><li>Server-Software (z.B. Apache, Microsoft IIS, etc.) </li></ul></ul><ul><ul><li>Serverseitige Programmiersprachen (PHP,Perl/CGI, JavaEE, Python, Ruby) </li></ul></ul><ul><ul><li>Manipulation durch die Serversoftware (.htaccess, mod_rewrite, etc.) </li></ul></ul><ul><ul><li>Datenbanken (MySQL,PostgreSQL,SQLite, etc.) </li></ul></ul>
  4. 4. Das World-Wide-Web: Ein Technologie-Mix <ul><li>Client-seitige Technologien: </li></ul><ul><ul><li>Browser-Erweiterungen (NoScript, Ad-Block, Greasemonkey, User-CSS) </li></ul></ul><ul><ul><li>HTML </li></ul></ul><ul><ul><li>CSS </li></ul></ul><ul><ul><li>JavaScript / VBScript </li></ul></ul><ul><ul><li>Flash/Flex </li></ul></ul><ul><ul><li>Java (als Applet) </li></ul></ul><ul><ul><li>Spezielle Frameworks (Google Gears, Adobe AIR) </li></ul></ul>
  5. 5. Das Web 1.0 Übersicht <ul><li>Statische Inhalte, fest vorgegeben </li></ul><ul><li>Serverseitig nur recht simple Webserver nötig </li></ul><ul><li>Hauptsächlich client-seitige Technologien (später – kurz vor Übergang zum Web 2.0 – auch mehr dynamischer Inhalt) </li></ul><ul><li>Fokus auf HTML/CSS/JavaScript </li></ul><ul><li>Kaum Interaktion möglich </li></ul>
  6. 6. Das Web 1.0 HTML <ul><li>Hypertext Markup Language </li></ul><ul><li>Legt den Aufbau und die Darstellung des Dokumentes fest. </li></ul><html> <head> <title>Meine tolle Seite</title> </head> <body> <h1>Eine Überschrift</h1> <p>Ein Absatz!</p> <p> Ein Bild: <img src=“test.png“> </p> </body> </html>
  7. 7. Das Web 1.0 HTML <ul><li>„Zwiebelartiger“ Aufbau. </li></ul><ul><li>Gliederung in head- und body-Bereich. </li></ul><ul><li>Head </li></ul><ul><ul><li>Meta -Informationen (Autor, Sprache, Inhaltsbeschreibung der Seite, etc.) </li></ul></ul><ul><ul><li>Text in Titelzeile des Browserfensters </li></ul></ul><ul><ul><li>Eingebettete Informationen zur Seitengestaltung (client-seitige Technologien): JavaScript,CSS </li></ul></ul><ul><li>Body </li></ul><ul><ul><li>Eigentlicher Seiteninhalt </li></ul></ul><ul><ul><li>Eingebettete Medien (Bilder, Videos, Sounddateien, Java- und Flash-Applets </li></ul></ul>
  8. 8. Das Web 1.0 <ul><li>Client fordert eine Seite per HTTP-Request an (Beispiel: www.test.de/index.html ) </li></ul><ul><li>Server sendet die Datei per HTTP-Response </li></ul><ul><li>Client wertet die Seite aus und stellt sie dar. </li></ul>HTTP-Response HTTP-Request GET /index.html HTTP/1.1 HOST www.test.de 200 OK HTTP/1.1 Content-Type: text/html Content-Length:1234 <html> <head> ....
  9. 9. Das Web 1.0 <ul><li>Vorteile: </li></ul><ul><ul><li>Die Rechenlast liegt hauptsächlich beim Client </li></ul></ul><ul><ul><li>Die Server-Software ist relativ simpel aufgebaut. </li></ul></ul><ul><ul><li>Durch fehlende Interaktionsmöglichkeiten keine Sicherheitslücken in der Internetseite selbst (man musste schon auf dem Server direkt einbrechen) </li></ul></ul><ul><li>Nachteile: </li></ul><ul><ul><li>Die Seite (HTML,CSS,JavaScript) wird im Klartext und vollständig übertragen. </li></ul></ul><ul><ul><li>Editieren von Inhalten nur mit HTML-Kenntnis oder Drag&Drop-Editoren möglich. </li></ul></ul><ul><ul><li>Kaum Interaktion mit dem Nutzer. </li></ul></ul>
  10. 10. Das Web 1.0 <ul><li>Interaktion über Java-Applets und Flash </li></ul><ul><li>Einbinden von Audio- und Videodateien </li></ul><ul><li>Interaktion über Formulare </li></ul><ul><li>Effekte / Animationen / Interaktion teils über JavaScript </li></ul><ul><li>Zunehmender Einsatz von serverseitigen Technologien </li></ul>
  11. 11. Das Web 2.0 <ul><li>„Mitmach-Web“ mit viel Benutzerinteraktion </li></ul><ul><li>Große Bedeutung der server-seitigen Technologien </li></ul><ul><li>Zunehmende Vermischung einzelner Techniken (etwa PHP+Datenbank+JavaScript) </li></ul><ul><li>Hohe Akzeptanz durch die Nutzer, hohe Attraktivität </li></ul><ul><li>Verschmelzung von online und offline Anwendungen (z.B. durch AIR) </li></ul>
  12. 12. Das Web 2.0 <ul><li>Vorteile: </li></ul><ul><ul><li>Mehr Attraktivität für Benutzer </li></ul></ul><ul><ul><li>Wesentlich mehr Möglichkeiten </li></ul></ul><ul><ul><li>Ausführung auf dem Server (keine vollständige Übertragung zum Client) </li></ul></ul><ul><ul><li>Unabhängig vom Client </li></ul></ul><ul><li>Nachteile: </li></ul><ul><ul><li>Mehr Rechenleistung auf dem Server nötig </li></ul></ul><ul><ul><li>Komplexere Server-Software im Einsatz </li></ul></ul><ul><ul><li>Neue Sicherheitsrisiken aufgrund der Interaktion mit dem Nutzer </li></ul></ul><ul><ul><li>Entstehung rechtlicher Grauzonen </li></ul></ul>
  13. 13. PHP Überblick & Eigenheiten <ul><li>PHP = „Pretty Homepage Preprocessor“ </li></ul><ul><li>Scriptsprache mit Fokus auf der Webprogrammierung </li></ul><ul><li>Läuft auf dem Webserver als Teil der Server-Software </li></ul><ul><li>Erlaubt es, auf den HTTP-Request zuzugreifen und zu reagieren </li></ul><ul><li>=> Interaktion! </li></ul><ul><li>Leitet die Ausgabe nicht auf die Konsole, sondern direkt an den Client weiter </li></ul>
  14. 14. PHP Überblick & Eigenheiten Dynamische Seiten Statische Seiten Datei 1 Server Datei 1 Datei 2 Datei 4 Webserver Client Browser Datei 1 Server Datei 1 Datei 2 Datei 4 Webserver Client Browser PHP
  15. 15. PHP Überblick und Eigenheiten <ul><li>PHP wertet nur die Teile der Datei aus, die in PHP-Tags eingeschlossen werden, der Rest wird 1:1 vom Webserver ausgegeben </li></ul><ul><li>Die Ausgabe des/der PHP-Teile in einer PHP-Datei wird 1:1 in die Ausgabe des Webservers übernommen </li></ul><ul><li>Hello PHP-Beispiel: </li></ul><?php echo(„Hallo, PHP!“); ?> PHP-Anweisung PHP-Tags
  16. 16. PHP Übersicht & Eigenheiten <ul><li>Syntaktisch ähnlich zu C/C++/Java </li></ul><ul><li>Variablennamen beginnen immer mit einem „$“ (z.B. $zahl oder $name) </li></ul><ul><li>Keine verschiedenen Datentypen, stattdessen „intelligente“ Typenerkennung / -umwandlung </li></ul><ul><li>Objektorientierung möglich aber nicht erzwungen </li></ul><ul><li>Funktion für alle möglichen Anwendungen </li></ul><ul><li>Interpretierte Sprache (Scriptsprache) </li></ul>

×