<?xml 
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel xml:lang="fr">
	<title>Labo-caa</title>
	<link>http://www.labo-caa.fr/</link>
	<description>Site de d&#233;veloppement de diff&#233;rents projets web.</description>
	<language>fr</language>
	<generator>SPIP - www.spip.net</generator>

	<image>
		<title>Labo-caa</title>
		<url>http://www.labo-caa.fr/local/cache-vignettes/L144xH36/siteon0-32c9b.png</url>
		<link>http://www.labo-caa.fr/</link>
		<height>36</height>
		<width>144</width>
	</image>



<item xml:lang="fr">
		<title>Executer le Javascript pr&#233;sent dans une requete AJAX avec Mootools</title>
		<link>http://www.labo-caa.fr/Executer-le-Javascript-present.html</link>
		<guid isPermaLink="true">http://www.labo-caa.fr/Executer-le-Javascript-present.html</guid>
		<dc:date>2010-01-14T00:13:08Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>caa</dc:creator>



		<description>L'objectif de cet article est de vous expliquer comment ex&#233;cuter du JavaScript pr&#233;sent dans une r&#233;ponse du serveur lors d'une requ&#234;te AJAX avec Mootools. En effet l'ex&#233;cution des scripts pr&#233;sents dans la r&#233;ponse, souvent, ne s'effectue pas correctement, pour cela nous allons l'ex&#233;cuter manuellement. La technique consiste &#224; ex&#233;cuter le javascript seulement apr&#232;s le chargement de la page. Dans la 1&#232;re partie nous d&#233;finissons un champ et un paragraphe qui sera remplis &#224; l'aide des requ&#234;tes. Le code (...)

-
&lt;a href="http://www.labo-caa.fr/-Projets-Realises-.html" rel="directory"&gt;Projets R&#233;alis&#233;s&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;L'objectif de cet article est de vous expliquer comment ex&#233;cuter du JavaScript pr&#233;sent dans une r&#233;ponse du serveur lors d'une requ&#234;te AJAX avec Mootools.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;En effet l'ex&#233;cution des scripts pr&#233;sents dans la r&#233;ponse, souvent, ne s'effectue pas correctement, pour cela nous allons l'ex&#233;cuter manuellement.
La technique consiste &#224; ex&#233;cuter le javascript seulement apr&#232;s le chargement de la page.&lt;/p&gt; &lt;p&gt;Dans la 1&#232;re partie nous d&#233;finissons un champ et un paragraphe qui sera remplis &#224; l'aide des requ&#234;tes.
Le code javascript permet en cas de changement de valeur du champ, d'effectuer une requ&#234;te vers le serveur et d'ex&#233;cuter le code javascript contenu dans la r&#233;ponse du serveur.
Ce code n&#233;cessite, &#233;videmment, la pr&#233;sence de la librairie Mootools.&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;select name=&quot;champ&quot; id=&quot;champ&quot;&gt;&lt;br /&gt; &lt;option value=&quot;Val1&quot; &gt;Val1&lt;/option&gt;&lt;br /&gt; &lt;option value=&quot;Val2&quot; &gt;Val2&lt;/option&gt;&lt;br /&gt; &lt;option value=&quot;Val3&quot; &gt;Val3&lt;/option&gt;&lt;br /&gt; &lt;/select&gt;&lt;br /&gt; &lt;p id=&quot;place&quot;&gt;&lt;/p&gt;&lt;br /&gt; &lt;br /&gt; &lt;script type=&quot;text/javascript&quot;&gt;&lt;br /&gt; window.addEvent('domready', function() {&lt;br /&gt; var myRequest = new Request.HTML({ method: 'post',&lt;br /&gt; url: 'ajax.php?requete=test',&lt;br /&gt; evalScripts:false, // on d&#233;sactive le javascript&lt;br /&gt; evalResponse:false, // on l'ex&#233;cute manuellement&lt;br /&gt; onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript) {&lt;br /&gt; $('place').set('html',responseHTML); //Injection du contenu&lt;br /&gt; $exec(responseJavaScript); // ex&#233;cution du javascript&lt;br /&gt; //manuellement APRES le chargement de l'&#233;l&#233;ment&lt;br /&gt; } &lt;br /&gt; });&lt;br /&gt; &lt;br /&gt; //en cas de changement de valeur du champ on effectue une requ&#234;te&lt;br /&gt; $('champ').onchange = function () {&lt;br /&gt; myRequest.send('param=' + $('champ').value );&lt;br /&gt; };&lt;br /&gt; &lt;br /&gt; });&lt;br /&gt; &lt;/script&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Introduction au d&#233;veloppement web : le PHP/MySQL</title>
		<link>http://www.labo-caa.fr/Introduction-au-developpement-web.html</link>
		<guid isPermaLink="true">http://www.labo-caa.fr/Introduction-au-developpement-web.html</guid>
		<dc:date>2008-08-05T16:21:39Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>caa</dc:creator>



		<description>Le PHP est un langage utilis&#233; pour une grande majorit&#233; de sites internet. Il est aussi beaucoup utilis&#233; dans les intranets des entreprises ou pour cr&#233;er des web services. Nous allons ici d&#233;couvrir les notions de base de ce langage. Nous allons commencer par quelques g&#233;n&#233;ralit&#233;s puis nous aborderons les notions de base, enfin nous verrons quelques fonctionnalit&#233;s. Introduction au d&#233;veloppement web : le PHP/MySQL

