Example: stock market

Introduction à PHP-MySQL - e-campus2.uvsq.fr

Introduction PHP - MySQL. Yann Vi mont 2009-2012. Universit de Versailles St-Quentin Y. Vi mont Introduction PHP - MySQL Pr sentation de PHP. Plan 1. Introduction par l'exemple 2. Les principes de PHP. 3. Un langage de programmation 4. Les tableaux Introduction PHP - MySQL Pr sentation de PHP 2. Introduction par l'exemple Y. Vi mont Introduction PHP - MySQL Pr sentation de PHP. Premier exemple Introduction PHP - MySQL Pr sentation de PHP 4. Transformation Introduction PHP - MySQL Pr sentation de PHP 5. Rendu Introduction PHP - MySQL Pr sentation de PHP 6. PHP dispara t pour l'utilisateur Introduction PHP - MySQL Pr sentation de PHP 7.

Introduction à PHP - MySQL Présentation de PHP Plan 1. Introduction par l'exemple 2. Les principes de PHP 3. Un langage de programmation 4. Les tableaux

Tags:

  Uvsq

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Introduction à PHP-MySQL - e-campus2.uvsq.fr

1 Introduction PHP - MySQL. Yann Vi mont 2009-2012. Universit de Versailles St-Quentin Y. Vi mont Introduction PHP - MySQL Pr sentation de PHP. Plan 1. Introduction par l'exemple 2. Les principes de PHP. 3. Un langage de programmation 4. Les tableaux Introduction PHP - MySQL Pr sentation de PHP 2. Introduction par l'exemple Y. Vi mont Introduction PHP - MySQL Pr sentation de PHP. Premier exemple Introduction PHP - MySQL Pr sentation de PHP 4. Transformation Introduction PHP - MySQL Pr sentation de PHP 5. Rendu Introduction PHP - MySQL Pr sentation de PHP 6. PHP dispara t pour l'utilisateur Introduction PHP - MySQL Pr sentation de PHP 7.

2 Transformation 2. Introduction PHP - MySQL Pr sentation de PHP 8. Rendu 2. Introduction PHP - MySQL Pr sentation de PHP 9. Mise en page - aller la ligne Introduction PHP - MySQL Pr sentation de PHP 10. Transformation 3. Introduction PHP - MySQL Pr sentation de PHP 11. Rendu 3. Introduction PHP - MySQL Pr sentation de PHP 12. Mise en page - aller vraiment la ligne Introduction PHP - MySQL Pr sentation de PHP 13. Transformation 4. Introduction PHP - MySQL Pr sentation de PHP 14. Rendu 4. Introduction PHP - MySQL Pr sentation de PHP 15. Les principes de PHP. Y. Vi mont Introduction PHP - MySQL Pr sentation de PHP.

3 PHP : Hypertext Preprocessor PHP est un langage de script interpr t . Un fichier PHP est interpr t par le serveur Il produit un fichier cible HTML (ou autre). C'est le fichier cible qui est transmis au client Introduction PHP - MySQL Pr sentation de PHP 17. Double transformation PHP" HTML" Rendu". T1" T2". Introduction PHP - MySQL Pr sentation de PHP 18. Partage serveur / client PHP" HTML". T1". Internet". HTML" Rendu". T1 : transformation sur le serveur". T2". T2 : rendu sur le client". Introduction PHP - MySQL Pr sentation de PHP 19. PHP : langage de programmation PHP est au d part un simple langage de script interpr t.

4 PHP s'est consid rablement enrichi jusqu' devenir : Un langage de programmation proc dural Proche de C. Un langage de programmation orient objet Proche de Java Introduction PHP - MySQL Pr sentation de PHP 20. Exemple 2 : boucle Introduction PHP - MySQL Pr sentation de PHP 21. La boucle s'applique la transformation PHP HTML. Introduction PHP - MySQL Pr sentation de PHP 22. Rendu Introduction PHP - MySQL Pr sentation de PHP 23. Un langage de programmation Y. Vi mont Introduction PHP - MySQL Pr sentation de PHP. Possibilit s du langage PHP est un langage de programmation complet Il permet de choisir : Un style proc dural Un style orient objet Il donne acc s une biblioth que standard Plusieurs centaines de fonctions standards Plusieurs milliers avec les extensions Couvre tous les besoins d'un site internet Introduction PHP - MySQL Pr sentation de PHP 25.

