<?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>Symfony-IT &#187; hosting</title>
	<atom:link href="http://www.symfony.it/categoria/varie/hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.symfony.it</link>
	<description>Just another Symfony Framework weblog</description>
	<lastBuildDate>Mon, 26 Jul 2010 09:23:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Symfony e Dreamhost</title>
		<link>http://www.symfony.it/articoli/30/symfony-e-dreamhost/</link>
		<comments>http://www.symfony.it/articoli/30/symfony-e-dreamhost/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 17:03:27 +0000</pubDate>
		<dc:creator>fullo</dc:creator>
				<category><![CDATA[hosting]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.symfony.it/articoli/30/symfony-e-dreamhost/</guid>
		<description><![CDATA[Utilizzare Symfony dalla shell con Dreamhost spesso porta a ricevere oscuri errori in console come il seguente: PLAIN TEXT CODE: ~/dh$ php symfony &#160; Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/user/domain.com/data/symfony/bin/symfony.php on line 42 il problema dipende dal fatto che la console dell'hosting provider utilizza php4, [...]]]></description>
			<content:encoded><![CDATA[<p>Utilizzare Symfony dalla shell con <a href="http://www.dreamhost.com/r.cgi?98914">Dreamhost</a> spesso porta a ricevere oscuri errori in console come il seguente:</p>
<div class="igBar"><span id="lcode-5"><a href="#" onclick="javascript:showPlainTxt('code-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-5">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">~/dh$ php symfony</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or <span style="color:#CC0000;">'}'</span> in /home/user/domain.<span style="">com</span>/data/symfony/bin/symfony.<span style="">php</span> on line <span style="color:#800000;color:#800000;">42</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>il problema dipende dal fatto che la console dell'hosting provider utilizza php4, anche se il vostro dominio funziona con php5.</p>
<p>Per risolverlo la soluzione più semplice è di richiamare staticamente l'interprete di php5 con il seguente percorso</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">~/dh$ /usr/local/php5/bin/php symfony </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>alternativamente è possibile crearsi un alias modificando il file <code>.bash_profile</code> del vostro utente aggiungendo la seguente riga:</p>
<div class="igBar"><span id="lcode-7"><a href="#" onclick="javascript:showPlainTxt('code-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-7">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">alias php5=<span style="color:#CC0000;">'/usr/local/php5/bin/php'</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
e richiamando quindi symfony usando la più comoda sintassi:</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showPlainTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">~/dh$ php5 symfony </div>
</li>
</ol>
</div>
</div>
</div>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.symfony.it/articoli/30/symfony-e-dreamhost/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->