-
&lt;a href="http://www.labo-caa.fr/-Projets-Realises-.html" rel="directory"&gt;Projets R&#233;alis&#233;s&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Le PHP est un langage utilis&#233; pour une grande majorit&#233; de sites internet. Il est aussi beaucoup utilis&#233; dans les intranets des entreprises ou pour cr&#233;er des web services. Nous allons ici d&#233;couvrir les notions de base de ce langage.&lt;/p&gt; &lt;p&gt;Nous allons commencer par quelques g&#233;n&#233;ralit&#233;s puis nous aborderons les notions de base, enfin nous verrons quelques fonctionnalit&#233;s.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt; &lt;/p&gt; &lt;p&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 28pt;&quot;&gt;Introduction au d&#233;veloppement web : le PHP/MySQL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot;
o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot;
stroked=&quot;f&quot;&gt;
&lt;v:stroke joinstyle=&quot;miter&quot; /&gt;
&lt;v:formulas&gt;
&lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot; /&gt;
&lt;v:f eqn=&quot;sum @0 1 0&quot; /&gt;
&lt;v:f eqn=&quot;sum 0 0 @1&quot; /&gt;
&lt;v:f eqn=&quot;prod @2 1 2&quot; /&gt;
&lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot; /&gt;
&lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot; /&gt;
&lt;v:f eqn=&quot;sum @0 0 1&quot; /&gt;
&lt;v:f eqn=&quot;prod @6 1 2&quot; /&gt;
&lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot; /&gt;
&lt;v:f eqn=&quot;sum @8 21600 0&quot; /&gt;
&lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot; /&gt;
&lt;v:f eqn=&quot;sum @10 21600 0&quot; /&gt;
&lt;/v:formulas&gt;
&lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; /&gt;
&lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot; /&gt;
&lt;/v:shapetype&gt;&lt;v:shape id=&quot;_x0000_s1052&quot; type=&quot;#_x0000_t75&quot; style='position:absolute;
margin-left:162pt;margin-top:15.15pt;width:135pt;height:71.25pt;z-index:251658752'&gt;
&lt;v:imagedata src=&quot;file:///C:\Users\CHARLE~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png&quot;
o:title=&quot;180px-PHP_logo&quot; /&gt;
&lt;w:wrap type=&quot;square&quot; /&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img width='180' hspace='' height='95' align=&quot;left&quot; alt=&quot;&quot; src=&quot;file:///C:/Users/CHARLE~1/AppData/Local/Temp/msohtmlclip1/01/clip_image002.gif&quot; v:shapes=&quot;_x0000_s1052&quot; style='margin:12px;height:95px;width:180px;' /&gt;&lt;!--[endif]--&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;INTRODUCTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;OLE_LINK4&quot;&gt;&lt;/a&gt;&lt;a name=&quot;OLE_LINK3&quot;&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;I) &lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;GENERALITES&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;a)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Qu'est ce qu'est le langage PHP ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;b)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Historique&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;c)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Fonctionnement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;d)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Pr&#233; requis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;II)&lt;span style=&quot;&quot;&gt; &lt;/span&gt;NOTIONS DE BASE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;a)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;La syntaxe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;b)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les variables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;c)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les conditions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;d)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les boucles&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;III)&lt;span style=&quot;&quot;&gt; &lt;/span&gt;QUELQUES FONCTIONNALITES DE PHP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;a)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les dates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;b)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les formulaires&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;c)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Interaction avec MySQL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;d)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Envoi de mail avec PHP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;CONCLUSION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 14pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;&quot;&gt;&lt;br clear=&quot;all&quot; style=&quot;page-break-before: always;&quot; /&gt;
&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;INTRODUCTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;Le PHP est un langage utilis&#233; pour une grande majorit&#233; de sites internet. Il est aussi beaucoup utilis&#233; dans les intranets des entreprises ou pour cr&#233;er des web services. Nous allons ici d&#233;couvrir les notions de base de ce langage.&lt;/p&gt; &lt;p&gt;Nous allons commencer par quelques g&#233;n&#233;ralit&#233;s puis nous aborderons les notions de base, enfin nous verrons quelques fonctionnalit&#233;s.&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;&quot;&gt;&lt;br clear=&quot;all&quot; style=&quot;page-break-before: always;&quot; /&gt;
&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;I) &lt;span style=&quot;&quot;&gt; &lt;/span&gt;GENERALITES&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;a)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Qu'est ce qu'est le langage PHP ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Le langage PHP est un langage de programmation ex&#233;cut&#233; par le serveur qui h&#233;berge le site internet. Il sert &#224; g&#233;n&#233;rer le plus souvent des pages internet, mais il peut aussi g&#233;n&#233;rer des images, des documents PDF, des fichiers Zip et autres&#8230;&lt;/p&gt; &lt;p&gt;Il a &#233;t&#233; cr&#233;e pour faire des applications web dynamiques et il est install&#233; sur la plupart des serveurs web existant : IIS, Apache&#8230;&lt;/p&gt; &lt;p&gt;C'est un langage facile &#224; apprendre car il est peu typ&#233; et permet l'utilisation des formulaires ainsi que l'acc&#232;s aux bases de donn&#233;s.&lt;/p&gt; &lt;p&gt;Sa force est son omnipr&#233;sence dans les diff&#233;rentes offres d'h&#233;bergement.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;b)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Historique&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Ce langage fut cr&#233;e en 1994 par Rasmus Lerdorf pour son site Web. C'&#233;tait une biblioth&#232;que en Perl lui servant &#224; conserver une trace des visiteurs qui venait consulter son CV. Tout en ajoutant de nouvelles fonctionnalit&#233;s il a transform&#233; sa biblioth&#232;que en une impl&#233;mentation en langage C capable de communiquer avec les bases de donn&#233;es.&lt;/p&gt; &lt;p&gt;En 1995 Rasmus d&#233;cida de publier son code, il s'appelait alors PHP/FI (&lt;b&gt;&lt;i&gt;P&lt;/i&gt;&lt;/b&gt;&lt;i&gt;ersonal &lt;b&gt;H&lt;/b&gt;ome &lt;b&gt;P&lt;/b&gt;age Tools/Form Interpreter&lt;/i&gt;).&lt;/p&gt; &lt;p&gt;En 1997 deux &#233;tudiants : Andi Gutmans et Zeev Suraski, red&#233;velopp&#232;rent le c&#339;ur de PHP/FI et donn&#232;rent naissance au &lt;span style=&quot;&quot;&gt;Zend Engine, nouveau c&#339;ur de PHP devenu alors PHP3.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Il &#233;tait utilis&#233; en 2002 par plus de 8 millions de sites web, et en 2004 par plus de 15 millions.&lt;/p&gt; &lt;p&gt;La version 5 de PHP est sortie le 13 juillet 2004, elle utilise le &lt;span style=&quot;&quot;&gt;Zend Engine 2 et propose une programmation orient&#233;e objet.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;La version actuelle est la 5.2.4 et date du 31 ao&#251;t 2007.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;c)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Fonctionnement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if gte vml 1]&gt;&lt;v:group id=&quot;_x0000_s1026&quot;
style='position:absolute;left:0;text-align:left;margin-left:-54pt;
margin-top:55.15pt;width:8in;height:171pt;z-index:251656704' coordorigin=&quot;157,1960&quot;
coordsize=&quot;11520,3420&quot;&gt;
&lt;v:line id=&quot;_x0000_s1027&quot; style='position:absolute' from=&quot;697,2680&quot; to=&quot;697,4300&quot;&gt;
&lt;v:stroke endarrow=&quot;block&quot; /&gt;
&lt;/v:line&gt;&lt;v:group id=&quot;_x0000_s1028&quot; style='position:absolute;left:157;top:1960;
width:11520;height:3420' coordorigin=&quot;157,1960&quot; coordsize=&quot;11520,3420&quot;&gt;
&lt;v:shape id=&quot;_x0000_s1029&quot; type=&quot;#_x0000_t75&quot; style='position:absolute;
left:877;top:2320;width:10440;height:2079'&gt;
&lt;v:imagedata src=&quot;file:///C:\Users\CHARLE~1\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png&quot;
o:title=&quot;pc Serv2&quot; /&gt;
&lt;/v:shape&gt;&lt;v:line id=&quot;_x0000_s1030&quot; style='position:absolute;flip:x' from=&quot;2137,2320&quot;
to=&quot;10057,2320&quot;&gt;
&lt;v:stroke endarrow=&quot;block&quot; /&gt;
&lt;/v:line&gt;&lt;v:shapetype id=&quot;_x0000_t202&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;202&quot;
path=&quot;m,l,21600r21600,l21600,xe&quot;&gt;
&lt;v:stroke joinstyle=&quot;miter&quot; /&gt;
&lt;v:path gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; /&gt;
&lt;/v:shapetype&gt;&lt;v:shape id=&quot;_x0000_s1031&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:4837;top:1960;width:3240;height:540' filled=&quot;f&quot; stroked=&quot;f&quot;
strokeweight=&quot;0&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1031'&gt;
&lt;![if !mso]&gt;&lt;/p&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;1 : Demande d'index.php&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;v:shape id=&quot;_x0000_s1032&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:157;top:1960;width:1800;height:720' filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1032'&gt;
&lt;![if !mso]&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;2 : Chargement d'index.php&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;v:shape id=&quot;_x0000_s1033&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:337;top:4300;width:2160;height:1080' filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1033'&gt;
&lt;![if !mso]&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;3 : Ex&#233;cution par l'interpr&#233;teur du script.&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;v:line id=&quot;_x0000_s1034&quot; style='position:absolute' from=&quot;2317,4840&quot;
to=&quot;9337,4840&quot;&gt;
&lt;v:stroke endarrow=&quot;block&quot; /&gt;
&lt;/v:line&gt;&lt;v:shape id=&quot;_x0000_s1035&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:3217;top:4480;width:4680;height:540' filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1035'&gt;
&lt;![if !mso]&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;4 : Envoi du code g&#233;n&#233;r&#233; par le script&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;v:shape id=&quot;_x0000_s1036&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:9337;top:4300;width:2340;height:720' filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1036'&gt;
&lt;![if !mso]&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;5 : Affichage de la page index.php&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;/v:group&gt;&lt;w:wrap type=&quot;square&quot; /&gt;
&lt;/v:group&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;Lorsqu'un utilisateur demande la page index.php, son ordinateur envoi une requ&#234;te HTTP au serveur. Si cette page contient du code PHP, il est interpr&#233;t&#233; par le serveur qui g&#233;n&#232;re du code envoy&#233; ensuite &#224; l'ordinateur qui en a fait la demande.
&lt;p&gt;Comme nous avons pu le voir pr&#233;c&#233;demment les scripts PHP peuvent faire appel &#224; des requ&#234;tes MySQL, elles sont alors trait&#233;es durant l'ex&#233;cution du script PHP.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if gte vml 1]&gt;&lt;v:group id=&quot;_x0000_s1037&quot;
style='position:absolute;left:0;text-align:left;margin-left:-63pt;
margin-top:6.6pt;width:8in;height:324pt;z-index:251657728' coordorigin=&quot;337,337&quot;
coordsize=&quot;11520,6480&quot;&gt;
&lt;v:shape id=&quot;_x0000_s1038&quot; type=&quot;#_x0000_t75&quot; style='position:absolute;left:877;
top:990;width:10620;height:5010'&gt;
&lt;v:imagedata src=&quot;file:///C:\Users\CHARLE~1\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png&quot;
o:title=&quot;pc Serv4&quot; /&gt;
&lt;/v:shape&gt;&lt;v:group id=&quot;_x0000_s1039&quot; style='position:absolute;left:337;top:337;
width:11520;height:6480' coordorigin=&quot;337,337&quot; coordsize=&quot;11520,6480&quot;&gt;
&lt;v:shape id=&quot;_x0000_s1040&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:5017;top:517;width:3240;height:540' filled=&quot;f&quot; stroked=&quot;f&quot;
strokeweight=&quot;0&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1040'&gt;
&lt;![if !mso]&gt;&lt;/p&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;1 : Demande d'index.php&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;v:shape id=&quot;_x0000_s1041&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:337;top:337;width:1800;height:720' filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1041'&gt;
&lt;![if !mso]&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;2 : Chargement d'index.php&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;v:shape id=&quot;_x0000_s1042&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:517;top:2677;width:2160;height:1080' filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1042'&gt;
&lt;![if !mso]&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;3 : Ex&#233;cution par l'interpr&#233;teur du script.&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;v:shape id=&quot;_x0000_s1043&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:3397;top:2677;width:4680;height:540' filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1043'&gt;
&lt;![if !mso]&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;5 : Envoi du code g&#233;n&#233;r&#233; par le script&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;v:shape id=&quot;_x0000_s1044&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:9517;top:2497;width:2340;height:720' filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1044'&gt;
&lt;![if !mso]&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;6 : Affichage de la page index.php&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;v:shape id=&quot;_x0000_s1045&quot; type=&quot;#_x0000_t202&quot; style='position:absolute;
left:517;top:6097;width:2520;height:720' filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
&lt;v:textbox style='mso-next-textbox:#_x0000_s1045'&gt;
&lt;![if !mso]&gt;
&lt;table cellpadding=0 cellspacing=0 width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;![endif]&gt; &lt;div&gt;
&lt;p&gt;4 : Ex&#233;cution des diff&#233;rentes requ&#234;tes.&lt;/p&gt; &lt;/div&gt; &lt;![if !mso]&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;![endif]&gt;&lt;/v:textbox&gt;
&lt;/v:shape&gt;&lt;/v:group&gt;&lt;v:group id=&quot;_x0000_s1046&quot; style='position:absolute;
left:697;top:877;width:9540;height:5220' coordorigin=&quot;697,877&quot; coordsize=&quot;9540,5220&quot;&gt;
&lt;v:line id=&quot;_x0000_s1047&quot; style='position:absolute;flip:x' from=&quot;2317,877&quot;
to=&quot;10237,877&quot;&gt;
&lt;v:stroke endarrow=&quot;block&quot; /&gt;
&lt;/v:line&gt;&lt;v:line id=&quot;_x0000_s1048&quot; style='position:absolute' from=&quot;877,1057&quot;
to=&quot;877,2677&quot;&gt;
&lt;v:stroke endarrow=&quot;block&quot; /&gt;
&lt;/v:line&gt;&lt;v:line id=&quot;_x0000_s1049&quot; style='position:absolute' from=&quot;2497,3037&quot;
to=&quot;9517,3037&quot;&gt;
&lt;v:stroke endarrow=&quot;block&quot; /&gt;
&lt;/v:line&gt;&lt;v:line id=&quot;_x0000_s1050&quot; style='position:absolute' from=&quot;697,3757&quot;
to=&quot;697,6097&quot;&gt;
&lt;v:stroke endarrow=&quot;block&quot; /&gt;
&lt;/v:line&gt;&lt;v:line id=&quot;_x0000_s1051&quot; style='position:absolute;flip:y' from=&quot;877,3757&quot;
to=&quot;877,6097&quot;&gt;
&lt;v:stroke endarrow=&quot;block&quot; /&gt;
&lt;/v:line&gt;&lt;/v:group&gt;&lt;w:wrap type=&quot;square&quot; /&gt;
&lt;/v:group&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;
&lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;d)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Pr&#233; requis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Je vous conseille tout d'abord de connaitre un peu le HTML si vous souhaitez cr&#233;er un site internet en PHP car vous en aurez besoin !&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Pour pouvoir faire du d&#233;veloppement PHP il vous faut un h&#233;bergeur internet qui accepte le PHP (la plupart le sont) ou avoir son propre serveur Apache ou IIS avec PHP d'install&#233; ou sinon vous pouvez l'installer sur votre ordinateur gr&#226;ce &#224; Wamp ou &#224; EasyPHP pour cr&#233;er vos scripts localement.&lt;/p&gt; &lt;p&gt;Pour cr&#233;er vos scripts vous pouvez utiliser le Bloc Note de Windows ou je vous recommande Notepad++ pour la coloration syntaxique ou des outils plus &#233;volu&#233;s tels que PHP Edit.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;&quot;&gt;&lt;br clear=&quot;all&quot; style=&quot;page-break-before: always;&quot; /&gt;
&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;II)&lt;span style=&quot;&quot;&gt; &lt;/span&gt;NOTIONS DE BASE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;a)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;La syntaxe&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Passons maintenant aux choses s&#233;rieuses !&lt;/p&gt; &lt;p&gt;Tout script PHP porte l'extension .php (cela peut aussi &#234;tre .php3 &#8230;)&lt;/p&gt; &lt;p&gt;Le script PHP commence par la balise : &lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt; ?php&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Il se termine par la balise : &lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Dans un ficher .php seul les commandes plac&#233;s entre ces 2 balises est ex&#233;cut&#233;, le reste est affich&#233; tel-quel.&lt;/p&gt; &lt;p&gt;Dans un m&#234;me fichier il peut y avoir plusieurs blocs de script PHP.&lt;/p&gt; &lt;p&gt;Les slaches servent &#224; commenter des lignes de code ainsi que les balises /* et */&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Exemple :&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;Ce code sera ex&#233;cut&#233; par l'interpr&#233;teur&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//Ce code ne sera ni affich&#233; ni ex&#233;cut&#233;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;Ce code sera ex&#233;cut&#233; par l'interpr&#233;teur&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;/*Ce code ne sera ni affich&#233; ni ex&#233;cut&#233;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;Ce code ne sera ni affich&#233; ni ex&#233;cut&#233;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;Ce code sera ex&#233;cut&#233; par l'interpr&#233;teur&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;Le texte d'ici sera affich&#233; tel quel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;ATTENTION :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;Comme beaucoup de langage, chaque instruction doit se terminer par un &lt;u&gt;point virgule&lt;/u&gt; : &lt;b style=&quot;&quot;&gt; ;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Pour afficher du texte c'est tr&#232;s simple, on utilise la fonction echo :&lt;/p&gt; &lt;p&gt;Exemple :&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo &quot;Bonjour tout le monde&quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Cela affichera : Bonjour tout le monde&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Vous avez certainement remarqu&#233; que j'ai utilis&#233; des guillemets autour de mon texte, on peut aussi utiliser des apostrophes.&lt;/p&gt; &lt;p&gt;Si vous essayez d'afficher un guillemet vous vous rendrez vite compte que cela produit une erreur, il faut utiliser un caract&#232;re d'&#233;chappement (l'antislash) pour dire &#224; l'interpr&#233;teur d'ex&#233;cuter le guillemet comme un caract&#232;re normal :&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo &quot;ceci est un guillemet : &lt;span style=&quot;color: red;&quot;&gt;\&quot;&lt;/span&gt; &quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Vous pouvez aussi ins&#233;rer du code HTML :&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo &quot;&lt;&lt;span class=&quot;st0&quot;&gt;strong&lt;/span&gt;&gt;ceci est un guillemet : &lt;span style=&quot;color: red;&quot;&gt;\&quot;&lt;/span&gt;&lt;/&lt;span class=&quot;st0&quot;&gt;strong&lt;/span&gt;&gt; &quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Cela affichera le texte en gras.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;b)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les variables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Une variable est une information gard&#233;e en m&#233;moire durant l'ex&#233;cution du script, c'est-&#224;-dire que lorsque le script a fini d'&#234;tre ex&#233;cut&#233; les variables sont effac&#233;es.&lt;/p&gt; &lt;p&gt;Les variables peuvent contenir diff&#233;rents types d'informations : des chaines de caract&#232;res, des nombres, des bool&#233;ens, des tableaux &#8230;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//exemple de variable texte :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$texte=&quot;Bonjour tout le monde&quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//exemple de variable num&#233;rique :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nombre=3 ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//exemple de variable bool&#233;enne :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$bool=true ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Maintenant on veut afficher le contenu d'une variable, c'est tout simple :&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $texte ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Vous avez certainement remarqu&#233; que je n'ai pas mis de guillemets, ce n'est pas n&#233;cessaire pour les variables, si vous les mettez cela marchera tout autant.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;A l'aide des variables nous pouvons faire les diff&#233;rents calculs simples &#224; l'aide des quatre op&#233;rations de base : addition, soustraction, multiplication, division.&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//exemple d'addition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nombre=10+4 ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $nombre ;&lt;span style=&quot;color: green;&quot;&gt; //cela affichera 14&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//exemple de soustraction&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nombre=10-4 ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $nombre ;&lt;span style=&quot;color: green;&quot;&gt; //cela affichera 6&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//exemple de multiplication&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nombre=10*4 ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $nombre ;&lt;span style=&quot;color: green;&quot;&gt; //cela affichera 40&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//exemple de division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nombre=20/4 ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $nombre ;&lt;span style=&quot;color: green;&quot;&gt; //cela affichera 5&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Nous pouvons aussi faire ces op&#233;rations directement avec les variables :&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//exemple d'addition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$a=10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$b=15&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nombre=$a+$b ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $nombre ;&lt;span style=&quot;color: green;&quot;&gt; //cela affichera 25&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//exemple de soustraction&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nombre=$b-$a ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $nombre ;&lt;span style=&quot;color: green;&quot;&gt; //cela affichera 5&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Il existe deux types de tableaux : les tableaux num&#233;rot&#233;s et les tableaux associatifs&lt;/p&gt; &lt;p&gt;Nous pouvons affecter des valeurs &#224; un tableau :&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;// On cr&#233;e notre tableau num&#233;rot&#233; :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;IT&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$jour = array (&quot;Lundi&quot;, &quot;Mardi&quot;, &quot;Mercredi&quot;, &quot;Jeudi&quot;) ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;IT&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;// Pour afficher le jour 3 : Mercredi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $ jour[3] ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;// On cr&#233;e notre tableau associatif :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$coordonnees = array (&lt;br /&gt; &quot;Nom&quot; =&gt; &quot;Durant&quot;,&lt;br /&gt; &quot;Pr&#233;nom&quot; =&gt; &quot;Pierre&quot;,&lt;br /&gt; &quot;Adresse&quot; =&gt; &quot;15, rue du Parc&quot;,&lt;br /&gt; &quot;Ville&quot; =&gt; &quot;Paris&quot;) ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;// Pour afficher le nom :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $coordonnees['Nom'] ;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;c)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les conditions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Les conditions sont tr&#232;s utilis&#233;es en PHP.&lt;/p&gt; &lt;p&gt;Tout d'abord avant de commencer, voyons les diff&#233;rents symboles que nous utiliseront pour les conditions :&lt;/p&gt; &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; class=&quot;MsoTableGrid&quot; style=&quot;border: medium none ; margin-left: 77.4pt; border-collapse: collapse;&quot;&gt; &lt;tbody&gt; &lt;tr style=&quot;&quot;&gt; &lt;td width=&quot;36&quot; valign=&quot;top&quot; style=&quot;border: 1pt solid windowtext; padding: 0cm 5.4pt; width: 27pt;&quot;&gt;
&lt;p&gt;==&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;199&quot; valign=&quot;top&quot; style=&quot;border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; width: 149.4pt;&quot;&gt;
&lt;p&gt;Est &#233;gal &#224;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;&quot;&gt; &lt;td width=&quot;36&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 27pt;&quot;&gt;
&lt;p&gt; !=&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;199&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 149.4pt;&quot;&gt;
&lt;p&gt;Est diff&#233;rent de&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;&quot;&gt; &lt;td width=&quot;36&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 27pt;&quot;&gt;
&lt;p&gt;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;199&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 149.4pt;&quot;&gt;
&lt;p&gt;Est strictement sup&#233;rieur &#224;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;&quot;&gt; &lt;td width=&quot;36&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 27pt;&quot;&gt;
&lt;p&gt;&lt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;199&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 149.4pt;&quot;&gt;
&lt;p&gt;Est strictement inf&#233;rieur &#224;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;&quot;&gt; &lt;td width=&quot;36&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 27pt;&quot;&gt;
&lt;p&gt;&gt;=&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;199&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 149.4pt;&quot;&gt;
&lt;p&gt;Est sup&#233;rieur ou &#233;gal &#224;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;&quot;&gt; &lt;td width=&quot;36&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 27pt;&quot;&gt;
&lt;p&gt;&lt;=&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;199&quot; valign=&quot;top&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 149.4pt;&quot;&gt;
&lt;p&gt;Est inf&#233;rieur ou &#233;gal &#224;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;L'utilisation de &lt;st1:personname productid=&quot;la structure If&quot; w:st=&quot;on&quot;&gt;la structure If&lt;/st1:personname&gt; est tr&#232;s simple :&lt;/p&gt; &lt;p&gt;Nous allons prendre un exemple simple :&lt;/p&gt; &lt;p&gt;SI $a est &#233;gal &#224; 15&lt;/p&gt; &lt;p&gt;ALORS on &#233;crit &#8216;Bonjour'&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$a=15&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;if($a=15)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo &quot;Bonjour&quot; ;&lt;span style=&quot;color: green;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Les conditions sont plac&#233;es entre parenth&#232;se apr&#232;s le if.&lt;/p&gt; &lt;p&gt;Le code qui est ex&#233;cut&#233; si la condition est remplie, est plac&#233; entre accolades.&lt;/p&gt; &lt;p&gt;Nous pouvons aussi sp&#233;cifier du code si la condition n'est pas remplie gr&#226;ce &#224; la clause else :&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$a=3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;if($a=15)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $a ;&lt;span style=&quot;color: green;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo &quot;ce nombre est diff&#233;rent de 15&quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Si vous souhaitez int&#233;grer plusieurs conditions dans votre if vous pouvez utiliser pour :&lt;/p&gt; &lt;p&gt;-OU &lt;st1:personname productid=&quot;la syntaxe OR&quot; w:st=&quot;on&quot;&gt;la syntaxe OR&lt;/st1:personname&gt; ou encore ||&lt;/p&gt; &lt;p&gt;-ET &lt;st1:personname productid=&quot;la syntaxe AND&quot; w:st=&quot;on&quot;&gt;la syntaxe AND&lt;/st1:personname&gt; ou encore &amp;&amp;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$a=3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;if(($a=15) OR ($a=3))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//cela est &#233;quivalent &#224; (($a=15)||($a=3))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $a ;&lt;span style=&quot;color: green;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;echo &quot;ce nombre est diff&#233;rent de 3 ou de 15&quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Il y a une alternative &#224; l'utilisation de cette structure, dans le cas d'un choix multiple : le switch.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Supposons que sur votre site l'utilisateur ait le choix entre 3 pays et qu'en fonction de ce pays vous souhaitiez afficher un message diff&#233;rent :&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$pays=&lt;/span&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&quot;france&quot; ;&lt;/span&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;switch($pays)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;case &lt;/span&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&quot;france&quot; :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;echo &quot;bonjour petit fran&#231;ais&quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;break ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;case &quot;angleterre&quot; :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;echo &quot;hello !&quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;break ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;case &quot;espagne&quot; :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;echo &quot;Buenas dias !&quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;break ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;kw2&quot;&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;default&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt; :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo &quot;Je ne connais pas ton pays ! &quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Les accolades servent &#224; marquer le d&#233;but et la fin du switch.&lt;/p&gt; &lt;p&gt;Apr&#232;s chaque cas il y a un break ce qui sert &#224; arr&#234;ter le switch, sinon il continuera d'ex&#233;cuter les autres cas.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;d)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les boucles&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Une boucle permet de r&#233;p&#233;ter plusieurs fois la m&#234;me suite d'op&#233;rations. Pour sortir de la boucle il faut lui sp&#233;cifier une condition de sortie.&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nombre=1 ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;while($nombre&lt;=10)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nombre++ ; &lt;span style=&quot;color: green;&quot;&gt;//incr&#233;mentation de $nombre&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//cela est &#233;quivalent &#224; : $nombre=$nombre+1 ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//instructions dans la boucle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Dans cet exemple la boucle sera ex&#233;cut&#233;e 10 fois.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;ATTENTION :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;Il faut toujours que la condition ne soit pas remplie au moins une foi car sinon votre script s'ex&#233;cutera &#224; l'infini !&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Maintenant passons &#224; un type de boucle un peu diff&#233;rent : la boucle for&lt;/p&gt; &lt;p&gt;La boucle for est assez semblable &#224; la boucle while, sa syntaxe est :&lt;/p&gt; &lt;p&gt;for(initialisation ; condition ; incr&#233;mentation).&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Reprenons le m&#234;me exemple : une boucle ex&#233;cute 10 fois :&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;for($nombre=1 ; $nombre&lt;=10 ; $nombre++ ;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//instructions dans la boucle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Vous pouvez constater que cela rassemble toutes les informations sur une ligne.&lt;/p&gt; &lt;p&gt;La principale diff&#233;rence entre for et while est que l'utilisation de for ne peut se faire que s'il y a incr&#233;mentation d'un nombre.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;&quot;&gt;&lt;br clear=&quot;all&quot; style=&quot;page-break-before: always;&quot; /&gt;
&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;III)&lt;span style=&quot;&quot;&gt; &lt;/span&gt;QUELQUES FONCTIONNALITES DE PHP&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;a)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les dates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Nous allons maintenant voir diff&#233;rentes fonctionnalit&#233;s de PHP, avant de continuer, je vous conseille d'avoir bien compris ce que nous avons d&#233;j&#224; vu.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;L'utilisation de la fonction date est tr&#232;s fr&#233;quente en PHP, elle sert &#224; donner la date, l'heure du serveur. Attention, il s'agit bien ici de l'heure du serveur et non pas celle de l'ordinateur sur lequel vous vous trouvez !&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Prenons un exemple :&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;kw2&quot;&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;re0&quot;&gt;$heure&lt;/span&gt; = date(&lt;span class=&quot;st0&quot;&gt;'H:i'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo &lt;span class=&quot;st0&quot;&gt;'Il est&lt;/span&gt; : &lt;span class=&quot;st0&quot;&gt;' . $heure ;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;st0&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Cela affichera &#171; Il est 18:50 &#187;&lt;/p&gt; &lt;p&gt;Nous pouvons voir ici que H d&#233;signe l'heure et que le i d&#233;signe les minutes.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Voici le tableau de correspondance entre les lettres et leur signification :&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;table width=&quot;591&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; class=&quot;MsoNormalTable&quot; style=&quot;border: medium none ; width: 443pt; margin-left: 21.5pt; border-collapse: collapse;&quot;&gt; &lt;tbody&gt; &lt;tr style=&quot;height: 31.5pt;&quot;&gt; &lt;td width=&quot;52&quot; style=&quot;border: 1pt solid gray; padding: 0cm 3.5pt; width: 39pt; height: 31.5pt;&quot;&gt;
&lt;p&gt;&lt;b&gt;Lettre&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; style=&quot;border-style: solid solid solid none; border-color: gray gray gray -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 31.5pt;&quot;&gt;
&lt;p&gt;&lt;b&gt;Signification&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; style=&quot;border-style: solid solid solid none; border-color: gray gray gray -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 31.5pt;&quot;&gt;
&lt;p&gt;&lt;b&gt;Valeurs possibles&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;s&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Secondes&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;00 &#224; 59&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;i&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Minutes&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;00 &#224; 59&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;H&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Heure&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;00 &#224; 23&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;I&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Indique si l'heure d'&#233;t&#233; est activ&#233;e (1 = oui, 0 = non)&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;0 ou 1&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;O&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Diff&#233;rence d'heures avec l'heure GMT (Greenwich)&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;-1200 &#224; +1200&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;d&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Jour du mois&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;01 &#224; 31&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;m&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Mois de l'ann&#233;e&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;01 &#224; 12&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Y&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Ann&#233;e, sur 4 chiffres&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Beaucoup de possibilit&#233;s&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;y&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Ann&#233;e, sur 2 chiffres&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Beaucoup de possibilit&#233;s&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;L&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Indique si l'ann&#233;e est bissextile (1 = oui, 0 = non)&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;0 ou 1&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;l&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Jour de la semaine &#233;crit en anglais&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Sunday &#224; Saturday&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;F&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Mois &#233;crit en anglais&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;January &#224; December&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;t&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Nombre de jours dans le mois&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;28 &#224; 31&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;w&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Num&#233;ro du jour de la semaine&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;0 (dimanche) &#224; 6 (samedi)&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;W&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Num&#233;ro de la semaine dans l'ann&#233;e&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;01 &#224; 52&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&quot;height: 15.75pt;&quot;&gt; &lt;td width=&quot;52&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid; border-color: -moz-use-text-color gray gray; border-width: medium 1pt 1pt; padding: 0cm 3.5pt; width: 39pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;z&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;344&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 257.65pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;Num&#233;ro du jour de l'ann&#233;e&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;195&quot; valign=&quot;bottom&quot; style=&quot;border-style: none solid solid none; border-color: -moz-use-text-color gray gray -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 3.5pt; width: 146.35pt; height: 15.75pt;&quot;&gt;
&lt;p&gt;0 &#224; 366&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Maintenant je veux afficher &#171; Il est 18 heures 50 &#187;&lt;/p&gt; &lt;p&gt;C'est tout simple :&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;kw2&quot;&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;re0&quot;&gt;$heure&lt;/span&gt; = date(&lt;span class=&quot;st0&quot;&gt;'H &lt;/span&gt;&lt;span class=&quot;es0&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;H&lt;/span&gt;&lt;span class=&quot;es0&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;es0&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;u&lt;/span&gt;&lt;span class=&quot;es0&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;es0&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;es0&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;s i'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo &lt;span class=&quot;st0&quot;&gt;'Il est&lt;/span&gt; : &lt;span class=&quot;st0&quot;&gt;' . $heure ;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;st0&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;On utilise un caract&#232;re d'&#233;chappement : l'antislash, il permet d'&#233;viter que le caract&#232;re soit interpr&#233;t&#233; comme une lettre &#224; transcrire.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Le timestamp, c'est le nombre de secondes &#233;coul&#233;es depuis le 1er Janvier 1970 &#224; Minuit.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo 'Le timestamp actuel est : ' . time() ;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Affichera &#171; Le timestamp actuel est : 1194458682 &#187;&lt;/p&gt; &lt;p&gt;On peut aussi r&#233;cup&#233;rer la date en fonction du timestamp :&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;$timestamp=1194458682 ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo date('H\h i\m\i\n s\s', $timestamp) ; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Affichera &#171; 19h 04min 42s &#187;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;En PHP pour les dates je pr&#233;f&#232;re utiliser le timestamp car il est plus simple &#224; utiliser et &#224; stoker.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;b)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Les formulaires&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Je n'aborderai pas ici comment faire un formulaire en HTML, car le but de ce document n'est pas de vous apprendre le HTML, mais je vais vous expliquer comment r&#233;cup&#233;rer les informations contenu dans celui-ci.&lt;/p&gt; &lt;p&gt;Un petit rappel tout de m&#234;me, lorsque vous cr&#233;ez un formulaire, il commence par :&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;re1&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&lt;form&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;method&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&quot;&lt;b style=&quot;&quot;&gt;post&lt;/b&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;action&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&quot;cible.php&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;re2&quot;&gt;ou&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;re1&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&lt;form&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;method&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&quot;&lt;b style=&quot;&quot;&gt;get&lt;/b&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;action&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&quot;cible.php&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;re2&quot;&gt;La m&#233;thode get passe toutes les valeurs des champs du formulaire dans l'url. La m&#233;thode post quand &#224; elle envoie les valeurs des formulaires avec la requ&#234;te de mani&#232;re invisible par l'utilisateur. Je vous recommande cette derni&#232;re car elle est plus souple et sans limitations (la m&#233;thode get est limit&#233; par la longueur le l'url).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;re2&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;re2&quot;&gt;Prenons par exemple un champ texte simple :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;courrier&quot;&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;nom&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span lang=&quot;PT-BR&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nom = $_GET['nom'] ;&lt;span style=&quot;color: green;&quot;&gt;//si on a utilis&#233; &lt;st1:personname productid=&quot;la m&#65513;thode GET&quot; w:st=&quot;on&quot;&gt;la m&#233;thode GET&lt;/st1:personname&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;$nom = $_POST['nom'] ;&lt;span style=&quot;color: green;&quot;&gt;//si on a utilis&#233; &lt;st1:personname productid=&quot;la m&#65513;thode POST&quot; w:st=&quot;on&quot;&gt;la m&#233;thode POST&lt;/st1:personname&gt;&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Vous pouvez maintenant utiliser la variable $nom comme bon vous semble.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;c)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Interaction avec MySQL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Ce document n'est qu'une introduction au d&#233;veloppement Web c'est pour cela que je ne m'&#233;terniserai pas sur cette partie, mais c'est une partie tr&#232;s importante si vous vous d&#233;cidez &#224; d&#233;velopper en PHP. Je vous recommande donc de l'approfondir. Elle requi&#232;re de connaitre un minimum les requ&#234;tes SQL.&lt;/p&gt; &lt;p&gt;Pour acc&#233;der &#224; une base de donn&#233;, il faut tout d'abord se connecter, puis envoyer notre requ&#234;te, r&#233;cup&#233;rer le r&#233;sultat et ne pas oublier de fermer la connexion.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Voici un exemple tr&#232;s simple pour afficher tous les noms de la base essai.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;// Connexion &#224; MySQL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;mysql_connect(&quot;localhost&quot;,&quot;login&quot;, &quot;password&quot;) ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;mysql_select_db(&quot;test&quot;) ; &lt;span style=&quot;color: green;&quot;&gt;//S&#233;lection de la base test&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//on ex&#233;cute notre requ&#234;te :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;$reponse&lt;/span&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt; = mysql_query(&quot;SELECT * FROM essai&quot;) ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;//on fait une boucle pour afficher le contenu&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;while ($donnees = mysql_fetch_array($reponse) )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//on affiche tous les noms contenus dans la table essai&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo $donnees['nom'] ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;//un petit retour &#224; la ligne :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;echo '&lt;br /&gt;' ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;/i&gt;&lt;/span&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: green;&quot;&gt;// On a fini de travailler, on ferme la connexion :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;mysql_close() ; &lt;span style=&quot;color: green;&quot;&gt;// D&#233;connexion de MySQL&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;d)&lt;span style=&quot;font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Envoi de mail avec PHP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Cette fonctionnalit&#233; est limit&#233;e voire d&#233;sactiv&#233; chez certains h&#233;bergeurs, mais chez la plupart elle est activ&#233;e.&lt;/p&gt; &lt;p&gt;Pour l'utiliser, c'est tr&#232;s simple il suffit de d'appeler la fonction mail :&lt;/p&gt; &lt;p&gt;mail(email du destinataire, titre du mail, message, en-t&#234;te du message) ;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;&quot;&gt;L'&lt;/span&gt;en-t&#234;te&lt;span style=&quot;&quot;&gt; est la partie cach&#233;e du message qui est envoy&#233;. Il permet, par exemple de sp&#233;cifier l'exp&#233;diteur.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;&quot;&gt;Voici un exemple :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt;&lt; ?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;mail(&quot;destinataire@domaine.com&quot;, &quot;titre&quot;, &quot;message&quot;, &quot;From : coucou@autre.com\n&quot;) ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: &quot;Courier New&quot;; color: red;&quot;&gt; ?&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;&quot;&gt;Ca y est, vous avez envoy&#233; votre premier mail en PHP !&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;&quot;&gt;&lt;br clear=&quot;all&quot; style=&quot;page-break-before: always;&quot; /&gt;
&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;CONCLUSION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;Vous avez pu d&#233;couvrir en lisant ce document les bases de la programmation en PHP. Je vous conseille de vous exercer en faisant des petits scripts &#224; l'aide des connaissances que vous avez accumul&#233; durant votre lecture. Si cela vous a plu je vous conseille de poursuivre cette formation gr&#226;ce &#224; des sites sp&#233;cialis&#233;s.&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Sources :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;Wikip&#233;dia : &lt;span lang=&quot;PT-BR&quot; style=&quot;&quot;&gt;&lt;a href=&quot;http://fr.wikipedia.org/&quot;&gt;&lt;span lang=&quot;FR&quot; style=&quot;&quot;&gt;http://fr.wikipedia.org&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Site du z&#233;ro : &lt;a href=&quot;http://www.siteduzero.com/&quot;&gt;http://www.siteduzero.com&lt;/a&gt;&lt;/p&gt; &lt;p&gt;PHP.net : &lt;a href=&quot;http://www.php.net/&quot;&gt;http://www.php.net&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Site sur les calculatrices casio</title>
		<link>http://www.labo-caa.fr/Site-sur-les-calculatrices-casio.html</link>
		<guid isPermaLink="true">http://www.labo-caa.fr/Site-sur-les-calculatrices-casio.html</guid>
		<dc:date>2008-06-12T09:50:00Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>caa</dc:creator>



		<description>Voici un autre site que j'ai r&#233;alis&#233; il y a quelques ann&#233;es sur les calculatrices graphiques casio : wincaa.tk Attention : ce site n'est plus maintenu.

