<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Darklg Blog &#187; url</title>
	<atom:link href="http://darklg.me/tag/url/feed/" rel="self" type="application/rss+xml" />
	<link>http://darklg.me</link>
	<description>Intégration, développement web, SEO, caféine</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:09:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Web en Vrac du 11 janvier 2009</title>
		<link>http://darklg.me/2009/01/web-en-vrac-11-janvier-2009/</link>
		<comments>http://darklg.me/2009/01/web-en-vrac-11-janvier-2009/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 17:55:34 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Web en Vrac]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[veille]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=216</guid>
		<description><![CDATA[Un petit r&#233;sum&#233; de ce que j&#8217;ai vu d&#8217;int&#233;ressant sur le Web ces derniers temps : Paroles de blogs &#8211; Episode 19Le nouvel &#233;pisode du podcast des geeks Google&#8217;s New Favicon (Again)Les go&#251;ts et les couleurs &#8230; Google r&#233;pond &#224; la presseReadWriteWeb relate une interview d&#039;Eric Schmidt, le CEO de Google, qui se d&#233;douane des [...]]]></description>
			<content:encoded><![CDATA[<p>Un petit r&eacute;sum&eacute; de ce que j&#8217;ai vu d&#8217;int&eacute;ressant sur le Web ces derniers temps :</p>
<p><strong><a href="http://www.presse-citron.net/paroles-de-blogs-episode-19">Paroles de blogs &#8211; Episode 19</a></strong><br />Le nouvel &eacute;pisode du podcast des geeks <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong><a href="http://blogoscoped.com/archive/2009-01-09-n48.html">Google&#8217;s New Favicon (Again)</a></strong><br />Les go&ucirc;ts et les couleurs &#8230;</p>
<p><strong><a href="http://fr.readwriteweb.com/2009/01/11/a-la-une/google-repond-a-la-presse/">Google r&eacute;pond &agrave; la presse</a></strong><br />ReadWriteWeb relate une interview d&#039;Eric Schmidt, le CEO de Google, qui se d&eacute;douane des probl&egrave;mes de la presse.</p>
<p><strong><a href="http://www.ghacks.net/2009/01/09/installing-fonts-in-linux/">Installing Fonts in Linux</a></strong><br />Un article de Ghacks qui peut vous servir <img src='http://darklg.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong><a href="http://www.chouingmedia.com/$blog/2009/01/09/journaliste_vs_blogueur__la_difference_reside_dans_lobligation_ou_non_de_produire">Journaliste vs blogueur : la diff&eacute;rence r&eacute;side dans l&#8217;obligation (ou non) de produire</a></strong><br />Un article de ChouingMedia plut&ocirc;t instructif <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong><a href="http://www.readwriteweb.com/archives/short_urls_for_google.php">Short URLs for Google</a></strong><br />ReadWriteWeb nous pr&eacute;sente un service sympathique : raccourcir une requ&ecirc;te google. A voir, mais je doute de l&#039;utilit&eacute; du service <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong><a href="http://blog.doudzz.fr/227-oui-aller-travailler-est-completement-inutile">OUI, Aller Travailler est compl&egrave;tement inutile</a></strong><br />DoudzZ &eacute;voque ma nouvelle cr&eacute;ation : <a href="http://inutiles.info">Inutiles.info</a></p>
<p><strong><a href="http://www.dailyblogtips.com/best-internet-marketing-and-seo-posts-of-2008/">Best Internet Marketing and SEO Posts of 2008</a></strong><br />Une s&eacute;lection simple mais ultra-efficace par DailyBlogTips des meilleurs posts SEO de 2008. A lire absolument <img src='http://darklg.me/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong><a href="http://bababillgates.free.fr/index.php/seo-mobile-principes-et-conseils/">SEO Mobile : Principes et Conseils</a></strong><br />Un article efficace de SEOman avec des pistes &agrave; suivre concernant le r&eacute;f&eacute;rencement d&#039;un site mobile.</p>
<p><strong><a href="http://www.travailleursduweb.com/2009/01/09/construire-un-flux-rss-video-podcast-video.html">Construire un flux RSS Vid&eacute;o&hellip; podcast Vid&eacute;o</a></strong><br />Le blog Travailleurs Du Web nous propose une explication parfaite pour lancer son podcast vid&eacute;o.</p>
<p><strong><a href="http://www.clubic.com/actualite-250142-mal-voyants-pointent-doigt-ecran-tactile.html">Les malvoyants pointent du doigt l&#8217;&eacute;cran tactile</a></strong><br />Clubic nous rappelle que certains ne peuvent pas b&eacute;n&eacute;ficier des am&eacute;liorations ergonomiques des t&eacute;l&eacute;phones r&eacute;cents, tels que l&#039;iPhone.</p>
<p><strong><a href="http://www.problogger.net/archives/2009/01/10/how-to-launch-a-blog-and-have-fresh-content-for-weeks/">How to Launch a Blog and Have Fresh Content for Weeks</a></strong><br />Vous souhaitez commencer un nouveau blog ? Problogger vous propose ses meilleurs conseils pour le lancement de votre nouveau b&eacute;b&eacute; <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong><a href="http://www.smashingmagazine.com/2009/01/09/tweetbacks-plugin-for-wordpress/">Introducing Tweetbacks Plugin for WordPress</a></strong><br />Smashing Magazine nous pr&eacute;sente un plugin int&eacute;ressant pour recenser les tweets ayant &eacute;voqu&eacute; un article, sur le principe du trackback. A voir si les performances sont au rendez-vous, et si ce dernier reconnait les tinyurl like <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2009/01/web-en-vrac-11-janvier-2009/">Web en Vrac du 11 janvier 2009</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Web+en+Vrac+du+11+janvier+2009&amp;url=http://darklg.me/2009/01/web-en-vrac-11-janvier-2009/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2009/01/web-en-vrac-11-janvier-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nettoyer une chaine pour une URL, en PHP</title>
		<link>http://darklg.me/2008/07/nettoyer-une-chaine-pour-une-url-en-php/</link>
		<comments>http://darklg.me/2008/07/nettoyer-une-chaine-pour-une-url-en-php/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 15:58:05 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Référencement]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=94</guid>
		<description><![CDATA[Un problème simple peut parfois se poser à vous : Vous disposez d&#8217;une chaîne de caractères ( un titre d&#8217;article, par exemple ), que vous souhaitez utiliser pour une URL. Malheureusement, vous ne pouvez pas utiliser directement cette chaine de caractères, qui ne serait pas optimisée pour le référencement, et très peu lisible. C&#8217;est là [...]]]></description>
			<content:encoded><![CDATA[<p>Un problème simple peut parfois se poser à vous :<br />
Vous disposez d&#8217;une chaîne de caractères ( un titre d&#8217;article, par exemple ), que vous souhaitez utiliser pour une URL. <strong>Malheureusement</strong>, vous ne pouvez pas utiliser directement cette chaine de caractères, qui ne serait pas optimisée pour le référencement, et très peu lisible.</p>
<p>C&#8217;est là qu&#8217;intervient la fonction <strong>clear_url()</strong>. Cette dernière nettoie votre chaine, et en retourne une propre et optimisée, pour une url, un identifiant, etc <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> clean_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$texte</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">//Suppression des espaces en début et fin de chaîne</span>
	<span style="color: #000088;">$texte</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$texte</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Suppression des accents</span>
	<span style="color: #000088;">$texte</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$texte</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËéèêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//mise en minuscule</span>
	<span style="color: #000088;">$texte</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$texte</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Suppression des espaces et caracteres spéciaux</span>
	<span style="color: #000088;">$texte</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span><span style="color: #000088;">$texte</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$texte</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#([^a-z0-9-])#'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span><span style="color: #000088;">$texte</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Suppression des tirets multiples</span>
	<span style="color: #000088;">$texte</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#([-]+)#'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span><span style="color: #000088;">$texte</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Suppression du premier caractère si c'est un tiret</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$texte</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'-'</span><span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$texte</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$texte</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Suppression du dernier caractère si c'est un tiret</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$texte</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'-'</span><span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$texte</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$texte</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$texte</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Elle peut être optimisée ( en virant les étapes intermédiaires ), mais est fonctionnelle et plutôt utile <img src='http://darklg.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Si vous avez une optimisation à partager, <strong>n&#8217;hésitez pas</strong> <img src='http://darklg.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2008/07/nettoyer-une-chaine-pour-une-url-en-php/">Nettoyer une chaine pour une URL, en PHP</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Nettoyer+une+chaine+pour+une+URL%2C+en+PHP&amp;url=http://darklg.me/2008/07/nettoyer-une-chaine-pour-une-url-en-php/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2008/07/nettoyer-une-chaine-pour-une-url-en-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

