<?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>Niccolo Favari - NFstudio &#187; PHP</title> <atom:link href="http://www.niccolofavari.com/categoria/sviluppo-web/php/feed" rel="self" type="application/rss+xml" /><link>http://www.niccolofavari.com</link> <description>Development, Design and Communication on the Web</description> <lastBuildDate>Fri, 13 Aug 2010 14:11:56 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Enable cURL PHP extension with XAMPP on Windows XP</title><link>http://www.niccolofavari.com/enable-curl-php-extension-with-xampp-on-windows-xp</link> <comments>http://www.niccolofavari.com/enable-curl-php-extension-with-xampp-on-windows-xp#comments</comments> <pubDate>Sun, 02 May 2010 21:08:42 +0000</pubDate> <dc:creator>Niccolò Favari</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[cURL]]></category> <category><![CDATA[XAMPP]]></category><guid isPermaLink="false">http://www.niccolofavari.com/?p=426</guid> <description><![CDATA[How to enable the cURL PHP extension with XAMPP on Windows. <a href="http://www.niccolofavari.com/enable-curl-php-extension-with-xampp-on-windows-xp">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 5px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.niccolofavari.com%2Fenable-curl-php-extension-with-xampp-on-windows-xp"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.niccolofavari.com%2Fenable-curl-php-extension-with-xampp-on-windows-xp&amp;source=NiccoloFavari&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br /> </a></div><p>You may need to enable the cURL extension in your XAMPP setup, just like I had to do to install <a href="http://www.magentocommerce.com">Magento</a> locally.</p><blockquote><p>curl is a command line tool for transferring data with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3 and RTSP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos&#8230;), file transfer resume, proxy tunneling and a busload of other useful tricks.</p></blockquote><h3>Get cURL working with XAMPP</h3><p>Just 3 easy steps.</p><ul><li>Locate and open your <code>php.ini</code> file (if not sure open the url <code>http://localhost/xampp/phpinfo.php</code>, and search for the line <code>Loaded Configuration File</code>). Mine was in <code>C:\xampp\php\php.ini</code>.</li><li>Near line 952, uncomment <code>extension=php_curl.dll</code> (remove the semicolon).</li><li>Restart the Apache web server.</li></ul><p>Now you should be able to use cURL PHP extension with XAMPP on Windows.</p> ]]></content:encoded> <wfw:commentRss>http://www.niccolofavari.com/enable-curl-php-extension-with-xampp-on-windows-xp/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Configure XDebug with Bitnami PHP Stacks on Linux Ubuntu</title><link>http://www.niccolofavari.com/configure-xdebug-with-bitnami-php-stacks-on-linux-ubuntu</link> <comments>http://www.niccolofavari.com/configure-xdebug-with-bitnami-php-stacks-on-linux-ubuntu#comments</comments> <pubDate>Tue, 19 Jan 2010 08:30:28 +0000</pubDate> <dc:creator>Niccolò Favari</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[bitnami]]></category> <category><![CDATA[lamp]]></category> <category><![CDATA[lapp]]></category> <category><![CDATA[netbeans]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[xdebug]]></category><guid isPermaLink="false">http://www.niccolofavari.com/?p=247</guid> <description><![CDATA[These are the exact steps I used to get XDebug to work with Bitnami on Ubuntu Linux. <a href="http://www.niccolofavari.com/configure-xdebug-with-bitnami-php-stacks-on-linux-ubuntu">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 5px;"> <a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.niccolofavari.com%2Fconfigure-xdebug-with-bitnami-php-stacks-on-linux-ubuntu"><br /> <img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.niccolofavari.com%2Fconfigure-xdebug-with-bitnami-php-stacks-on-linux-ubuntu&amp;source=NiccoloFavari&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br /> </a></div><p>Fact is that if you want to develop something more than a dynamic menu in php, you&#8217;re going to need a debugger. You&#8217;re going to need it badly and you don&#8217;t even know it (shame on you!).</p><p>So let&#8217;s start from the beginning. You got <a href="http://bitnami.org/">bitnami</a> <a href="http://bitnami.org/stack/lappstack">lapp</a> (or <a href="http://bitnami.org/stack/lampstack">lamp</a>) stack because it&#8217;s cool and doesn&#8217;t need so much configuration (if any at all). So you&#8217;re basically ready to start coding.</p><p>You realize you need a debugger. You search for it and you find out about <a href="http://xdebug.org">xdebug</a>. Cool. Then you approach the <a href="http://xdebug.org/download.php">Xdebug download page</a> and you see only sources and many windows binaries. Not cool.</p><h4>Getting XDebug to work on Ubuntu Linux with the Bitnami Stacks</h4><p>You want the fast, easy way. Here it is.</p><p>Fire up a terminal window.<br /> Type in</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-dev php-pear</pre></div></div><p>Don&#8217;t worry, it won&#8217;t mess your system up. It won&#8217;t conflict with the Bitnami stuff. Go ahead and do it.<br /> Then type</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pecl <span style="color: #c20cb9; font-weight: bold;">install</span> xdebug</pre></div></div><p>It <em>should</em> compile a nice file called something like <code>xdebug.so</code>.<br /> You want to locate that file so type</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-name</span> <span style="color: #ff0000;">'xdebug.so'</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></div></div><p>Note down the path (probably something like <code>/usr/lib/php5/20060613+lfs/xdebug.so</code>).<br /> Now copy that file from that path to your bitnami php extensions folder.<br /> Something like this</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">20060613</span>+lfs<span style="color: #000000; font-weight: bold;">/</span>xdebug.so <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>your<span style="color: #000000; font-weight: bold;">/</span>lappstack<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>extensions</pre></div></div><p>Now there&#8217;s some editing:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>your<span style="color: #000000; font-weight: bold;">/</span>lappstack<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php.ini</pre></div></div><p> and type in the following at the end of the file.</p><div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">zend_extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/path/to/your/lappstack/php/lib/php/extensions/xdebug.so</span>
xdebug.remote_enable<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span>
xdebug.remote_handler<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">dbgp</span>
xdebug.remote_mode<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">req</span>
xdebug.remote_host<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">127.0.0.1</span>
xdebug.remote_port<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">9000</span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>ZendModules<span style="">&#93;</span></span>
Xdebug</pre></div></div><p>Now you&#8217;re done.</p><h4>Bonus: configure NetBeans to run with the XDebug extension</h4><p>Just open up the option window (Tools->Options->PHP tab) and type in the correct path to the PHP client. Something like <code>/path/to/your/lappstack/<strong>php/bin/php</strong></code></p><div class="wp-caption alignnone" style="width: 460px"><img alt="Ubuntu XDebug with Bitnami - Options Panel" src="http://files.niccolofavari.com/wordpress/wp-content/uploads/2010/01/options003.png" title="Ubuntu XDebug with Bitnami - Options Panel" width="450" height="368" /><p class="wp-caption-text">Just type in the correct path and you&#039;re done</p></div><p>Now happy debugging with Bitnami and your lappstack (or lampstack).</p> ]]></content:encoded> <wfw:commentRss>http://www.niccolofavari.com/configure-xdebug-with-bitnami-php-stacks-on-linux-ubuntu/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 12/20 queries in 0.297 seconds using disk

Served from: www.niccolofavari.com @ 2010-09-09 02:30:03 -->