-
&lt;a href="http://www.labo-caa.fr/-Projets-Realises-.html" rel="directory"&gt;Projets R&#233;alis&#233;s&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Voici un autre site que j'ai r&#233;alis&#233; il y a quelques ann&#233;es sur les calculatrices graphiques casio :
&lt;a href='http://charles.alban.allard.free.fr/' class='spip_out'&gt;wincaa.tk&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Attention : ce site n'est plus maintenu.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Creation de flux rss en ligne</title>
		<link>http://www.labo-caa.fr/Creation-de-flux-rss-en-ligne.html</link>
		<guid isPermaLink="true">http://www.labo-caa.fr/Creation-de-flux-rss-en-ligne.html</guid>
		<dc:date>2008-05-26T10:23:18Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>caa</dc:creator>



		<description>Ce site vous permet de cr&#233;er un flux rss et de le mettre &#224; jour de mani&#232;re simplifi&#233;e. kangee.labo-caa.fr

-
&lt;a href="http://www.labo-caa.fr/-Projets-Realises-.html" rel="directory"&gt;Projets R&#233;alis&#233;s&lt;/a&gt;


		</description>


 <content:encoded>&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L128xH96/arton2-310ed.jpg&quot; alt=&quot;&quot; align=&quot;right&quot; width='128' height='96' class='spip_logos' style='height:96px;width:128px;' /&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Ce site vous permet de cr&#233;er un flux rss et de le mettre &#224; jour de mani&#232;re simplifi&#233;e.&lt;/p&gt; &lt;p&gt;&lt;a href='http://kangee.labo-caa.fr/' class='spip_out'&gt;kangee.labo-caa.fr&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Site du projet Kinshasa</title>
		<link>http://www.labo-caa.fr/Site-du-projet-Kinshasa.html</link>
		<guid isPermaLink="true">http://www.labo-caa.fr/Site-du-projet-Kinshasa.html</guid>
		<dc:date>2008-05-26T10:21:27Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>caa</dc:creator>



		<description>Site du projet Kinshasa : jumelage de l'&#233;cole sainte Marie (Maristes) de Lyon (France) avec l'&#233;cole sainte Chistine de Kinshasa(RD Congo) Site : kinshasa.c.la Pr&#233;sentation g&#233;n&#233;rale du Projet Qui sommes-nous ? Nous sommes une soixantaine de lyc&#233;ens de premi&#232;re aux classes pr&#233;paratoires de l'Externat Sainte Marie de Lyon, volontaires pour le projet de coop&#233;ration en R&#233;publique D&#233;mocratique du Congo. Nous nous retrouvons chaque semaine autour de professeurs pour la mise en place du projet o&#249; chacun a un (...)

