<?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>Parser du XML en PHP : xmlAnalyser</title>
		<link>http://www.labo-caa.fr/Parser-du-XML-en-PHP-xmlAnayser.html</link>
		<guid isPermaLink="true">http://www.labo-caa.fr/Parser-du-XML-en-PHP-xmlAnayser.html</guid>
		<dc:date>2010-01-20T23:52:50Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>caa</dc:creator>



		<description>Dans cet article je vais vous pr&#233;senter comment parser du XML &#224; l'aide de la classe PHP xmlAnalyser. Cette classe vous permet de transformer un fichier XML en tableau PHP. Cette classe analyse le XML et le transforme en un tableau contenant : le type de la balise un tableau contenant les param&#232;tres le contenu de la balise les &#233;ventuels enfants Prenons un exemple : soit le fichier XML suivant : &lt;root&gt; &lt;element param1=&quot;abc&quot; param2=&quot;123&quot;&gt; (...)

-
&lt;a href="http://www.labo-caa.fr/-Projets-En-Cours-.html" rel="directory"&gt;Projets En Cours&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Dans cet article je vais vous pr&#233;senter comment parser du XML &#224; l'aide de la classe PHP xmlAnalyser. Cette classe vous permet de transformer un fichier XML en tableau PHP.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Cette classe analyse le XML et le transforme en un tableau contenant :
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; le type de la balise
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; un tableau contenant les param&#232;tres
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; le contenu de la balise
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; les &#233;ventuels enfants&lt;/p&gt; &lt;p&gt;Prenons un exemple : soit le fichier XML suivant :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;root&gt;&lt;br /&gt; &lt;element param1=&quot;abc&quot; param2=&quot;123&quot;&gt;&lt;br /&gt; &lt;text&gt;bonjour&lt;/text&gt;&lt;br /&gt; &lt;text&gt;bonjour2&lt;/text&gt;&lt;br /&gt; &lt;/element&gt;&lt;br /&gt; &lt;element&gt;&lt;br /&gt; &lt;text&gt;Coment ca va?&lt;/text&gt;&lt;br /&gt; &lt;text&gt;Bien&lt;/text&gt;&lt;br /&gt; &lt;/element&gt;&lt;br /&gt; &lt;/root&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;Soit le fichier PHP suivant :
&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//on inclus la classe&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;xmlanalyser.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//On charge le xml&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$xml &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_get_contents&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;test.xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//On instancie la classe &lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$xmlAnalyser &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;xmlAnalyser&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$xml&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//On r&#233;cup&#232;re le tableau&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tab &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$xmlAnalyser&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;xmlToArray&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//On affiche!&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;print_r&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tab&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Cela retourne un tableau dans $tab du type :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;Array&lt;br /&gt; (&lt;br /&gt; [0] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [type] =&gt; ROOT&lt;br /&gt; [attributes] =&gt; &lt;br /&gt; [value] =&gt; &lt;br /&gt; [child] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [0] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [type] =&gt; ELEMENT&lt;br /&gt; [attributes] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [PARAM1] =&gt; abc&lt;br /&gt; [PARAM2] =&gt; 123&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt; [value] =&gt; &lt;br /&gt; [child] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [0] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [type] =&gt; TEXT&lt;br /&gt; [attributes] =&gt; &lt;br /&gt; [value] =&gt; bonjour&lt;br /&gt; )&lt;br /&gt; [1] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [type] =&gt; TEXT&lt;br /&gt; [attributes] =&gt; &lt;br /&gt; [value] =&gt; bonjour2&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; [1] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [type] =&gt; ELEMENT&lt;br /&gt; [attributes] =&gt; &lt;br /&gt; [value] =&gt; &lt;br /&gt; [child] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [0] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [type] =&gt; TEXT&lt;br /&gt; [attributes] =&gt; &lt;br /&gt; [value] =&gt; Coment ca va?&lt;br /&gt; )&lt;br /&gt; [1] =&gt; Array&lt;br /&gt; (&lt;br /&gt; [type] =&gt; TEXT&lt;br /&gt; [attributes] =&gt; &lt;br /&gt; [value] =&gt; Bien&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;Ce tableau contient les &#233;l&#233;ments pr&#233;sents dans le ficher XML.
Chaque &#233;l&#233;ment contient plusieurs valeurs :
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; type : Nom de la balise
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; attributes : Tableaux des attributs de l'&#233;l&#233;ment : clef=&gt;valeur
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; value : valeur contenue dans la balise
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; child : Tableaux contenant les &#233;l&#233;ments enfants&lt;/p&gt; &lt;p&gt;Cette classe ne permet, &#224; ce jour, que de lire un fichier XML et non pas de cr&#233;er ou modifier celui-ci.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Modifications apport&#233;s par la V1.1 :&lt;/strong&gt;
Meilleure gestion de l'analyse du fichier, afin d'&#233;viter certains &quot;Notices&quot; qui pouvaient apparaitre en fonction de la configuration de PHP.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		
		<enclosure url="http://www.labo-caa.fr/IMG/zip/xmlAnalyser.zip" length="12617" type="application/zip" />
		
		<enclosure url="http://www.labo-caa.fr/IMG/zip/xmlAnalyser_V1-1.zip" length="12809" type="application/zip" />
		

	</item>
