Rechercher : dans
Par :

[php]changer <title> en fonction de la page

Dernière réponse le 10 aoû 2006 à 10:10:21 maxime_B, le 9 aoû 2006 à 16:37:56 
 Signaler ce message aux modérateurs

Salut

j'utilise des inlcude et donc le <title> de chaque page est le même...

comment donner un <title> différent pour chaque page???

merci

Meilleures réponses pour « [php]changer en fonction de la page</span> » dans :</a><div class="bloc_tabs" id="bloc_tab_pages"><ul class="bloc_tab"><li><a href="#" onclick="$('bloc_tab_pages').className='bloc_tabs hide';$('bloc_tab_answer').className='blocs_tabs selected'; return false;">Cette page</a></li><li class="active"><a href="/s/php-changer-title-en-fonction-de-la-page" rel="nofollow" onclick="return false;">Tout le site</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=faq" rel="nofollow" onclick="$('bloc_tab_pages').className='bloc_tabs hide';$('bloc_tab_faq').className='blocs_tabs selected'; return false;">Astuces</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=forum" rel="nofollow" onclick="$('bloc_tab_pages').className='bloc_tabs hide';$('bloc_tab_forum').className='blocs_tabs selected'; return false;">Forum</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=download" rel="nofollow" onclick="$('bloc_tab_pages').className='bloc_tabs hide';$('bloc_tab_download').className='blocs_tabs selected'; return false;">Téléchargements</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=articles" rel="nofollow" onclick="$('bloc_tab_pages').className='bloc_tabs hide';$('bloc_tab_articles').className='blocs_tabs selected'; return false;">Articles</a></li></ul><div class="result" id="pages_result"><div class="similiitem"><div class="resitem"><a href="/forum/affich-2540014-titre-dynamique-changer-le-titre-des-pages" class="title"> [titre dynamique] changer le titre des pages <span>Voir</span></a> </div></div><div class="similiitem"><div class="resitem"><a href="/contents/php/phpmail.php3" class="title"> PHP - Mail et fonctions réseau <span>Voir</span></a> <span class="description">PHP étant un langage consacré au Web, il possède bien évidemment des fonctions lui permettant de communiquer avec le "monde extérieur" à l'aide de fonctions standards. Le service le plus utilisé sur Internet étant la messagerie électronique, il est...</span> </div></div><div class="similiitem"><div class="resitem"><a href="/forum/affich-2208067-php-appeler-une-fonction-javascript" class="title"> [PHP] Appeler une fonction javascript <span>Voir</span></a> </div></div></div></div><div class="bloc_tabs" id="bloc_tab_faq"><ul class="bloc_tab"><li><a href="#" onclick=" $('bloc_tab_faq').className='bloc_tabs hide';$('bloc_tab_answer').className='blocs_tabs selected'; return false;">Cette page</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page" rel="nofollow" onclick="$('bloc_tab_faq').className='bloc_tabs hide';$('bloc_tab_pages').className='blocs_tabs selected';return false;">Tout le site</a></li><li class="active"><a href="/s/php-changer-title-en-fonction-de-la-page?section=faq" rel="nofollow" onclick="return false;">Astuces</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=forum" rel="nofollow" onclick="$('bloc_tab_faq').className='bloc_tabs hide';$('bloc_tab_forum').className='blocs_tabs selected';return false;">Forum</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=download" rel="nofollow" onclick="$('bloc_tab_faq').className='bloc_tabs hide';$('bloc_tab_download').className='blocs_tabs selected';return false;">Téléchargements</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=articles" rel="nofollow" onclick="$('bloc_tab_faq').className='bloc_tabs hide';$('bloc_tab_articles').className='blocs_tabs selected';return false;">Articles</a></li></ul><div class="result" id="faq_result"><div class="similiitem"><div class="resitem"><a href="/faq/sujet-878-php-rediriger-sur-une-autre-page-redirection" class="title"> [PHP] Rediriger sur une autre page (redirection) <span>Voir</span></a> </div></div><div class="similiitem"><div class="resitem"><a href="/faq/sujet-4469-webmaster-afficher-facilement-le-code-php-xhtml-de-vos-pages" class="title"> [Webmaster] Afficher facilement le code php/xhtml de vos pages <span>Voir</span></a><span class="description">Si vous voulez proposer a vos visiteurs de voir la source de vos fichiers (PHP ou HTML), il y a plusieurs solutions. En php Afficher le code php Afficher le code html En html Informations Voir aussi En php Afficher le code php La...</span> </div></div><div class="similiitem"><div class="resitem"><a href="/faq/sujet-7971-installation-rapide-de-lamp-apache-mysql-php-sous-linux" class="title"> Installation rapide de LAMP (Apache+MySql+php) sous Linux <span>Voir</span></a><span class="description">LAMP = Linux+Apache+MySql+Php. C'est le serveur web par excellence. L'ensemble est facile à installer. Installation rapide sudo aptitude install apache2 php5 mysql-server php5-mysql libapache2-mod-php5 Le mot de passe administrateur mySQL...</span> </div></div></div></div><div class="bloc_tabs" id="bloc_tab_forum"><ul class="bloc_tab"><li><a href="#" onclick=" $('bloc_tab_forum').className='bloc_tabs hide';$('bloc_tab_answer').className='blocs_tabs selected'; return false;">Cette page</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page" rel="nofollow" onclick="$('bloc_tab_forum').className='bloc_tabs hide';$('bloc_tab_pages').className='blocs_tabs selected';return false;">Tout le site</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=faq" rel="nofollow" onclick="$('bloc_tab_forum').className='bloc_tabs hide';$('bloc_tab_faq').className='blocs_tabs selected';return false;">Astuces</a></li><li class="active"><a href="/s/php-changer-title-en-fonction-de-la-page?section=forum" rel="nofollow" onclick="return false;">Forum</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=download" rel="nofollow" onclick="$('bloc_tab_forum').className='bloc_tabs hide';$('bloc_tab_download').className='blocs_tabs selected';return false;">Téléchargements</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=articles" rel="nofollow" onclick="$('bloc_tab_forum').className='bloc_tabs hide';$('bloc_tab_articles').className='blocs_tabs selected';return false;">Articles</a></li></ul><div class="result" id="forum_result"><div class="similiitem"><div class="resitem"><a href="/forum/affich-1725468-php-changer-la-valeur-d-une-variable-avec-u" class="title"> [php] changer la valeur d'une variable avec u <span>Voir</span></a> </div></div><div class="similiitem"><div class="resitem"><a href="/forum/affich-12703515-recuperer-la-valeur-d-une-variable-php" class="title"> Récupérer la valeur d'une variable php (Résolu) <span>Voir</span></a> </div></div><div class="similiitem"><div class="resitem"><a href="/forum/affich-13029971-code-php-pour-convertir-une-page-html-en-pdf" class="title"> Code php pour convertir une page html en pdf <span>Voir</span></a> </div></div></div></div><div class="bloc_tabs" id="bloc_tab_download"><ul class="bloc_tab"><li><a href="#" onclick=" $('bloc_tab_download').className='bloc_tabs hide';$('bloc_tab_answer').className='blocs_tabs selected'; return false;">Cette page</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page" rel="nofollow" onclick="$('bloc_tab_download').className='bloc_tabs hide';$('bloc_tab_pages').className='blocs_tabs selected';return false;">Tout le site</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=faq" rel="nofollow" onclick="$('bloc_tab_download').className='bloc_tabs hide';$('bloc_tab_faq').className='blocs_tabs selected';return false;">Astuces</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=forum" rel="nofollow" onclick="$('bloc_tab_download').className='bloc_tabs hide';$('bloc_tab_forum').className='blocs_tabs selected';return false;">Forum</a></li><li class="active"><a href="/s/php-changer-title-en-fonction-de-la-page?section=download" rel="nofollow" onclick="return false;">Téléchargements</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=articles" rel="nofollow" onclick="$('bloc_tab_download').className='bloc_tabs hide';$('bloc_tab_articles').className='blocs_tabs selected';return false;">Articles</a></li></ul><div class="result" id="download_result"><div class="similiitem"><div class="resitem"><a href="/telecharger/telecharger-34058093-php-ftp-synchronizer" class="title"> Télécharger PHP FTP Synchronizer <span>Voir</span></a><span class="description">La mise à jour de site web est aussi complexe que sa conception. Alors il faut utiliser le bon outil avec les bon paramètres et une bonne connaissance de programmation pour mettre à jour un site. PHP FTP Synchronizer est une application vous...</span> </div></div></div></div><div class="bloc_tabs" id="bloc_tab_articles"><ul class="bloc_tab"><li><a href="#" onclick=" $('bloc_tab_articles').className='bloc_tabs hide';$('bloc_tab_answer').className='blocs_tabs selected'; return false;">Cette page</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page" rel="nofollow" onclick="$('bloc_tab_articles').className='bloc_tabs hide';$('bloc_tab_pages').className='blocs_tabs selected';return false;">Tout le site</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=faq" rel="nofollow" onclick="$('bloc_tab_articles').className='bloc_tabs hide';$('bloc_tab_faq').className='blocs_tabs selected';return false;">Astuces</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=forum" rel="nofollow" onclick="$('bloc_tab_articles').className='bloc_tabs hide';$('bloc_tab_forum').className='blocs_tabs selected';return false;">Forum</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=download" rel="nofollow" onclick="$('bloc_tab_articles').className='bloc_tabs hide';$('bloc_tab_download').className='blocs_tabs selected';return false;">Téléchargements</a></li><li class="active"><a href="/s/php-changer-title-en-fonction-de-la-page?section=articles" rel="nofollow" onclick="return false;">Articles</a></li></ul><div class="result" id="articles_result"><div class="similiitem"><div class="resitem"><a href="/contents/php/phpimg.php3" class="title"> PHP - Génération d'images <span>Voir</span></a><span class="description">Prérequis PHP permet de créer des images au format GIF à l'aide d'une librairie de fonctions prévue à cet effet. La librairie permettant de créer et manipuler des fichiers graphiques se nomme GD, ainsi, pour pouvoir utiliser ces fonctions il faut...</span> </div></div><div class="similiitem"><div class="resitem"><a href="/contents/php/phpaffich.php3" class="title"> PHP - Affichage de texte sur le navigateur <span>Voir</span></a><span class="description">Le but de PHP est de permettre la création de pages web dynamiques, ainsi son but premier est de pouvoir envoyer des données au navigateur. Les trois fonctions standards PHP fournit 3 fonctions permettant d'envoyer du texte au navigateur. Ces...</span> </div></div><div class="similiitem"><div class="resitem"><a href="/contents/php/phpfonc.php3" class="title"> PHP - Les fonctions <span>Voir</span></a><span class="description">La notion de fonction On appelle fonction un sous-programme qui permet d'effectuer un ensemble d'instructions par simple appel de la fonction dans le corps du programme principal. Les fonctions permettent d'exécuter dans plusieurs parties du...</span> </div></div></div></div><div class="bloc_tabs selected" id="bloc_tab_answer"><ul class="bloc_tab"><li class="active"><a href="#" rel="nofollow" onclick="return false;">Cette page</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page" rel="nofollow" onclick="$('bloc_tab_answer').className='bloc_tabs hide';$('bloc_tab_pages').className='blocs_tabs selected';return false;">Tout le site</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=faq" rel="nofollow" onclick="$('bloc_tab_answer').className='bloc_tabs hide';$('bloc_tab_faq').className='blocs_tabs selected';return false;">Astuces</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=forum" rel="nofollow" onclick="$('bloc_tab_answer').className='bloc_tabs hide';$('bloc_tab_forum').className='blocs_tabs selected';return false;">Forum</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=download" rel="nofollow" onclick="$('bloc_tab_answer').className='bloc_tabs hide';$('bloc_tab_download').className='blocs_tabs selected';return false;">Téléchargements</a></li><li><a href="/s/php-changer-title-en-fonction-de-la-page?section=articles" rel="nofollow" onclick="$('bloc_tab_answer').className='bloc_tabs hide';$('bloc_tab_articles').className='blocs_tabs selected';return false;">Articles</a></li></ul><div class="result" id="articles_result"><div class="bloc_09" id="bloc_forum_best_answers"><ul><li><a href="/forum/affich-2333048-php-changer-title-en-fonction-de-la-page#p2333062" rel="nofollow">Ben tu passes ta variable dans l'URL par exemple, et tu fais <title><?= <span>Lire la suite</span></a><div class="rating1"> </div></li></ul></div></div></div><script type="text/javascript"> //<![CDATA[ q = refk(); if($('seeallanswers')&&q&&q!=' ') { $('seeallanswers').href='/s/'+escape(q); $('seeallanswerstxt').innerHTML=q; } //]]> </script></div><div class="bloc_forum_actions2"><a href="/forum/forum-24?Acces=1#ecrire" rel="nofollow" class="button2"><span class="button2">Posez votre question</span></a> <a href="/forum/affich-2333048-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="button"><span class="button">Répondre</span></a></div><div id="linkbox"><script type="text/javascript" language="JavaScript1.1"> sas_pageid='10987/81904'; sas_formatid='4788'; // Format : 673*100 link box 673x100 sas_target=''; SmartAdServer(sas_pageid,sas_formatid,sas_target); </script></div><div class="bloc_25 solved"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr valign="top"><td class="actions"></td><td class="answer_1"><div class="bhead"><p class="num"><a href="#1" name="1">1</a><a name="p2333062" class="postid"> </a></p><a href="#2" rel="nofollow" class="next" onmouseover="BulleWrite('Message suivant',event);" onmouseout="BulleHide();"></a><a href="#0" class="back" onmouseover="BulleWrite('Message précédent',event);" onmouseout="BulleHide ();"></a><span class="action_03"></span><a href="/communaute/profil-Darshu" onmouseover="BulleWrite(String.fromCharCode(60)+'img src=\'/template/blocs/bloc_54/xphoto.jpg\' alt=\'Darshu\' style=\'float:left\' /'+String.fromCharCode(62)+'306 message(s) posté(s) depuis le '+'lundi 30 janvier 2006'+'',event);" onmouseout="BulleHide ();" class="pseudo">Darshu</a>, le <span> 9 aoû 2006 à 16:55:50</span></div><div class="bcontent_on" id="c2333062"><ul class="options"><li><b id="n2333062" class="nbeval">+1</b></li><li><a class="action_02_on" id="t2333062" rel="nofollow" href="#" onclick="new Ajax.Updater('p2333062', '/remote/forum_evaluer.php3', { method: 'get', parameters: 'ID=2333062&evaluation=utile', evalScripts : true } );return false;" onmouseover="BulleWrite(''+'1 personne a trouvé ce message utile - Ce message vous semble utile, votez !',event);" onmouseout="BulleHide ();"></a></li><li><a class="action_01" id="s2333062" href="#" onclick="new Ajax.Updater('p2333062', '/remote/forum_evaluer.php3', { method: 'get', parameters: 'ID=2333062&evaluation=inutile', evalScripts : true } );return false;" onmouseover="BulleWrite('Ce message ne vous semble pas utile, votez !',event);" onmouseout="BulleHide ();"></a></li><li><a href="/forum/alert.php3?ID=2333062&Acces=1&subID=1" class="action_04" onmouseover="BulleWrite('Signaler ce message aux modérateurs',event);" onmouseout="BulleHide ();" rel="nofollow"></a></li></ul><div class="" id="limit2333062"><div class="limit"><div class="content"><p>Ben tu passes ta variable dans l'URL par exemple, et tu fais <pre><title><?= $variable ?></title></pre>Ou alors, tu as un "catalogue" de lien et fait un str_replace() ... Enfin les solutions sont nombreuses, certaines permettant au visiteur malin de modifier le titre, d'autres pas ... <br /> <span class='signature'> <br />T'as pensé à regarder sur Google avant de poser ta question ? </span></p></div></div><a href="#" class="more" id="more2333062" onclick="$('limit2333062').className = ''; return false;"></a></div></div><script type="text/javascript"> <!-- if($('c2333062').offsetHeight>500){ $('limit2333062').className="limiter"; $('more2333062').innerHTML="<span>Lire la suite</span>"; } //--></script><div class="actions"><a href="#top" class="action_07" onmouseover="BulleWrite('Haut de la page',event);" onmouseout="BulleHide();"> </a> <a href="/forum/affich-2333048-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="action_09" onmouseover="BulleWrite('Bas de la page (continuer la discussion)',event);" onmouseout="BulleHide();"> </a></div><a href="/forum/affich-2333062-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="action_repondre_on" id="r2333062">Répondre à Darshu</a><div class="bloc_25bis"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr valign="top"><td class="actions"></td><td class="answer_1"><div class="bhead"><p class="num"><a href="#2" name="2">2</a><a name="p2333163" class="postid"> </a></p><a href="#3" rel="nofollow" class="next" onmouseover="BulleWrite('Message suivant',event);" onmouseout="BulleHide();"></a><a href="#1" rel="nofollow" class="back" onmouseover="BulleWrite('Message précédent',event);" onmouseout="BulleHide ();"></a><span class="action_03"></span><a href="/communaute/profil-maxime_B" onmouseover="BulleWrite(String.fromCharCode(60)+'img src=\'/template/blocs/bloc_54/xphoto.jpg\' alt=\'maxime_B\' style=\'float:left\' /'+String.fromCharCode(62)+'832 message(s) posté(s) depuis le '+'mardi 14 juin 2005'+'',event);" onmouseout="BulleHide ();" class="pseudo">maxime_B</a>, le <span> 9 aoû 2006 à 18:19:14</span></div><div class="bcontent" id="c2333163"><ul class="options"><li><b id="n2333163" class="nbeval"></b></li><li><a class="action_02" id="t2333163" rel="nofollow" href="#" onclick="new Ajax.Updater('p2333163', '/remote/forum_evaluer.php3', { method: 'get', parameters: 'ID=2333163&evaluation=utile', evalScripts : true } );return false;" onmouseover="BulleWrite('Ce message vous semble utile, votez !',event);" onmouseout="BulleHide ();"></a></li><li><a class="action_01_off" id="s2333163" href="#" onclick="new Ajax.Updater('p2333163', '/remote/forum_evaluer.php3', { method: 'get', parameters: 'ID=2333163&evaluation=inutile', evalScripts : true } );return false;" onmouseover="BulleWrite('Ce message ne vous semble pas utile, votez !',event);" onmouseout="BulleHide ();"></a></li><li><a href="/forum/alert.php3?ID=2333163&Acces=1&subID=2" class="action_04" onmouseover="BulleWrite('Signaler ce message aux modérateurs',event);" onmouseout="BulleHide ();" rel="nofollow"></a></li></ul><div class="" id="limit2333163"><div class="limit"><div class="content"><p>Bon ok <br /> <br />la solution qui ne permet pas au visiteur malin de modifier le titre...</p></div></div><a href="#" class="more" id="more2333163" onclick="$('limit2333163').className = ''; return false;"></a></div></div><script type="text/javascript"> <!-- if($('c2333163').offsetHeight>500){ $('limit2333163').className="limiter"; $('more2333163').innerHTML="<span>Lire la suite</span>"; } //--></script><div class="actions"><a href="#top" class="action_07" onmouseover="BulleWrite('Haut de la page',event);" onmouseout="BulleHide();"> </a> <a href="/forum/affich-2333048-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="action_09" onmouseover="BulleWrite('Bas de la page (continuer la discussion)',event);" onmouseout="BulleHide();"> </a></div><a href="/forum/affich-2333163-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="action_repondre" id="r2333163">Répondre à maxime_B</a></td></tr></tbody></table></div><div class="bloc_25bis"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr valign="top"><td class="actions"></td><td class="answer_1"><div class="bhead"><p class="num"><a href="#3" name="3">3</a><a name="p2333681" class="postid"> </a></p><a href="#4" rel="nofollow" class="next" onmouseover="BulleWrite('Message suivant',event);" onmouseout="BulleHide();"></a><a href="#2" rel="nofollow" class="back" onmouseover="BulleWrite('Message précédent',event);" onmouseout="BulleHide ();"></a><span class="action_03"></span><a href="/communaute/profil-Darshu" onmouseover="BulleWrite(String.fromCharCode(60)+'img src=\'/template/blocs/bloc_54/xphoto.jpg\' alt=\'Darshu\' style=\'float:left\' /'+String.fromCharCode(62)+'306 message(s) posté(s) depuis le '+'lundi 30 janvier 2006'+'',event);" onmouseout="BulleHide ();" class="pseudo">Darshu</a>, le <span>10 aoû 2006 à 09:16:49</span></div><div class="bcontent" id="c2333681"><ul class="options"><li><b id="n2333681" class="nbeval"></b></li><li><a class="action_02" id="t2333681" rel="nofollow" href="#" onclick="new Ajax.Updater('p2333681', '/remote/forum_evaluer.php3', { method: 'get', parameters: 'ID=2333681&evaluation=utile', evalScripts : true } );return false;" onmouseover="BulleWrite('Ce message vous semble utile, votez !',event);" onmouseout="BulleHide ();"></a></li><li><a class="action_01_off" id="s2333681" href="#" onclick="new Ajax.Updater('p2333681', '/remote/forum_evaluer.php3', { method: 'get', parameters: 'ID=2333681&evaluation=inutile', evalScripts : true } );return false;" onmouseover="BulleWrite('Ce message ne vous semble pas utile, votez !',event);" onmouseout="BulleHide ();"></a></li><li><a href="/forum/alert.php3?ID=2333681&Acces=1&subID=3" class="action_04" onmouseover="BulleWrite('Signaler ce message aux modérateurs',event);" onmouseout="BulleHide ();" rel="nofollow"></a></li></ul><div class="" id="limit2333681"><div class="limit"><div class="content"><p>Ben si t'a genre une page centrale index.php dans laquelle tu fais tes include, tu fais juste un $titre = str_replace($chaine_a_changer,$chaine_remplacante,$variable_­passée_dans_l'url); <br /> <br /> A savoir que str_replace peut s'utiliser avec des tableaux ! Lis la doc détaillée ici <a href='http://www.php.net/str_replace' target='_blank' rel='nofollow'>http://www.php.net/str_replace</a> (toujours aller faire un tour sur php.net/fonction quand on veut découvrir comment marche une fonction !) <br /> <span class='signature'> <br />T'as pensé à regarder sur Google avant de poser ta question ­? </span></p></div></div><a href="#" class="more" id="more2333681" onclick="$('limit2333681').className = ''; return false;"></a></div></div><script type="text/javascript"> <!-- if($('c2333681').offsetHeight>500){ $('limit2333681').className="limiter"; $('more2333681').innerHTML="<span>Lire la suite</span>"; } //--></script><div class="actions"><a href="#top" class="action_07" onmouseover="BulleWrite('Haut de la page',event);" onmouseout="BulleHide();"> </a> <a href="/forum/affich-2333048-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="action_09" onmouseover="BulleWrite('Bas de la page (continuer la discussion)',event);" onmouseout="BulleHide();"> </a></div><a href="/forum/affich-2333681-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="action_repondre" id="r2333681">Répondre à Darshu</a><div class="bloc_25bis"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr valign="top"><td class="actions"></td><td class="answer_1"><div class="bhead"><p class="numlast"><a href="#4" name="4">4</a><a name="p2333731" class="postid"> </a></p><span class="vide"> </span><a href="#3" rel="nofollow" class="back" onmouseover="BulleWrite('Message précédent',event);" onmouseout="BulleHide ();"></a><span class="action_03"></span><a href="/communaute/profil-maxime_B" onmouseover="BulleWrite(String.fromCharCode(60)+'img src=\'/template/blocs/bloc_54/xphoto.jpg\' alt=\'maxime_B\' style=\'float:left\' /'+String.fromCharCode(62)+'832 message(s) posté(s) depuis le '+'mardi 14 juin 2005'+'',event);" onmouseout="BulleHide ();" class="pseudo">maxime_B</a>, le <span>10 aoû 2006 à 10:10:21</span></div><div class="bcontent" id="c2333731"><ul class="options"><li><b id="n2333731" class="nbeval"></b></li><li><a class="action_02" id="t2333731" rel="nofollow" href="#" onclick="new Ajax.Updater('p2333731', '/remote/forum_evaluer.php3', { method: 'get', parameters: 'ID=2333731&evaluation=utile', evalScripts : true } );return false;" onmouseover="BulleWrite('Ce message vous semble utile, votez !',event);" onmouseout="BulleHide ();"></a></li><li><a class="action_01_off" id="s2333731" href="#" onclick="new Ajax.Updater('p2333731', '/remote/forum_evaluer.php3', { method: 'get', parameters: 'ID=2333731&evaluation=inutile', evalScripts : true } );return false;" onmouseover="BulleWrite('Ce message ne vous semble pas utile, votez !',event);" onmouseout="BulleHide ();"></a></li><li><a href="/forum/alert.php3?ID=2333731&Acces=1&subID=4" class="action_04" onmouseover="BulleWrite('Signaler ce message aux modérateurs',event);" onmouseout="BulleHide ();" rel="nofollow"></a></li></ul><div class="" id="limit2333731"><div class="limit"><div class="content"><p>Bon ok je vais essayer de bien comprendre cette fonction <br /> <br />merci <br /> <br />a+</p></div></div><a href="#" class="more" id="more2333731" onclick="$('limit2333731').className = ''; return false;"></a></div></div><script type="text/javascript"> <!-- if($('c2333731').offsetHeight>500){ $('limit2333731').className="limiter"; $('more2333731').innerHTML="<span>Lire la suite</span>"; } //--></script><div class="actions"><a href="#top" class="action_07" onmouseover="BulleWrite('Haut de la page',event);" onmouseout="BulleHide();"> </a> <a href="/forum/affich-2333048-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="action_09" onmouseover="BulleWrite('Bas de la page (continuer la discussion)',event);" onmouseout="BulleHide();"> </a></div><a href="/forum/affich-2333731-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="action_repondre" id="r2333731">Répondre à maxime_B</a></td></tr></tbody></table></div></td></tr></tbody></table></div></td></tr></tbody></table></div><div class="adsense"><div><script type="text/javascript"><!-- google_ad_client = "pub-6969989765125400"; google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_language = "fr"; google_ad_type = "text"; google_ad_channel ="0"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "025EB3"; google_color_text = "000000"; google_color_url = "000000"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div><div><script type="text/javascript"><!-- google_ad_client = "pub-6969989765125400"; google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_language = "fr"; google_ad_type = "text"; google_ad_channel ="0"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "025EB3"; google_color_text = "000000"; google_color_url = "000000"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div></div><div class="bloc_forum_actions2"><a href="/forum/forum-24?Acces=1#ecrire" rel="nofollow" class="button2"><span class="button2">Posez votre question</span></a> <a href="/forum/affich-2333048-php-changer-title-en-fonction-de-la-page?Acces=1#ecrire" rel="nofollow" class="button"><span class="button">Répondre</span></a></div><div style="float:left"><a name="ecrire"></a></div></div></div><div id="col_right"><div id="shortcuts"></div><div class="bloc_11"><script type="text/javascript"> <!-- var plus ='<span>Plus</span>';var moins ='<span>Moins</span>'; //--> </script><div class="widget"><div id="similishowhide" class="hide"><span class="titre">A voir également </span><div class="results" id="simili_container"><ul><li class="last forum"><a href="/forum/affich-197114-chargement-d-une-autre-page-en-php" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Changer de page en php" alt="Changer de page en php"/></a> <a href="/s/Changer+de+page+en+php" rel="nofollow"><span>Changer de page en php</span></a></li> <li class="last forum"><a href="/forum/affich-5065178-word-2007-pb-numerotation-de-pages" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Changer debut numerotation pages document office 2007" alt="Changer debut numerotation pages document office 2007"/></a> <a href="/s/Changer+debut+numerotation+pages+document+office+2007" rel="nofollow"><span>Changer debut numerotation pages document office 2007</span></a></li> <li class="last forum"><a href="/forum/affich-4645935-javascript-formulaire-dynamique" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Changer formulaire en fonction choix php" alt="Changer formulaire en fonction choix php"/></a> <a href="/s/Changer+formulaire+en+fonction+choix+php" rel="nofollow"><span>Changer formulaire en fonction choix php</span></a></li> <li class="last forum"><a href="/forum/affich-3503735-changer-la-couleur-sous-ms-dos" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Changer le site page démarrages en commande de ms dos" alt="Changer le site page démarrages en commande de ms dos"/></a> <a href="/s/Changer+le+site+page+d%E9marrages+en+commande+de+ms+dos" rel="nofollow"><span>Changer le site page démarrages en commande de ms dos</span></a></li> <li class="last forum"><a href="/forum/affich-2973640-impossible-de-changer-ma-page-d-acceuil" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Changer ma page de démarrage" alt="Changer ma page de démarrage"/></a> <a href="/s/Changer+ma+page+de+d%E9marrage" rel="nofollow"><span>Changer ma page de démarrage</span></a></li> <li class="last forum"><a href="/forum/affich-7156381-php-fonction-split" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Equivalent php de la fonction split de javascript" alt="Equivalent php de la fonction split de javascript"/></a> <a href="/s/Equivalent+php+de+la+fonction+split+de+javascript" rel="nofollow"><span>Equivalent php de la fonction split de javascript</span></a></li> <li class=" forum"><a href="/forum/affich-4169888-fonction-n-de-page-sur-excel" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Excel fonction page" alt="Excel fonction page"/></a> <a href="/s/Excel+fonction+page" rel="nofollow"><span>Excel fonction page</span></a></li> <li class="last forum"><a href="/forum/affich-7523592-php-tableau-implode-explode" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Php "tableau de fonction"" alt="Php "tableau de fonction""/></a> <a href="/s/Php+%22tableau+de+fonction%22" rel="nofollow"><span>Php "tableau de fonction"</span></a></li> <li class=" forum"><a href="/forum/affich-1654471-onglet-et-php-html" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Php affichage de la page onglet" alt="Php affichage de la page onglet"/></a> <a href="/s/Php+affichage+de+la+page+onglet" rel="nofollow"><span>Php affichage de la page onglet</span></a></li> <li class="last forum"><a href="/forum/affich-6800334-appel-d-une-fonction-incluse-dans-un-fichier" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Php appel à fonction au dessu de la fonction" alt="Php appel à fonction au dessu de la fonction"/></a> <a href="/s/Php+appel+%E0+fonction+au+dessu+de+la+fonction" rel="nofollow"><span>Php appel à fonction au dessu de la fonction</span></a></li> <li class="last forum"><a href="/forum/affich-2690057-probleme-renommer-un-fichier-en-php" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Php changer nom fichier upload" alt="Php changer nom fichier upload"/></a> <a href="/s/Php+changer+nom+fichier+upload" rel="nofollow"><span>Php changer nom fichier upload</span></a></li> <li class=" content"><a href="/contents/php/phpclass.php3" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Php class appeler fonction dans fonction" alt="Php class appeler fonction dans fonction"/></a> <a href="/s/Php+class+appeler+fonction+dans+fonction" rel="nofollow"><span>Php class appeler fonction dans fonction</span></a></li> <li class="last forum"><a href="/forum/affich-293326-prob-de-rafraichissement-d-une-page-en-php" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Php rafraichissement de la page" alt="Php rafraichissement de la page"/></a> <a href="/s/Php+rafraichissement+de+la+page" rel="nofollow"><span>Php rafraichissement de la page</span></a></li> <li class=" forum"><a href="/forum/affich-2266318-php-recuperer-le-code-source-d-une-page-web" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Php recuperer code source page" alt="Php recuperer code source page"/></a> <a href="/s/Php+recuperer+code+source+page" rel="nofollow"><span>Php recuperer code source page</span></a></li> <li class=" forum"><a href="/forum/affich-2540014-titre-dynamique-changer-le-titre-des-pages" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Php titre de la page" alt="Php titre de la page"/></a> <a href="/s/Php+titre+de+la+page" rel="nofollow"><span>Php titre de la page</span></a></li> <li class=" forum"><a href="/forum/affich-11706589-probleme-taille-fenetre-code-html" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Position relative change la taille page" alt="Position relative change la taille page"/></a> <a href="/s/Position+relative+change+la+taille+page" rel="nofollow"><span>Position relative change la taille page</span></a></li> <li class="last content"><a href="/contents/web/referencement.php3" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Que choisir pour title des pages html" alt="Que choisir pour title des pages html"/></a> <a href="/s/Que+choisir+pour+title+des+pages+html" rel="nofollow"><span>Que choisir pour title des pages html</span></a></li> <li class="last forum"><a href="/forum/affich-1419128-modifier-un-css-avec-du-javascript" class="img"><img src="/img/pixeltransparent.gif?200909" width="16" height="16" title="Site php changer le css" alt="Site php changer le css"/></a> <a href="/s/Site+php+changer+le+css" rel="nofollow"><span>Site php changer le css</span></a></li></ul></div><a href="#" onclick="if($('similishowhide').className=='hide'){ $('similishowhide').className='show';$('similishowhidelink').innerHTML=moins;} else{ $('similishowhide').className='hide';$('similishowhidelink').innerHTML=plus;} return false" id="similishowhidelink" title="Plus / Moins"><span>Plus</span></a></div></div><script type="text/javascript"> //<![CDATA[ q=refk();if(q==''){ q = "[php]changer <title> en fonction de la page"; } if($('simili_container')&&q&&q!=' ') { a = document.createElement('a'); a.setAttribute('href','/s/'+escape(q)); a.className='fake'; a.innerHTML = q.charAt(0).toUpperCase() + q.substr(1); $('simili_container').insertBefore(a,$('simili_container').firstChild); } h_j(q,$('similishowhide')); //]]> </script></div><div class="bloc_09" id="bloc_middle"><script type="text/javascript"> <!-- sas_pageid='10987/81904'; sas_formatid=4784; sas_target=''; SmartAdServer(sas_pageid,sas_formatid,sas_target); //--> </script></div><div id="needhelp"><div class="widget"><span class="titre">Ils ont besoin de votre aide</span><ul><li class="options"><a href="/rss/rss_forum_sans_reponses.php3" class="rss"><span>RSS</span></a><a href="#" class="prefs" onclick="new Ajax.Updater('needhelp', '/remote/needhelp.php3', { method: 'get', parameters: 'needhelp_prefs=1', evalScripts : true } );return false;">Options</a></li><li><span>15:00</span> <a href="/forum/affich-15362810-pokemon">Pokemon</a> (<a href="/forum/forum-19-jeux-video">Jeux vidéo</a>)</li><li><span>15:00</span> <a href="/forum/affich-15362809-on-ma-hacker">on ma hacker</a> (<a href="/forum/forum-19-jeux-video">Jeux vidéo</a>)</li><li><span>15:00</span> <a href="/forum/affich-15362803-in-cd-ne-fonctionne-pas-sous-windows-7">In Cd ne fonctionne pas sous Windows 7</a> (<a href="/forum/forum-11-windows">Windows</a>)</li><li><span>15:00</span> <a href="/forum/affich-15362801-mail-avec-un-son-d-ambiance">mail avec un son d'ambiance</a> (<a href="/forum/forum-27-messagerie-chat">Messagerie/Chat</a>)</li><li class="more"><a href="/forum/sans-reponses?" title="Tous les messages sans réponse"><span>Tous les messages sans réponse</span></a></li></ul><span class="shadow"></span></div><script type="text/javascript"> <!-- new Ajax.Updater('needhelp','/remote/needhelp.php3',{ method : 'get', evalScripts : false }); //--> </script></div><div class="bloc_09" style="margin-bottom:10px"><a target="_blank" rel="nofollow" href="http://www3.smartadserver.com/call/cliccommand/2420017/[timestamp]?"><img src="http://static.commentcamarche.net/www.commentcamarche.net/pictures/BannerSUPINFO2.gif" alt=""/></a><img src="http://www3.smartadserver.com/call/pubimppixel/2424538/[timestamp]?" border="0" width="1" height="1" alt=""/></div><div id="bloc_sponsor" class="bloc_09"><script type="text/javascript"> sas_pageid='10987/81904'; sas_formatid=4787; sas_target=''; SmartAdServer(sas_pageid,sas_formatid,sas_target); </script></div><div class="widget" id="interview"><span class="titre">Les interviews exclusives</span><ul><li class="options"></li><li class="interview"><a class="photo" style="background:url(http://static.commentcamarche.net/www.commentcamarche.net/actualites/images/5850424t.jpg) no-repeat 50% 50%" href="/news/5850424-freddy-mini-netvibes-nous-offrons-un-resume-de-la-vie-digitale"><span>Freddy Mini, Netvibes : « Nous offrons un résumé de la vie digitale »</span></a><strong><a href="/news/5850424-freddy-mini-netvibes-nous-offrons-un-resume-de-la-vie-digitale">Freddy Mini, Netvibes : « Nous offrons un résumé de la vie digitale »</a></strong></li><li class="more"><a title="Plus d'interviews" href="/news/interviews-7-actus"><span>Plus d'interviews</span></a></li></ul><span class="shadow"></span></div><div id="widget_collection" class="widget"><span class="titre">Collection CommentÇaMarche.net</span><ul id="livre_couv" class="livre0"><li id="couv"><a href="/livre/ccm.php3" id="livre_pic" style="background:url(http://static.commentcamarche.net/www.commentcamarche.net/livre/images/9782100511778tiny.jpg?20090911) 50% 50% no-repeat"><span>Consulter la collection CommentÇaMarche.net</span></a></li><li><a id="l0" style="url(http://static.commentcamarche.net/www.commentcamarche.net/livre/images/0mini.png?20090911) left top no-repeat" onmouseover="$('couv').border='blue';$('livre_couv').className='livre0';$('livre_pic').style.background='url(http://static.commentcamarche.net/www.commentcamarche.net/livre/images/9782100511778tiny.jpg?20090911)';" href="/livre/ccm.php3?livre=9782100511778#r9782100511778" title="Pour être à la pointe du Net">Tout sur le Web 2.0</a><br/>par Capucine Cousin</li><li><a id="l1" style="url(http://static.commentcamarche.net/www.commentcamarche.net/livre/images/1mini.png?20090911) left top no-repeat" onmouseover="$('couv').border='blue';$('livre_couv').className='livre1';$('livre_pic').style.background='url(http://static.commentcamarche.net/www.commentcamarche.net/livre/images/9782100521623tiny.jpg?20090911)';" href="/livre/ccm.php3?livre=9782100521623#r9782100521623" title="Comprendre les menaces pour mieux s’en protéger">Tout sur la sécurité informatique (2e édition)</a><br/>par J-F Pillou / Jean-Philippe Bay</li><li><a id="l2" style="url(http://static.commentcamarche.net/www.commentcamarche.net/livre/images/2mini.png?20090911) left top no-repeat" onmouseover="$('couv').border='blue';$('livre_couv').className='livre2';$('livre_pic').style.background='url(http://static.commentcamarche.net/www.commentcamarche.net/livre/images/9782100522859tiny.jpg?20090911)';" href="/livre/ccm.php3?livre=9782100522859#r9782100522859" title="">Tout sur les e-outils pour les TPE - PME</a><br/>par Jean-Philippe Élie</li><li class="more"><a href="/livre/ccm.php3" title="Plus de livres"><span>Plus de livres</span></a></li></ul><span class="shadow"></span></div></div></div></div></div><div id="footer"> <div id="bottom"> <ul class="noBorder"> <li>CommentCaMarche Network <ul> <li><a href="http://www.commentcamarche.net" lang="fr">CommentCaMarche.net</a></li> <li><a href="http://en.kioskea.net" lang="en">en.kioskea.net</a></li> <li><a href="http://es.kioskea.net" lang="es">es.kioskea.net</a></li> <li><a href="http://de.kioskea.net" lang="de">de.kioskea.net</a></li> <li><a href="http://pt.kioskea.net" lang="pt">pt.kioskea.net</a></li> <li><a href="http://it.kioskea.net" lang="it">it.kioskea.net</a></li> <li><a href="http://droit-finances.commentcamarche.net" lang="fr">Droit-Finances.net</a></li> <li><a href="http://sante-medecine.commentcamarche.net" lang="fr">Sante-Medecine.net</a></li> <li><a href="http://www.supinfo.com" rel="nofollow">SUPINFO, école d'ingénieurs</a></li> </ul> </li> </ul> <ul class="footerBorder"> <li>Raccourcis <ul> <li><a href="/contents/ccmguide/cgu-conditions-generales.php3">Conditions générales</a></li> <li><a href="/contents/ccmguide/ccmintro.php3">A propos</a></li> <li><a href="/contact/">Contact</a></li> <li><a href="/contents/ccmguide/ccmcharte.php3">Charte</a></li> <li><a href="/telecharger/?top=50">Top 50</a></li> <li><a href="/partenaires/">Partenaires</a></li> </ul> </li> </ul> <ul class="footerBorder"> <li> Glossaire <div id="glossary"> <a href="/index/a">A</a> <a href="/index/b">B</a> <a href="/index/c">C</a> <a href="/index/d">D</a> <a href="/index/e">E</a> <a href="/index/f">F</a> <a href="/index/g">G</a> <a href="/index/h">H</a> <a href="/index/i">I</a> <a href="/index/j">J</a> <a href="/index/k">K</a> <a href="/index/l">L</a> <a href="/index/m">M</a> <a href="/index/n">N</a> <a href="/index/o">O</a> <a href="/index/p">P</a> <a href="/index/q">Q</a> <a href="/index/r">R</a> <a href="/index/s">S</a> <a href="/index/t">T</a> <a href="/index/u">U</a> <a href="/index/v">V</a> <a href="/index/w">W</a> <a href="/index/x">X</a> <a href="/index/y">Y</a> <a href="/index/z">Z</a> <a href="/index/0" class="buttonLarge">0-9</a> </div> </li> </ul> <div class="footerBorder"> <form action="/communaute/inscription.php3" class="headerFooter"> <fieldset> <legend>Inscription gratuite</legend> <input type="text" class="search" name="email" value="email" onfocus="select()" /> <input type="button" class="submit" value="OK" /> </fieldset> </form> <div id="join_social"><a href="http://www.facebook.com/commentcamarche" id="join_facebook" target="_blank"><img src="/public/_skin/_common/img/facebook.png" alt="Facebook"></a><a href="http://www.twitter.com/commentcamarche" id="join_twitter" target="_blank"><img src="/public/_skin/_common/img/twitter.png" alt="Twitter"></a></div></div> <div class="spacer"> </div> </div> </div><SCRIPT LANGUAGE="JavaScript1.1"> sas_pageid='10987/81904'; sas_formatid=4783; // Format : DHTML 1x1 (Popup, Flash Transp, ...) 1x1 sas_target=''; // Targeting SmartAdServer(sas_pageid,sas_formatid,sas_target); </SCRIPT><noscript> <a href="http://www3.smartadserver.com/call/pubjumpi/10987/81914/4783/S/[timestamp]/?"> <img src="http://www3.smartadserver.com/call/pubi/10987/81914/4783/S/[timestamp]/?" border="0" alt="" /></a> </noscript><script type="text/javascript"> <!-- xtnv = document; xtsd = "http://logc15"; xtsite = "254140"; xtn2 = "1"; xtpage = "forum::affich-2333048-php-changer-title-en-fonction-de-la-page"; xtdmc = ".commentcamarche.net"; xtprm = ""; //--> </script><script type="text/javascript" src="http://static.commentcamarche.net/www.commentcamarche.net/remote/xiti.js"></script><noscript><img width="1" height="1" src="http://logc15.xiti.com/hit.xiti?s=254140&p=forum%3A%3Aaffich-2333048-php-changer-title-en-fonction-de-la-page&s2=1" alt="" /></noscript><script type="text/javascript" src="http://www.commentcamarche.net/metriweb/mwtag.php3"></script><script type="text/javascript"> var keyword = "/forum/affich-2333048-php-changer-title-en-fonction-de-la-page"; var extra = "fr"; metriwebTag ("ccm", keyword, extra); </script><script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-6560367-1"); pageTracker._trackPageview(); } catch(err) {}</script></body> </html>