-
&lt;a href="http://www.labo-caa.fr/-Projets-Realises-.html" rel="directory"&gt;Projets R&#233;alis&#233;s&lt;/a&gt;


		</description>


 <content:encoded>&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L128xH96/arton1-d5e82.jpg&quot; alt=&quot;&quot; align=&quot;right&quot; width='128' height='96' class='spip_logos' style='height:96px;width:128px;' /&gt;
		&lt;div class='rss_chapo'&gt;&lt;p&gt;Site du projet Kinshasa : jumelage de l'&#233;cole sainte Marie (Maristes) de Lyon (France) avec l'&#233;cole sainte Chistine de Kinshasa(RD Congo)&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;&lt;strong&gt;Site :&lt;/strong&gt; &lt;a href='http://kinshasa.c.la/' class='spip_out'&gt;kinshasa.c.la&lt;/a&gt;&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Pr&#233;sentation g&#233;n&#233;rale du Projet&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Qui sommes-nous ?&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Nous sommes une soixantaine de lyc&#233;ens de premi&#232;re aux classes pr&#233;paratoires de l'Externat Sainte Marie de Lyon, volontaires pour le projet de coop&#233;ration en R&#233;publique D&#233;mocratique du Congo. Nous nous retrouvons chaque semaine autour de professeurs pour la mise en place du projet o&#249; chacun a un r&#244;le important.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Un projet humain et humanitaire&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;L'action est &#224; la fois humaine par les relations qui sont entretenues durant toute l'ann&#233;e entre les jeunes congolais et nous, et humanitaire par l'aide tant p&#233;dagogique que mat&#233;rielle qui sera apport&#233;e sur place. Ainsi des liens seront &#233;tablis entre les jeunes avant m&#234;me notre d&#233;placement.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Pourquoi la R&#233;publique d&#233;mocratique du Congo ?&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Ce pays est aujourd'hui le pays du monde ayant la plus petite part de son budget r&#233;serv&#233;e &#224; l'&#233;ducation, quasi inexistante. C'est pourquoi nous nous tournons vers ce pays et plus particuli&#232;rement vers l'&#233;cole Ste Christine &#224; Kinshasa qui compte plus de 2000 &#233;l&#232;ves pour un nombre de professeurs extr&#234;mement limit&#233; et peu ou pas pay&#233;s par l'Etat. Par manque &#233;vident de moyens, les &#233;l&#232;ves ne travaillent que 4 heures chaque jour. Cette &#233;cole qui &#233;tait en piteux &#233;tat il y a quatre ans a fait l'objet d'une reconstruction l'an dernier gr&#226;ce &#224; une op&#233;ration visant &#224; collecter des fonds au sein m&#234;me de notre &#233;tablissement.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



</channel>

</rss>
