<?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>Agence de Développement Informatique du Nord &#187; PHP</title>
	<atom:link href="http://blog.adin.pro/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Magento &#8211; The Order State &#8220;complete&#8221; must not be set manually.</title>
		<link>http://blog.adin.pro/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/</link>
		<comments>http://blog.adin.pro/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/#comments</comments>
		<pubDate>Fri, 29 Jul 2016 12:58:38 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[state]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=519</guid>
		<description><![CDATA[<p>If you want to update order status &#038; state programmaticaly, you try this And you get this error : To fix it, use this :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/">Magento &#8211; The Order State &#8220;complete&#8221; must not be set manually.</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If you want to update order status &#038; state programmaticaly, you try this </p>
<pre class="brush: php; title: ; notranslate">
$order-&gt;setStatus(Mage_Sales_Model_Order::STATE_COMPLETE);
$order-&gt;setState(Mage_Sales_Model_Order::STATE_COMPLETE);
</pre>
<p>And you get this error :</p>
<pre class="brush: bash; title: ; notranslate">
The Order state 'complete' must not be set manually.
</pre>
<p>To fix it, use this :</p>
<pre class="brush: php; title: ; notranslate">
$order-&gt;addStatusToHistory(Mage_Sales_Model_Order::STATE_COMPLETE, &quot;Comments&quot;);
$order-&gt;setData('state', Mage_Sales_Model_Order::STATE_COMPLETE);
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/">Magento &#8211; The Order State &#8220;complete&#8221; must not be set manually.</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.</title>
		<link>http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/</link>
		<comments>http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/#comments</comments>
		<pubDate>Thu, 28 Jul 2016 09:13:21 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[FPDF]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=517</guid>
		<description><![CDATA[<p>If you ever encounter this error &#8220;FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.&#8221;, this is a version problem, FPDF library supports only PDF version 1.4 and &#8230; <a href="http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/">FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If you ever encounter this error &#8220;FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.&#8221;, this is a version problem, FPDF library supports only PDF version 1.4 and previous.</p>
<p>So, what can you do ? change PDF version with ghostscript.</p>
<p>Download it here http://www.ghostscript.com/download/gsdnld.html</p>
<p>run to change :</p>
<pre class="brush: bash; title: ; notranslate">
 ./gs-919-linux_x86_64 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=file.pdf newfile.pdf 
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/">FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; Only the &#8216;en&#8217; locale is supported. Please install the &#8216;intl&#8217; extension for full localization capabilities.</title>
		<link>http://blog.adin.pro/2015-05-30/php-only-the-en-locale-is-supported-please-install-the-intl-extension-for-full-localization-capabilities/</link>
		<comments>http://blog.adin.pro/2015-05-30/php-only-the-en-locale-is-supported-please-install-the-intl-extension-for-full-localization-capabilities/#comments</comments>
		<pubDate>Sat, 30 May 2015 13:52:04 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[intl]]></category>
		<category><![CDATA[Symfony2]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=478</guid>
		<description><![CDATA[<p>If you encounter this error message on a Symfony2 project, you just have to install php5-intl module And don&#8217;t forget to restart apache</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-05-30/php-only-the-en-locale-is-supported-please-install-the-intl-extension-for-full-localization-capabilities/">PHP &#8211; Only the &#8216;en&#8217; locale is supported. Please install the &#8216;intl&#8217; extension for full localization capabilities.</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If you encounter this error message on a Symfony2 project, you just have to install php5-intl module</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install php5-intl
</pre>
<p>And don&#8217;t forget to restart apache</p>
<pre class="brush: bash; title: ; notranslate">
service apache2 restart
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-05-30/php-only-the-en-locale-is-supported-please-install-the-intl-extension-for-full-localization-capabilities/">PHP &#8211; Only the &#8216;en&#8217; locale is supported. Please install the &#8216;intl&#8217; extension for full localization capabilities.</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2015-05-30/php-only-the-en-locale-is-supported-please-install-the-intl-extension-for-full-localization-capabilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP format date</title>
		<link>http://blog.adin.pro/2015-03-02/php-format-date/</link>
		<comments>http://blog.adin.pro/2015-03-02/php-format-date/#comments</comments>
		<pubDate>Mon, 02 Mar 2015 14:37:04 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[format]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=457</guid>
		<description><![CDATA[<p>Here the easiest way to format a date in PHP</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-03-02/php-format-date/">PHP format date</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Here the easiest way to format a date in PHP</p>
<pre class="brush: php; title: ; notranslate">
$date = DateTime::createFromFormat('Y-m-d',$_address-&gt;getShippingDate());
echo $date-&gt;format('d/m/Y');
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-03-02/php-format-date/">PHP format date</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2015-03-02/php-format-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP define constants with arrays</title>
		<link>http://blog.adin.pro/2015-01-14/php-define-constants-with-arrays/</link>
		<comments>http://blog.adin.pro/2015-01-14/php-define-constants-with-arrays/#comments</comments>
		<pubDate>Wed, 14 Jan 2015 09:30:18 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[constant]]></category>
		<category><![CDATA[define]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=445</guid>
		<description><![CDATA[<p>You need to define a constant containing an array but the code below doesn&#8217;t work ? You get an error : To define an use a constant containing an array you can simply serialize it :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-01-14/php-define-constants-with-arrays/">PHP define constants with arrays</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>You need to define a constant containing an array but the code below doesn&#8217;t work ?</p>
<pre class="brush: php; title: ; notranslate">
define('FILTER_ECOLE', array('price, categorie, niveau'));
</pre>
<p>You get an error :</p>
<pre class="brush: php; title: ; notranslate">
Notice: Use of undefined constant FILTER_ECOLE - assumed 'FILTER_ECOLE'  in /home/www/adin/app/code/local/Adin/Catalog/Block/Nav/Catalog/Layer/View/Sidebar.php on line 50
</pre>
<p>To define an use a constant containing an array you can simply serialize it :</p>
<pre class="brush: php; title: ; notranslate">
#define
define('FILTER_ECOLE', serialize(array('price, categorie, niveau')));

#use
$filter = unserialize(FILTER_ECOLE);
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-01-14/php-define-constants-with-arrays/">PHP define constants with arrays</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2015-01-14/php-define-constants-with-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; add a new action in grid</title>
		<link>http://blog.adin.pro/2014-08-20/magento-add-a-new-action-in-grid/</link>
		<comments>http://blog.adin.pro/2014-08-20/magento-add-a-new-action-in-grid/#comments</comments>
		<pubDate>Wed, 20 Aug 2014 08:27:13 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[Override]]></category>
		<category><![CDATA[_preparecolumns]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=398</guid>
		<description><![CDATA[<p>Here, how to add new action in grid like &#8216;Edit&#8217; link at admin grid. On this example, we will add a &#8220;schedule&#8221; action in product admin grid. We will overrite this class /app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php. Declare the rewrite class on the /app/code/local/Adin/Catalog/etc/config.xml &#8230; <a href="http://blog.adin.pro/2014-08-20/magento-add-a-new-action-in-grid/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-08-20/magento-add-a-new-action-in-grid/">Magento &#8211; add a new action in grid</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Here, how to add new action in grid like &#8216;Edit&#8217; link at admin grid.<br />
On this example, we will add a &#8220;schedule&#8221; action in product admin grid.</p>
<p>We will overrite this class /app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php.</p>
<p>Declare the rewrite class on the /app/code/local/Adin/Catalog/etc/config.xml<br />
and add</p>
<pre class="brush: xml; title: ; notranslate">
&lt;global&gt;
      &lt;blocks&gt;
            &lt;adminhtml&gt;
                &lt;rewrite&gt;
                    &lt;catalog_product_grid&gt;Adin_Catalog_Block_Adminhtml_Catalog_Product_Grid&lt;/catalog_product_grid&gt;
                &lt;/rewrite&gt;
            &lt;/adminhtml&gt;
        &lt;/blocks&gt;
&lt;/global&gt;
</pre>
<p>Then create your rewritted class /app/code/local/Adin/Catalog/Block/Adminhtml/Catalog/Product/Grid.php.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
class Adin_Catalog_Block_Adminhtml_Catalog_Product_Grid extends Mage_Adminhtml_Block_Catalog_Product_Grid {
}
?&gt;
</pre>
<p>Now, rewrite the _prepareColumns() function, find the &#8216;action&#8217; column an add an entry in the actions array</p>
<pre class="brush: php; title: ; notranslate">
  $this-&gt;addColumn('action',
            array(
                'header'    =&gt; Mage::helper('catalog')-&gt;__('Action'),
                'width'     =&gt; '50px',
                'type'      =&gt; 'action',
                'getter'     =&gt; 'getId',
                'actions'   =&gt; array(
                    array(
                        'caption' =&gt; Mage::helper('catalog')-&gt;__('Edit'),
                        'url'     =&gt; array(
                            'base'=&gt;'*/*/edit',
                            'params'=&gt;array('store'=&gt;$this-&gt;getRequest()-&gt;getParam('store'))
                        ),
                        'field'   =&gt; 'id'
                    ),
                    array(
                        'caption' =&gt; Mage::helper('catalog')-&gt;__('Schedule'),
                        'url'     =&gt; array(
                            'base'=&gt;'*/*/schedule',
                            'params'=&gt;array('store'=&gt;$this-&gt;getRequest()-&gt;getParam('store'))
                        ),
                        'field'   =&gt; 'id'
                    ),
                ),
                'filter'    =&gt; false,
                'sortable'  =&gt; false,
                'index'     =&gt; 'stores',
            ));
</pre>
<p>In our example, we just add this part</p>
<pre class="brush: php; title: ; notranslate">
array(
                        'caption' =&gt; Mage::helper('catalog')-&gt;__('Schedule'),
                        'url'     =&gt; array(
                            'base'=&gt;'*/*/schedule',
                            'params'=&gt;array('store'=&gt;$this-&gt;getRequest()-&gt;getParam('store'))
                        ),
                        'field'   =&gt; 'id'
                    ),
</pre>
<p>One last thing, at the end of the _prepareColumns function, change</p>
<pre class="brush: php; title: ; notranslate">
return parent::_prepareColumns();
</pre>
<p>by</p>
<pre class="brush: php; title: ; notranslate">
return Mage_Adminhtml_Block_Widget_Grid::_prepareColumns();
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-08-20/magento-add-a-new-action-in-grid/">Magento &#8211; add a new action in grid</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2014-08-20/magento-add-a-new-action-in-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; Use of undefined constant MCRYPT_BLOWFISH &#8211; assumed &#8216;MCRYPT_BLOWFISH</title>
		<link>http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/</link>
		<comments>http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/#comments</comments>
		<pubDate>Thu, 07 Aug 2014 12:45:43 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[module]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=393</guid>
		<description><![CDATA[<p>While your coding session, you encounter this error : You think, easy, a module should be missing on my php So you install it : And restart apache. But it still doesn&#8217;t work. In phpinfo() it seems the module is &#8230; <a href="http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/">PHP &#8211; Use of undefined constant MCRYPT_BLOWFISH &#8211; assumed &#8216;MCRYPT_BLOWFISH</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>While your coding session, you encounter this error :</p>
<pre class="brush: bash; title: ; notranslate">
Use of undefined constant MCRYPT_BLOWFISH - assumed 'MCRYPT_BLOWFISH
</pre>
<p>You think, easy, a module should be missing on my php<br />
So you install it :</p>
<pre class="brush: bash; title: ; notranslate">
sudo apt-get install php5-mcrypt
</pre>
<p>And restart apache.</p>
<p>But it still doesn&#8217;t work. In phpinfo() it seems the module is not installed.</p>
<p>In fact with the new version of PHP, you still need to activate the module</p>
<pre class="brush: bash; title: ; notranslate">
php5enmod -s apache2 mcrypt
</pre>
<p>The restart apache and the module should work.</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/">PHP &#8211; Use of undefined constant MCRYPT_BLOWFISH &#8211; assumed &#8216;MCRYPT_BLOWFISH</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using GnuPG with PHP</title>
		<link>http://blog.adin.pro/2014-02-10/using-gnupg-with-php/</link>
		<comments>http://blog.adin.pro/2014-02-10/using-gnupg-with-php/#comments</comments>
		<pubDate>Mon, 10 Feb 2014 16:05:17 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[GnuPG]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=355</guid>
		<description><![CDATA[<p>GnuPG is a great tool to encrypt texts and files and you can use it with PHP, only if you install it succesfully. First, you will get this error : Fatal error: Class &#8216;gnupg&#8217; not found in &#8230;. OK the &#8230; <a href="http://blog.adin.pro/2014-02-10/using-gnupg-with-php/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-02-10/using-gnupg-with-php/">Using GnuPG with PHP</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>GnuPG is a great tool to encrypt texts and files and you can use it with PHP, only if you install it succesfully.</p>
<p>First, you will get this error : Fatal error: Class &#8216;gnupg&#8217; not found in &#8230;.</p>
<p>OK the lib is not installed, do it with pecl</p>
<pre class="brush: bash; title: ; notranslate">
pecl install gnupg
</pre>
<p>But you will also have this error :</p>
<pre class="brush: bash; title: ; notranslate">
configure: error: Please reinstall the gpgme distribution
ERROR: `/tmp/pear/temp/gnupg/configure' failed
</pre>
<p>You need to install the libgpgme too !!!</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install libgpgme11-dev
</pre>
<p>Now retry to install gnupg</p>
<pre class="brush: bash; title: ; notranslate">
pecl install gnupg
</pre>
<p>It should be OK.</p>
<p>Don&#8217;t forget to modify your php.ini file to load the extension</p>
<pre class="brush: bash; title: ; notranslate">
extension=gnupg.so
</pre>
<p>And of course, restart your apache web server</p>
<pre class="brush: bash; title: ; notranslate">
/etc/init.d/apache2 restart
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-02-10/using-gnupg-with-php/">Using GnuPG with PHP</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2014-02-10/using-gnupg-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP form limited to 1000 fields</title>
		<link>http://blog.adin.pro/2013-11-15/php-form-limited-to-1000-fields/</link>
		<comments>http://blog.adin.pro/2013-11-15/php-form-limited-to-1000-fields/#comments</comments>
		<pubDate>Fri, 15 Nov 2013 11:04:56 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[suhison]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=323</guid>
		<description><![CDATA[<p>Since PHP 5.3.9 form are limited to 1000 fields by default. To fix it, you can edit your php.ini file and modify this variable And don&#8217;t forget to restart apache. You can also edit it in your .htaccess file Change &#8230; <a href="http://blog.adin.pro/2013-11-15/php-form-limited-to-1000-fields/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-11-15/php-form-limited-to-1000-fields/">PHP form limited to 1000 fields</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Since PHP 5.3.9 form are limited to 1000 fields by default.<br />
To fix it, you can edit your php.ini file and modify this variable</p>
<pre class="brush: bash; title: ; notranslate">
max_input_vars = 4000
</pre>
<p>And don&#8217;t forget to restart apache.</p>
<p>You can also edit it in your .htaccess file</p>
<pre class="brush: bash; title: ; notranslate">
 php_value max_input_vars 4000 
</pre>
<p>Change it directly in your php file with this</p>
<pre class="brush: bash; title: ; notranslate">
 ini_set('php_value max_input_vars', 4000); 
</pre>
<p>won&#8217;t work.</p>
<p>But change this varible may not fix your issue.<br />
If you have suhosin installed, you laso have to edit his configuration file (/etc/php5/apache2/conf.d/suhosin.ini)</p>
<pre class="brush: bash; title: ; notranslate">
suhosin.get.max_vars = 4000 
suhosin.post.max_vars = 4000 
suhosin.request.max_vars = 4000 
</pre>
<p>To check your suhison configuration, use phpinfo() or in your php script</p>
<pre class="brush: bash; title: ; notranslate">
echo ini_get('suhosin.post.max_vars');
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-11-15/php-form-limited-to-1000-fields/">PHP form limited to 1000 fields</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2013-11-15/php-form-limited-to-1000-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP check email validity</title>
		<link>http://blog.adin.pro/2013-10-23/php-check-email-validity/</link>
		<comments>http://blog.adin.pro/2013-10-23/php-check-email-validity/#comments</comments>
		<pubDate>Wed, 23 Oct 2013 08:39:29 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=316</guid>
		<description><![CDATA[<p>The easiest and safest way to check email address validity is to use the php embedded function filter_var() :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-10-23/php-check-email-validity/">PHP check email validity</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>The easiest and safest way to check email address validity is to use the php embedded function filter_var() :</p>
<pre class="brush: php; title: ; notranslate">
if(!filter_var($email, FILTER_VALIDATE_EMAIL))
{
  //invalid email
}
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-10-23/php-check-email-validity/">PHP check email validity</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2013-10-23/php-check-email-validity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