<item xml:lang="fr">
		<title>Librairie pour commander votre nabaztag en PHP (Php/Nab)</title>
		<link>http://www.labo-caa.fr/Commander-nabaztag-en-php.html</link>
		<guid isPermaLink="true">http://www.labo-caa.fr/Commander-nabaztag-en-php.html</guid>
		<dc:date>2009-09-14T16:31:44Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>caa</dc:creator>



		<description>Le nabaztag est un objet communicant repr&#233;sentant un lapin, il est &#233;quip&#233; de 5 leds clignotant de toutes les couleurs, 2 grandes oreilles motoris&#233;es, un micro, un haut parleur et une carte wifi. Il peut vous annoncer la m&#233;t&#233;o, la bourse, vos mails... et vous pouvez m&#234;me commander ses mouvements. Le but de cet article est de vous montrer comment utiliser la librairie PHP/nab pour utiliser votre ( ou celui de vos visiteurs ! ) nabaztag sur votre site internet. Cette librairie est compos&#233;e de 5 (...)

-
&lt;a href="http://www.labo-caa.fr/-Projets-En-Cours-.html" rel="directory"&gt;Projets En Cours&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Le nabaztag est un objet communicant repr&#233;sentant un lapin, il est &#233;quip&#233; de 5 leds clignotant de toutes les couleurs, 2 grandes oreilles motoris&#233;es, un micro, un haut parleur et une carte wifi. Il peut vous annoncer la m&#233;t&#233;o, la bourse, vos mails... et vous pouvez m&#234;me commander ses mouvements.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Le but de cet article est de vous montrer comment utiliser la librairie PHP/nab pour utiliser votre ( ou celui de vos visiteurs ! ) nabaztag sur votre site internet.&lt;/p&gt; &lt;p&gt;Cette librairie est compos&#233;e de 5 classes PHP :
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; choreography
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; retreve
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; stream
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; nabaztag
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; xmlanayser&lt;/p&gt; &lt;p&gt;Les classes que vous pouvez utiliser sont :
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; choreography : cette classe vous permet d'envoyer une chor&#233;graphie &#224; votre nabaztag
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; stream : cette classe vous permet de lire des fichiers mp3 ou un flux audio &#224; l'aide de votre nabaztag
&lt;br /&gt;&lt;img src=&quot;http://www.labo-caa.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; retreve : cette classe vous permet de r&#233;cup&#233;rer des informations de votre nabaztag&lt;/p&gt; &lt;p&gt;Nous allons voir maintenant comment utiliser cette classe de mani&#232;re &#224; faire une petite chor&#233;graphie :&lt;/p&gt; &lt;p&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;?php&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//nous commen&#231;ons par inclure les classes&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/nabaztag.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/choreography.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/retreve.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/stream.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/xmlanayser.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//nous cr&#233;ons l'objet choreography, il n&#233;cessite plusieurs param&#232;tres:&lt;br /&gt;//le SN: Le num&#233;ro de s&#233;rie du nabaztag (en fait c'est son adresse MAC)&lt;br /&gt;//le token, un code obtenu sur le site de violet&lt;br /&gt;//le tempo exprim&#233; en Hz, 10 correspond &#224; 10 occurrences par secondes.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;choreography&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Votre SN&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Votre token&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cette commande permet de remettre les oreilles en position verticale.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllEarZeroCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cette commande permet de faire tourner l' oreille gauche de 40 degr&#233;s&lt;br /&gt;//vers l'avant 6 secondes apr&#232;s le d&#233;but de la choregraphie.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addEarCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;left&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;40&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;front&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cette commande permet de faire tourner l' oreille gauche de 40 degr&#233;s&lt;br /&gt;//vers l'arri&#232;re 6 secondes apr&#232;s le d&#233;but de la choregraphie.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addEarCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;right&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;40&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;back&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cette commande permet d'alumer une DEL du lapinou&lt;br /&gt;//la couleur est au format RGB, chaque valeur est comprise entre 0 et 255.&lt;br /&gt;//$chor-&gt;addLedCommand(temps, position, R, G, B);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;top&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;left&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;middle&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;right&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;bottom&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedOFFCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cette commande permet d'&#233;teindre toutes les leds &#224; la 20eme seconde.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedOFFCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cette commande permet de remettre les oreilles en position verticale &#224;&lt;br /&gt;//la 20eme seconde.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllEarZeroCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;210&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;220&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;240&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;250&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;255&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addAllLedOFFCommand&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;260&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//on lance la chor&#233;graphie cr&#233;&#233;e.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$chor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;go&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Nous allons voir maintenant comment lire des fichiers mp3 ou un flux audio &#224; l'aide de votre nabaztag, cela est beaucoup plus simple.&lt;/p&gt; &lt;p&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;?php&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//nous commen&#231;ons par inclure les classes&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/nabaztag.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/choreography.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/retreve.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/stream.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;require_once &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;class/xmlanayser.class.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//nous cr&#233;ons l'objet choreography, il n&#233;cessite plusieurs param&#232;tres:&lt;br /&gt;//le SN: Le num&#233;ro de s&#233;rie du nabaztag (en fait c'est son adresse MAC)&lt;br /&gt;//le token, un code obtenu sur le site de violet&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stream &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;stream&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sn&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$token&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//On ajoute &#224; la playlist les musiques (qui peuvent aussi &#234;tre des webradios)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stream&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addStream&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;http://www.votre-site.fr/dossier/01.mp3&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stream&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addStream&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;http://www.votre-site.fr/dossier/02.mp3&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//on lance le flux cr&#233;&#233;e.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stream&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;go&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;/code&gt;
A suivre ...&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		
		<enclosure url="http://www.labo-caa.fr/IMG/zip/phpnab-v1.zip" length="19951" type="application/zip" />
		

	</item>
