<?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>Docs Jmini &#187; apache</title>
	<atom:link href="http://docs.jmini.fr/mot-cle/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://docs.jmini.fr</link>
	<description>docs.jmini.fr</description>
	<lastBuildDate>Thu, 18 Feb 2010 09:47:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Réglages PHP sous Mac OS X</title>
		<link>http://docs.jmini.fr/memo/reglages-php-mac-osx</link>
		<comments>http://docs.jmini.fr/memo/reglages-php-mac-osx#comments</comments>
		<pubDate>Mon, 21 Sep 2009 13:39:57 +0000</pubDate>
		<dc:creator>Jérémie Bresson</dc:creator>
				<category><![CDATA[Memo]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://docs.jmini.fr/?p=97</guid>
		<description><![CDATA[En plus des réglages pour , j&#8217;ai modifié le fichier quelques réglages dans le fichier de configuration de PHP (php.ini).
Dans Mac OS X, ce fichier est à l&#8217;adresse : /private/etc/php.ini
Pour avec le super utilisateur, taper dans le terminal :
error_reporting
Par défaut, PHP est configuré pour afficher toutes les erreurs sans les remarques et avertissements (non fatales) [...]]]></description>
			<content:encoded><![CDATA[<p>En plus des réglages pour <a href="http://docs.jmini.fr/notes/mac-os-x-un-serveur-lamp" title="Mac OS X : un serveur LAMP ?">utiliser PHP sous Mac OS X</a>, j&#8217;ai modifié le fichier quelques réglages dans le fichier de configuration de PHP (php.ini).<br />
Dans Mac OS X, ce fichier est à l&#8217;adresse : <strong>/private/etc/php.ini</strong></p>
<p>Pour<a href="http://docs.jmini.fr/notes/editer-fichier-texte-terminal" title="Éditer un fichier texte avec le terminal"> éditer le fichier dans le terminal</a> avec le super utilisateur, taper dans le terminal :<br />
<div class="markCode"><div class="boxCode"><code>sudo nano /private/etc/php.ini</code></div></div></p>
<h3>error_reporting</h3>
<p>Par défaut, PHP est configuré pour afficher toutes les erreurs sans les remarques et avertissements (non fatales) :<br />
<div class="markCode"><div class="boxCode"><code>error_reporting = E_ALL &#038; ~E_NOTICE</code></div></div></p>
<p>Suivant les conseils donnés dans <a href="http://alexandre.alapetite.fr/doc-alex/apache-php/apache2-php5.html" title="Configuration Apache2.2 PHP5.2 - Doc Alex">cet article</a>, j&#8217;ai passé la ligne d&#8217;error_reporting à :<br />
<div class="markCode"><div class="boxCode"><code>error_reporting = E_ALL | E_STRICT</code></div></div></p>
<p>Ce réglage permet selon moi de mieux débugguer son code (en effet, souvent les avertissements donnés sont justifiés et je n&#8217;aime pas l&#8217;aspect trop permissif de PHP &#8211; comme le fait de pouvoir utilisé une variable non initialisée par exemple).</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.jmini.fr/memo/reglages-php-mac-osx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
