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.

Cours php & Mysql - 1ére partie

3,942 views

Published on

Cours php et Mysql

Published in: Software
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE 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 THE 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 eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, 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, EBOOK, 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 THE 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 THE 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 THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE 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 THE 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 eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, 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, EBOOK, 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 THE 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 THE 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 THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE 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 THE 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 eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, 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, EBOOK, 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 THE 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 THE 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 THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New 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 THE 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 THE 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 eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, 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, EBOOK, 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 THE 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 THE 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 THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New 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 THE 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 THE 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 eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, 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, EBOOK, 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 THE 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 THE 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 THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Cours php & Mysql - 1ére partie

  1. 1. Cours PHP/MySQL 1ére partie
  2. 2. Plan de formation 1. Introduction à PHP Qu’est-ce que PHP ? Le concept client – serveur Les technologies web existantes
  3. 3. Plan de formation 2. Mise en place d'un environnement de développement PHP/MySQL Installation et paramétrage d’un serveur http Apache avec le module PHP et l’extension MySQL
  4. 4. 3. La syntaxe de base de PHP La structure générale Les variables et les constantes Les instructions d’affichage Les opérateurs, les instructions conditionnelles, les traitements en boucle Plan de formation
  5. 5. 4. Les tableaux et les fonctions Utilisation du type Array Fonctions associées aux tableaux Les fonctions Plan de formation
  6. 6. 5. Les bases de l'HTML, CSS et JavaScript Plan de formation
  7. 7. 6. Les formulaires Rappel sur les formulaires HTML Passage et transmission de variables Traitement des données récupérées Téléchargement de fichiers sur le serveur Web (upload) Plan de formation
  8. 8. 7. Authentification, sessions et cookies Utilisation des cookies Utilisation des sessions Principe de la sérialisation Plan de formation
  9. 9. 8. Introduction aux bases de données et au MySQL en particulier 9. Modélisation Merise d'une base de données Plan de formation
  10. 10. 10. Communiquer entre PHP et MySQL Fonctions MySQL de PHP Exploiter une base de données MySQL (Interrogation, écriture) Gestion des erreurs MySQL Administrer MySQL avec PHPMyAdmin Plan de formation
  11. 11. 11. La programmation orientée objet en PHP Définitions de la programmation orientée objet : terminologie, objectifs Création de classes : structure et syntaxe (constructeurs, méthodes…) Instanciation de classe et utilisation d'objet Héritage : définition, création et utilisation Plan de formation
  12. 12. 12. Les exceptions Adapter le niveau des erreurs affichées Log des erreurs Personnaliser le traitement des erreurs Gestion des exceptions Plan de formation
  13. 13. 13. Les espaces de nommage(namespaces) 14. Architecture MVC 15. Sécuriser une application PHP/MySQL Plan de formation
  14. 14. 16. Les concepts avancés de PHP Présentation de librairies PHP avancées Manipulation d’images Création de fichier PDF Plan de formation
  15. 15. Introduction à PHP
  16. 16. Qu’est-ce que PHP ? • Langage de programmation côté serveur • Langage interprété • Le serveur interprète le code PHP des pages web demandées et génère du code (HTML, CSS par exemple) et des données (JPEG, PNG par exemple) pouvant être interprétés et rendues par un navigateur
  17. 17. Le concept client – serveur
  18. 18. Les technologies web existantes
  19. 19. Mise en place d'un environnement de développement PHP/MySQL
  20. 20. Installation et paramétrage d’un serveur http Apache avec le module PHP et l’extension MySQL
  21. 21. La syntaxe de base de PHP
  22. 22. La structure générale <?php // Code PHP ?>
  23. 23. La structure générale Les commentaires <?php // Ceci est un commentaire /* Ceci est un commentaire sur plusieurs lignes */ ?>
  24. 24. La structure générale Exemple: Hello World! <!DOCTYPE html> <html> <body> <h1>Exemple PHP</h1> <?php echo "Hello World!"; ?> </body> </html>
  25. 25. Les variables et les constantes <?php $texte = "Hello world!"; $integer = 7; $decimal = 10.5; ?>
  26. 26. Les variables et les constantes <?php $x = 4; $y = 6; $z = $x + $y; echo $z; ?>
  27. 27. Les variables et les constantes • Les constantes <?php // Noms valides define("MYCONST", "Salut"); define("MYCONST2", "Formation"); define("MY_CONST", "Slide 27"); // Noms invalides define("2CONST", "Ma constante"); // Noms déconseillés define("__MYCONST__", "Le web"); ?>
  28. 28. Les instructions d’affichage <?php echo "<h2>PHP is fun!</h2>"; echo "Hello<br>" . "world! <br>"; $txt="vive PHP !"; echo $txt; print("<h2>PHP is fun!</h2>"); ?>
  29. 29. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Les opérateurs arithmétiques <?php $x=10; $y=6; echo ($x + $y); // Affiche 16 echo ($x - $y); // Affiche 4 echo ($x * $y); // Affiche 60 echo ($x / $y); // Affiche 1.6666666666667 echo ($x % $y); // Affiche 4 ?>
  30. 30. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Les opérateurs arithmétiques <?php $y=20; $y += 100; echo $y; // Affiche 120 $z=50; $z -= 25; echo $z; // Affiche 25 $i=5; $i *= 6; echo $i; // Affiche 30 $j=10; $j /= 5; echo $j; // Affiche 2 ?>
  31. 31. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Les opérateurs des chaines de caractères <?php $a = "Hello"; $b = $a . " world!"; echo $b; // Affiche Hello world! $x="Hello"; $x .= " world!"; echo $x; // Affiche Hello world! ?>
  32. 32. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Incrémentation et décrémentation <?php $x=10; echo ++$x; // Affiche 11 $y=10; echo $y++; // Affiche 10 $z=5; echo --$z; // Affiche 4 $i=5; echo $i--; // Affiche 5 ?>
  33. 33. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Les opérateurs de comparaison <?php $x=100; $y="100"; var_dump($x == $y); var_dump($x === $y); var_dump($x != $y); var_dump($x !== $y); $a=50; $b=90; var_dump($a > $b); var_dump($a < $b); ?>
  34. 34. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Les opérateurs logiques <?php var_dump(10 AND 0); var_dump(10 OR 0); var_dump(10 && 0); var_dump(10 || 0); var_dump(! true); ?>
  35. 35. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Les conditions <?php $x=10; if ($x >= 10) { echo "Bonjour!"; } elseif ($x < 5) { echo "Salut! "; } else { echo "Rien à faire"; } ?>
  36. 36. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Switch <?php $favcolor="red"; switch ($favcolor) { case "red": echo "Votre couleur préféré est le rouge!"; break; case "blue": echo "Votre couleur préféré est le bleu!"; break; case "green": echo "Votre couleur préféré est le vert!"; break; default: echo "Vous n’avez pas de couleur préféré!"; } ?>
  37. 37. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Boucle While <?php $x=1; while($x<=5) { echo "$x <br>"; $x++; } ?>
  38. 38. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Boucle Do - While <?php $x=1; do { echo "$x <br>"; $x++; } while ($x<=5); ?>
  39. 39. Les opérateurs, les instructions conditionnelles, les traitements en boucle • Boucle for <?php for ($i =0; $i <= 10; $i++) { echo "$i <br>"; } ?>
  40. 40. Les tableaux et les fonctions
  41. 41. Utilisation du type Array <?php $cars[0] = "Dacia"; $cars[1] = "BMW"; $cars[2] = "Toyota"; $cars = array("Dacia", "BMW", "Toyota"); echo $cars[0] . " et " . $cars[1] . " et " . $cars[2]; ?>
  42. 42. Utilisation du type Array • La taille d’un tableau <?php $cars = array("Dacia", "BMW", "Toyota"); echo count($cars); ?>
  43. 43. Utilisation du type Array • Parcourir un tableau <?php $cars = array("Dacia", "BMW", "Toyota"); $taille = count($cars); for($i =0; $i < $taille ;$i++) { echo $cars[$i]; echo "<br>"; } ?>
  44. 44. Utilisation du type Array • Les tableaux associatifs <?php $age=array("Zakaria"=>"27","Fatima"=>"37","Ri da"=>"43"); Ou: $age["Zakaria"]="27"; $age["Fatima"]="37"; $age["Rida"]="43"; echo $age["Fatima"]; ?>

×