<item xml:lang="fr">
		<title>Librairie 3D pour PHP (Php/Vrml)</title>
		<link>http://www.labo-caa.fr/Librairie-3D-pour-PHP-Php-Vrml.html</link>
		<guid isPermaLink="true">http://www.labo-caa.fr/Librairie-3D-pour-PHP-Php-Vrml.html</guid>
		<dc:date>2009-05-04T17:52:00Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>caa</dc:creator>



		<description>Dans un monde ou internet est ultra pr&#233;sent, o&#249; le PHP est un langage des plus utilis&#233;, j'ai remarqu&#233; que quasiment tous les sites internet sont en deux dimensions. Cela malgr&#233; le fait que les cartes graphique deviennent de plus en plus puissantes et que tous les nouveaux jeux cr&#233;&#233;s sont en trois dimensions. Pourtant les technologies permettant d'afficher des &#233;l&#233;ments en trois dimensions dans un navigateur internet existent bel et bien, nous pouvons citer par exemple le Vrml 1.0, le Vrml 2.0 (ou (...)

-
&lt;a href="http://www.labo-caa.fr/-Projets-En-Cours-.html" rel="directory"&gt;Projets En Cours&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Dans un monde ou internet est ultra pr&#233;sent, o&#249; le PHP est un langage des plus utilis&#233;, j'ai remarqu&#233; que quasiment tous les sites internet sont en deux dimensions. Cela malgr&#233; le fait que les cartes graphique deviennent de plus en plus puissantes et que tous les nouveaux jeux cr&#233;&#233;s sont en trois dimensions.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Pourtant les technologies permettant d'afficher des &#233;l&#233;ments en trois dimensions dans un navigateur internet existent bel et bien, nous pouvons citer par exemple le Vrml 1.0, le Vrml 2.0 (ou Vrml97), x3d, Java 3D, 3DMLW&#8230;
Le Vrml ou Virtual Reality Modeling Language, est un langage permettant d'afficher des objets en en trois dimensions dont les premi&#232;res sp&#233;cifications datent de 1994. En 1997 un nouveau langage fut finalis&#233; : le Vrml97 ou Vrml 2.0 qui devint une norme ISO.&lt;/p&gt; &lt;p&gt;Le but de ce projet est de d&#233;velopper un ensemble de classes permettant de mod&#233;liser des objets en VRML. Le VRML est un langage permettant &#224; l'aide d'un plugin (VRML player de Media Machine) de visualiser des objets en 3d dans un navigateur web.&lt;/p&gt; &lt;p&gt;Attention : Il est n&#233;cessaire d'installer un player vrml comme &lt;a href='http://www.mediamachines.com/downloadplayerty.php' class='spip_out'&gt;flux Player&lt;/a&gt; de Media Machines (il est gratuit).&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Exemples&lt;/h3&gt;
&lt;p&gt;Un exemple r&#233;alisation possible :&lt;/p&gt; &lt;p&gt;Entrez ci dessous l'adresse d'un sitemap&lt;/p&gt; &lt;p&gt;&lt;iframe src=&quot;http://www.labo-caa.fr/projects/vrmlV3/index_sitemap.php&quot; width=300 height=50 scrolling=auto frameborder=0 &gt; &lt;/iframe&gt;&lt;/p&gt; &lt;p&gt;Un autre exemple :
&lt;span class='spip_document_2 spip_documents spip_documents_center' &gt;
&lt;img src='http://www.labo-caa.fr/local/cache-vignettes/L500xH293/Demo-eeb3e.jpg' width='500' height='293' alt=&quot;Demo Vrml&quot; title=&quot;Demo Vrml&quot; style='height:293px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;a href='http://www.labo-caa.fr/projects/vrmlV3/index.php' class='spip_out'&gt;Encore un autre exemple construit dynamiquement&lt;/a&gt;&lt;/p&gt; &lt;p&gt;On peux m&#234;me cr&#233;er des cartes :
&lt;span class='spip_document_3 spip_documents spip_documents_center' &gt;
&lt;img src='http://www.labo-caa.fr/local/cache-vignettes/L500xH216/map-71db2.jpg' width='500' height='216' alt=&quot;&quot; style='height:216px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Un exemple simple d'utilisation de la classe PHP Vrml :&lt;/p&gt; &lt;p&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;&lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//inclure la classe vrml&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;require &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;vrml-class/vrml.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cr&#233;er l'espace de travail&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$univers&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Vrml&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cr&#233;ation de la couleur&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$green&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;.2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;.6&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;.4&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Green&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0.200&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0.200&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cr&#233;ation du cube&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cube&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Cube&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;test&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;.25&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$green&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//ajout du cube dans l'espace de travail&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$univers&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cube&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cr&#233;ation de la couleur jaune&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$yellow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Yellow&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0.200&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0.200&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//cr&#233;ation d'une sphere jaune&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sphere&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Sphere&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Sphere&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$yellow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//d&#233;placement de la sphere de 3m vers le haut&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sphere&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addTransformation&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Translation&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//ajout de la sphere dans l'espace de travail&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$univers&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sphere&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//afficher l'espace de travail&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$univers&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Si vous &#234;tes int&#233;ress&#233; par cette librairie n'h&#233;sitez pas &#224; me laisser un message !&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		
		<enclosure url="http://www.labo-caa.fr/IMG/pdf/PHP-Vrml_v0.4.pdf" length="131810" type="application/pdf" />
		
		<enclosure url="http://www.labo-caa.fr/IMG/zip/PHP-Vrml_v0.4.zip" length="213048" type="application/zip" />
		

	</item>
<item xml:lang="fr">
		<title>D&#233;veloppement d'un outil de partage de photos</title>
		<link>http://www.labo-caa.fr/Developpement-d-un-outil-de.html</link>
		<guid isPermaLink="true">http://www.labo-caa.fr/Developpement-d-un-outil-de.html</guid>
		<dc:date>2008-08-05T15:56:07Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>caa</dc:creator>



		<description>Le but de ce projet est de r&#233;aliser un outil permettant de partager des photos entre les diff&#233;rents utilisateurs d'un site internet. Ce projet est en cours de Beta-Test. Il sera disponible bient&#244;t.

-
&lt;a href="http://www.labo-caa.fr/-Projets-En-Cours-.html" rel="directory"&gt;Projets En Cours&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Le but de ce projet est de r&#233;aliser un outil permettant de partager des photos entre les diff&#233;rents utilisateurs d'un site internet.&lt;/p&gt; &lt;p&gt;Ce projet est en cours de Beta-Test. Il sera disponible bient&#244;t.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



</channel>

</rss>