5 Le style proc dural Avec une syntaxe proche de C : Types, variables, constantes Op rateurs, expressions Structures de contr le Tests, aiguillages Boucles, it rations D branchements Fonctions R f rences Variables d'environnement pr d finies Introduction PHP - MySQL Pr sentation de PHP 26. Le style orient objet Avec une syntaxe proche de Java / C++ : Objets, construction, destruction R f rences Interfaces Classes, h ritage, m thodes Classes et m thodes abstraites Propri t s dynamiques Exceptions Introduction PHP - MySQL Pr sentation de PHP 27. Documentation PHP. Manuel PHP complet version fran aise R f rence du langage (chapitre).

6 Extension mysqli (Extension sur les bases de donn es). Introduction PHP - MySQL Pr sentation de PHP 28. Sources de cours sur internet Cours de PHP 5 - Guillaume Rossolini Introduction au langage PHP Emacs (pseudonyme). Le PHP Facile - Anomyme Concevez votre site web avec PHP et MySQL - Mathieu Nebra PHP : Le tutoriel pour grands d butants press s - Sylvie Vauthier debutant/. Introduction PHP - MySQL Pr sentation de PHP 29. Commentaires Introduction PHP - MySQL Pr sentation de PHP 30. Variables Introduction PHP - MySQL Pr sentation de PHP 31. R f rence (indirection). Introduction PHP - MySQL Pr sentation de PHP 32.

7 Variables pr d finies Il y a de nombreuses variables pr d finies pour acc der aux propri t s du serveur. Exemple : r cup ration des valeurs d'un formulaire Introduction PHP - MySQL Pr sentation de PHP 33. Types 4 types scalaires : boolean integer float string 2 types compos s : array object Introduction PHP - MySQL Pr sentation de PHP 34. Exemples Introduction PHP - MySQL Pr sentation de PHP 35. Op rateurs Principales cat gories : Op rateurs arithm tiques Op rateurs d'assignation Op rateurs d'incr mentation et d cr mentation Op rateurs sur les bits Op rateurs de comparaison Op rateurs logiques Op rateurs de cha nes Op rateurs de tableaux Introduction PHP - MySQL Pr sentation de PHP 36.

8 Op rateurs arithm tiques Introduction PHP - MySQL Pr sentation de PHP 37. Incr mentation - D cr mentation Introduction PHP - MySQL Pr sentation de PHP 38. Comparaisons - Logique Comparaisons des valeurs : == < <= > >= !=. Comparaisons des types : === !==. Logique : && || ! and or xor Introduction PHP - MySQL Pr sentation de PHP 39. Concat nation Introduction PHP - MySQL Pr sentation de PHP 40. Les objets On peut utiliser les objets en style proc dural comme des structures C. Introduction PHP - MySQL Pr sentation de PHP 41. Cr ation - Acc s Cr ation : Acc s : $person->age = 23 ;! echo 'Age = '.

9 $person->age ;! Introduction PHP - MySQL Pr sentation de PHP 42. Structures de contr le Tests et aiguillages : if else elseif switch Boucles : while do-while for foreach Branchements : break continue return (goto). Introduction PHP - MySQL Pr sentation de PHP 43. Tests Introduction PHP - MySQL Pr sentation de PHP 44. Aiguillage Introduction PHP - MySQL Pr sentation de PHP 45. Boucles Introduction PHP - MySQL Pr sentation de PHP 46. Fonctions D claration / Appel / Retour Introduction PHP - MySQL Pr sentation de PHP 47. Passage de param tres Mode par d faut par valeur On peut cependant faire Introduction PHP - MySQL Pr sentation de PHP 48.

10 Syntaxe PHP / HTML. On peut r aliser : Un document HTML qui contient un morceau de code PHP. Un document PHP (code) qui g n re du HTML en impression Un document mixte qui entrem le les deux syntaxes Un code PHP sans rapport avec HTML. Introduction PHP - MySQL Pr sentation de PHP 49. PHP inclut dans HTML. Introduction PHP - MySQL Pr sentation de PHP 50. PHP presque "pur". Introduction PHP - MySQL Pr sentation de PHP 51. Deux syntaxes entrem l es Introduction PHP - MySQL Pr sentation de PHP 52. Les tableaux Y. Vi mont Introduction PHP - MySQL Pr sentation de PHP. Tableaux dynamiques et associatifs PHP permet de cr er des tableaux dynamiquement : Gr ce la fonction array ().


Related search queries