<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Commentaires sur : Détecter le contexte d&#8217;exécution sous Symfony</title>
	<atom:link href="http://jerome.tamarelle.net/blog/2010/01/detecter-le-contexte-dexecution-sous-symfony/feed/" rel="self" type="application/rss+xml" />
	<link>http://jerome.tamarelle.net/blog/2010/01/detecter-le-contexte-dexecution-sous-symfony/</link>
	<description>I share so I am</description>
	<lastBuildDate>Wed, 08 Sep 2010 08:40:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Par : vdumontier</title>
		<link>http://jerome.tamarelle.net/blog/2010/01/detecter-le-contexte-dexecution-sous-symfony/comment-page-1/#comment-371</link>
		<dc:creator>vdumontier</dc:creator>
		<pubDate>Fri, 28 May 2010 13:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://jerome.tamarelle.net/blog/2010/01/75/#comment-371</guid>
		<description>Exactement ce qu&#039;il me fallait! merci.</description>
		<content:encoded><![CDATA[<p>Exactement ce qu&#8217;il me fallait! merci.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Jérôme</title>
		<link>http://jerome.tamarelle.net/blog/2010/01/detecter-le-contexte-dexecution-sous-symfony/comment-page-1/#comment-90</link>
		<dc:creator>Jérôme</dc:creator>
		<pubDate>Mon, 29 Mar 2010 03:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://jerome.tamarelle.net/blog/2010/01/75/#comment-90</guid>
		<description>Merci Saad, cette syntaxe est effectivement plus sûre. J&#039;ai modifié mon article en conséquence.</description>
		<content:encoded><![CDATA[<p>Merci Saad, cette syntaxe est effectivement plus sûre. J&#8217;ai modifié mon article en conséquence.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Saad</title>
		<link>http://jerome.tamarelle.net/blog/2010/01/detecter-le-contexte-dexecution-sous-symfony/comment-page-1/#comment-67</link>
		<dc:creator>Saad</dc:creator>
		<pubDate>Tue, 09 Mar 2010 01:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://jerome.tamarelle.net/blog/2010/01/75/#comment-67</guid>
		<description>Pour detecter REMOTE_ADDR, je prense qu&#039;il vaut mieux utiliser:
 $this-&gt;getRequest()-&gt;getRemoteAddress();</description>
		<content:encoded><![CDATA[<p>Pour detecter REMOTE_ADDR, je prense qu&#8217;il vaut mieux utiliser:<br />
 $this-&gt;getRequest()-&gt;getRemoteAddress();</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Benjamin</title>
		<link>http://jerome.tamarelle.net/blog/2010/01/detecter-le-contexte-dexecution-sous-symfony/comment-page-1/#comment-10</link>
		<dc:creator>Benjamin</dc:creator>
		<pubDate>Fri, 08 Jan 2010 11:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://jerome.tamarelle.net/blog/2010/01/75/#comment-10</guid>
		<description>dans ce cas un :

[php]if (php_uname(&#039;n&#039;) == sfConfig::get(&#039;sf_master_hostname&#039;, &#039;master&#039;))
{
}[/php]

c&#039;était pour l&#039;exemple</description>
		<content:encoded><![CDATA[<p>dans ce cas un :</p>
<pre class="brush: php;">if (php_uname('n') == sfConfig::get('sf_master_hostname', 'master'))
{
}</pre>
<p>c&#8217;était pour l&#8217;exemple</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Jérôme</title>
		<link>http://jerome.tamarelle.net/blog/2010/01/detecter-le-contexte-dexecution-sous-symfony/comment-page-1/#comment-9</link>
		<dc:creator>Jérôme</dc:creator>
		<pubDate>Fri, 08 Jan 2010 10:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://jerome.tamarelle.net/blog/2010/01/75/#comment-9</guid>
		<description>Merci Benjamin, mais saisir le nom d&#039;une machine directement dans le code rend l&#039;application moins portable. Ton contexte d&#039;exécution est donc à utiliser avec prudence.

La fonction &lt;a href=&quot;http://php.net/manual/fr/function.php-uname.php&quot; title=&quot;Documentation PHP&quot; rel=&quot;nofollow&quot;&gt;php_uname&lt;/a&gt; est effectivement riche en informations sur la machine hôte.</description>
		<content:encoded><![CDATA[<p>Merci Benjamin, mais saisir le nom d&#8217;une machine directement dans le code rend l&#8217;application moins portable. Ton contexte d&#8217;exécution est donc à utiliser avec prudence.</p>
<p>La fonction <a href="http://php.net/manual/fr/function.php-uname.php" title="Documentation PHP" rel="nofollow">php_uname</a> est effectivement riche en informations sur la machine hôte.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Benjamin</title>
		<link>http://jerome.tamarelle.net/blog/2010/01/detecter-le-contexte-dexecution-sous-symfony/comment-page-1/#comment-8</link>
		<dc:creator>Benjamin</dc:creator>
		<pubDate>Fri, 08 Jan 2010 09:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://jerome.tamarelle.net/blog/2010/01/75/#comment-8</guid>
		<description>Dans le même genre, il y a la détection d&#039;exécution sur telle ou telle machine :

[php]if (php_uname(&#039;n&#039;) == &#039;web2&#039;)
{
  // code exécuté uniquement le serveur nommé web2
}[/php]</description>
		<content:encoded><![CDATA[<p>Dans le même genre, il y a la détection d&#8217;exécution sur telle ou telle machine :</p>
<pre class="brush: php;">if (php_uname('n') == 'web2')
{
  // code exécuté uniquement le serveur nommé web2
}</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
