php #1 : introduction
TRANSCRIPT
Définition
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language.Source : http://en.wikipedia.org
Une histoire du PHP
1994 - Développé par Rasmus Lerdorf
1997 - Re-développement par Andi Gutmans et Zeev Surask
2004 - Introduction de la modélisation objet
2011 - Accélération du processus de livraison de version
Quelques spécificités métiers
Gratuit-
Une immense communauté-
Facile à apprendre-
Très utilisé en France
Quelques spécificités techniques
Multiplate-forme-
Langage très permissif-
Langage non compilé-
Exécution côté serveur -
Produit du code html
ToDo (1)
Télécharger : WAMP / MAMP / LAMP
Installer : WAMP / MAMP / LAMP
Lancer : WAMP / MAMP / LAMP
Aller à l’url : http://localhost ou http://localhost:8888
ToDo (2)
Créer un dossier « test » dans www ou htdocs
Créer un fichier « index.php » dans test
Dans le fichier index.php, écrire : <?php echo «hello»; ?>
Aller à l’url : http://localhost/test/index.php ou http://localhost:8888/test/index.php
Définir une chaîne de caractères
"When I get sad I stop being sad and be AWESOME instead." 'True story!'
Concaténation
<?php echo "If you're committed enough, you can make any story work." . " I once told a woman I was Kevin Costner, and it worked because I believed it." . " - Saul Goodman"; ?>
// If you're committed enough, you can make any story work. I once told a woman I was Kevin Costner, and it worked because I believed it - Saul Goodman
Numérique
3 > 2 // true 3 < 2 // false 8 == 9 // false 8 != 9 // true 9 >= 9 // true 9 <= 10 // true
Logique
true && true // true true && false // false false && false // false
true || true // true true || false // true false || false // false
!true // false !false // true
3 + 4 == 7 && 2 * 8 > 10 // true
BibliographieEloquent JavaScript - Marijn Haverbeke http://eloquentjavascript.net
Dynamisez vos sites web avec Javascript ! - Johann Pardanaud & Sébastien de la Marck http://fr.openclassrooms.com/informatique/cours/dynamisez-vos-sites-web-avec-javascript JavaScript Fundamentals - Jeremy McPeak http://code.tutsplus.com/courses/javascript-fundamentals
Guide JavaScript - teoli, BenoitL, delislejm, Ame_Nomade, SphinxKnight https://developer.mozilla.org/fr/docs/Web/JavaScript/Guide
Javascript – MAX_INT: Number Limits - Vjeux http://blog.vjeux.com/2010/javascript/javascript-max_int-number-limits.html
Lost - Jeffrey Lieber, J. J. Abrams, Damon Lindelof http://abc.go.com/shows/lost
Crédits (1)
Person of interest - Jonathan Nolan, David Slack, Patrick Harbinson http://www.cbs.com/shows/person_of_interest/
Halt and Catch Fire - Christopher Cantwell, Christopher C. Rogers http://www.amctv.com/shows/halt-and-catch-fire
Utilities terminal Icon - kxmylo http://www.iconarchive.com/show/simple-icons-by-kxmylo/utilities-terminal-icon.html
Breaking bad - Vince Gilligan http://www.amctv.com/shows/breaking-bad
House of Cards - Beau Willimon https://www.facebook.com/HouseofCards
The Big Bang Theory - Chuck Lorre, Bill Prady http://www.cbs.com/shows/big_bang_theory/
Game of Thrones - David Benioff, D. B. Weiss http://www.hbo.com/game-of-thrones
The Wire - David Simon http://www.hbo.com/the-wire
Crédits (2)
Silicon Valley - Mike Judge http://www.hbo.com/silicon-valley
The Killing - Veena Sud http://www.amctv.com/shows/the-killing
Band of Brothers - Tom Hanks, Steven Spielberg http://www.hbo.com/band-of-brothers