<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Leonard Austin</title><link>http://www.leonardaustin.com</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/LeonardAustin" /><description></description><language>en</language><lastBuildDate>Wed, 16 May 2012 16:33:47 PDT</lastBuildDate><generator>http://wordpress.org/?v=3.3.2</generator><sy:updatePeriod xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">hourly</sy:updatePeriod><sy:updateFrequency xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">1</sy:updateFrequency><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/LeonardAustin" /><feedburner:info uri="leonardaustin" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>How to get environment in Symfony2</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/1YNUYoygNF0/how-to-get-environment-in-symfony2</link><category>Technical</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Wed, 18 Apr 2012 17:51:57 PDT</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=645</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>In the controller use:</p>
<pre name="code" class="php">
$this->get('kernel')->getEnvironment()
</pre>
<p>Related posts:<ol>
<li><a href='http://www.leonardaustin.com/technical/how-to-access-put-data-in-zend-framework' rel='bookmark' title='How to Access PUT data in Zend Framework'>How to Access PUT data in Zend Framework</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=1YNUYoygNF0:5JZtzLm7acY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=1YNUYoygNF0:5JZtzLm7acY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=1YNUYoygNF0:5JZtzLm7acY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=1YNUYoygNF0:5JZtzLm7acY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=1YNUYoygNF0:5JZtzLm7acY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=1YNUYoygNF0:5JZtzLm7acY:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=1YNUYoygNF0:5JZtzLm7acY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/1YNUYoygNF0" height="1" width="1"/>]]></content:encoded><description>In the controller use: $this-&gt;get('kernel')-&gt;getEnvironment() Related posts: How to Access PUT data in Zend Framework
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/how-to-access-put-data-in-zend-framework' rel='bookmark' title='How to Access PUT data in Zend Framework'&gt;How to Access PUT data in Zend Framework&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/technical/how-to-get-environment-in-symfony2/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/technical/how-to-get-environment-in-symfony2</feedburner:origLink></item><item><title>How to make a Symfony2 Twig Extension</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/WSbnHdROcQo/how-to-make-a-symfony2-twig-extension</link><category>Technical</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Mon, 16 Apr 2012 15:19:23 PDT</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=625</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>I couldn&#8217;t find a decent tutorial online that explained twig extensions in a simple way so for those of you in need here is a step by step guide on how to create a twig extension for Symfony2.</p>
<p>The first thing to know is the difference between twig global, filter and functions (or just how the look in twig templates).</p>
<h3>Global</h3>
<pre name="code" class="php">{{ global_variable }}</pre>
<h3>Filter</h3>
<pre name="code" class="php">{{ 'some sort of text'|filter }}</pre>
<h3>Function</h3>
<pre name="code" class="php">{% function('some variable or text') %}</pre>
<p>If you want more information look here:<br />
<a href="http://twig.sensiolabs.org/doc/templates.html">http://twig.sensiolabs.org/doc/templates.html</a></p>
<p>For the following steps remember to change the &#8216;Bundle&#8217; and &#8216;NameBundle&#8217; to your bundles values. Also note that the following code is just for creating filters.</p>
<h3>Step 1: Create the filter</h3>
<p>Create a file <strong>Bundle/NameBundle/Extension/MyTwigExtension.php</strong> and use the following code inside it.</p>
<pre name="code" class="php">
&lt;?php
namespace Bundle\NameBundle\Extension;
use Symfony\Component\HttpKernel\KernelInterface;
class MyTwigExtension extends \Twig_Extension
{
    public function getFilters()
    {
        return array(
            'uppercase_first_letter' => new \Twig_Filter_Method($this, 'uppercase_first_letter'),
            'var_dump' => new \Twig_Filter_Function('var_dump')
        );
    }

    function uppercase_first_letter($var){
        return ucwords($var);
    }

    public function getName()
    {
        return 'recensus_twig_extension';
    }
}
</pre>
<p>So I&#8217;ve created two filters that I can use in my twig templates, uppercase_first_letter and var_dump. var_dump is already a function within php so that just works without having to create the method within the MyTwigExtension class.  uppercase_first_letter require me to create a public method within the class. </p>
<p>Notice the different classes used, Twig_Filter_Method for a custom methods and Twig_Filter_Function for a php method.</p>
<h3>Step 2: Register with config</h3>
<p>Then you need to add the following code to the bottom of the config file (/app/config/config.yml).</p>
<pre name="code" class="php">
services:
    anywordyouwant.twig.extension.mytwigextension:
        class: Bundle\NameBundle\Extension\MyTwigExtension
        tags:
            -  { name: twig.extension }
</pre>
<h3>Step 3: Use the filters</h3>
<p>Inside your twig templates</p>
<pre name="code" class="php">{{ 'what ever you want'|uppercase_first_letter }}</pre>
<p>Related posts:<ol>
<li><a href='http://www.leonardaustin.com/technical/sendmail-on-ubuntu' rel='bookmark' title='Sendmail on Ubuntu'>Sendmail on Ubuntu</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=WSbnHdROcQo:0WjnZtzNLPM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=WSbnHdROcQo:0WjnZtzNLPM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=WSbnHdROcQo:0WjnZtzNLPM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=WSbnHdROcQo:0WjnZtzNLPM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=WSbnHdROcQo:0WjnZtzNLPM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=WSbnHdROcQo:0WjnZtzNLPM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=WSbnHdROcQo:0WjnZtzNLPM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/WSbnHdROcQo" height="1" width="1"/>]]></content:encoded><description>I couldn&amp;#8217;t find a decent tutorial online that explained twig extensions in a simple way so for those of you in need here is a step by step guide on [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/sendmail-on-ubuntu' rel='bookmark' title='Sendmail on Ubuntu'&gt;Sendmail on Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/technical/how-to-make-a-symfony2-twig-extension/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/technical/how-to-make-a-symfony2-twig-extension</feedburner:origLink></item><item><title>How to ipconfig/flush dns on Mac OSX</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/OlMa2-tGYWQ/how-to-ipconfigflush-dns-on-mac-osx</link><category>Technical</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Fri, 30 Mar 2012 02:54:28 PDT</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=621</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<h4>On Lion (Mac OS X 10.5, 10.6, or 10.7)</h4>
<pre name="code" class="php">
dscacheutil –flushcache
</pre>
<h4>On Mac OS X 10.4 Tiger</h4>
<pre name="code" class="php">
lookupd –flushcache
</pre>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=OlMa2-tGYWQ:SUvbFxiGiH4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=OlMa2-tGYWQ:SUvbFxiGiH4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=OlMa2-tGYWQ:SUvbFxiGiH4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=OlMa2-tGYWQ:SUvbFxiGiH4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=OlMa2-tGYWQ:SUvbFxiGiH4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=OlMa2-tGYWQ:SUvbFxiGiH4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=OlMa2-tGYWQ:SUvbFxiGiH4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/OlMa2-tGYWQ" height="1" width="1"/>]]></content:encoded><description>On Lion (Mac OS X 10.5, 10.6, or 10.7) dscacheutil –flushcache On Mac OS X 10.4 Tiger lookupd –flushcache No related posts.
No related posts.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/technical/how-to-ipconfigflush-dns-on-mac-osx/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/technical/how-to-ipconfigflush-dns-on-mac-osx</feedburner:origLink></item><item><title>Diary of a Startup: Create a startup for £14</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/EKlxQhZsPOw/diary-of-a-startup-create-a-startup-for-14</link><category>Business</category><category>business</category><category>startup</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Sat, 07 Jan 2012 14:31:51 PST</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=573</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Date: 2012-01-07<br />
This post is the first in a series discussing my new startup, proudly named <a target="_blank" href="http://recensus.com">recensus.com</a> (latin for review). So after spending about 24 hours trying to find a .com domain name I was happy with here were my steps.</p>
<p><strong>1. Domain Registration</strong><br />
Registered the domain name with <a target="_blank" href="http://123ref.co.uk">123-reg.co.uk</a>. I choose them because they are reasonably priced and you get control over the DNS records which they don&#8217;t charge you extra for and they haven&#8217;t gone down in. (Cost: £12)</p>
<p><strong>2. Setup Cloudflare</strong><br />
<a target="_blank" href="http://www.cloudflare.com">Cloudflare.com</a> is an amazing service that give you a DNS server which blocks spam, protects against security attacks, caches content using a CDN and a lot of other features. Well worth the free price tag, takes about 10 minutes to setup, I only wish they gave you the nameservers at the beginning of the setup and they had Google App&#8217;s DNS settings as a one click button. (Cost: free)</p>
<p><strong>3. Setup Google Apps</strong><br />
Just in case you don&#8217;t know Google App&#8217;s give you Gmail, Google Calendar, Google Sites and Google Docs all under your own domain (free for up to 10 users). Again well worth the free price tag (although you have to look hire for the free version), just don&#8217;t forget to setup the subdomains. (Cost: free)</p>
<p><strong>4. Setup Webspace and Upload Holding Page</strong><br />
I&#8217;ve got my own server (well Welford Media Ltd has) and I&#8217;ve just created a new domain and uploaded my holding page. If you haven&#8217;t got hosting you could go to <a target="_blank" href="http://tracking.opienetwork.com/aff_c?offer_id=20&#038;aff_id=592">Hostpapa.co.uk</a> and click install wordpress, then download a coming soon template (see <a target="_blank" href="http://www.net-kit.com/12-free-attractive-themes-templates-for-coming-soon-pages/">http://www.net-kit.com/12-free-attractive-themes-templates-for-coming-soon-pages/</a> or <a target="_blank" href="http://www.hongkiat.com/blog/coming-soon-templates-tutorials/">http://www.hongkiat.com/blog/coming-soon-templates-tutorials/</a>). (Cost: £2 per month)</p>
<p><strong>5. Signup to MailChimp</strong><br />
<a target="_blank" href="http://mailchimp.com">Mailchimp</a> enables you to send out tracked email newsletters to subscribers and they have a free account which give you 2000 subscribers! After signing up put the signup form on your website. (Cost: free)</p>
<p>That&#8217;s the easy bit done, now i&#8217;ve just got build the app, do the sales and marketing, convert leads and make money. Also if possible get funding, find mentors and hire staff.</p>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=EKlxQhZsPOw:sT88W_lQV4s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=EKlxQhZsPOw:sT88W_lQV4s:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=EKlxQhZsPOw:sT88W_lQV4s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=EKlxQhZsPOw:sT88W_lQV4s:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=EKlxQhZsPOw:sT88W_lQV4s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=EKlxQhZsPOw:sT88W_lQV4s:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=EKlxQhZsPOw:sT88W_lQV4s:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/EKlxQhZsPOw" height="1" width="1"/>]]></content:encoded><description>Date: 2012-01-07 This post is the first in a series discussing my new startup, proudly named recensus.com (latin for review). So after spending about 24 hours trying to find a [...]
No related posts.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/business/diary-of-a-startup-create-a-startup-for-14/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/business/diary-of-a-startup-create-a-startup-for-14</feedburner:origLink></item><item><title>Sendmail on Ubuntu</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/llUaVTPHVfg/sendmail-on-ubuntu</link><category>Technical</category><category>PHP</category><category>server</category><category>ubuntu</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Sat, 07 Jan 2012 10:11:06 PST</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=314</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<h2>Install Sendmail on Ubuntu</h2>
<p>I also need my php applications to be able to send our email using the mail function. Therefore I need to install sendmail and enable it in my php.ini file.<br />
Install Sendmail</p>
<pre name="code" class="php">apt-get install sendmail</pre>
<h3>Check its working</h3>
<pre name="code" class="php">ps -aux | grep sendmail</pre>
<h3>Change php.ini</h3>
<pre name="code" class="php">
replace
;sendmail_path =
with
sendmail_path =  /usr/sbin/sendmail
</pre>
<h3>Config Sendmail</h3>
<pre class="php" name="code">
sudo sendmailconfig
</pre>
<h3>Change your host files</h3>
<pre class="php" name="code">
homename
/etc/hosts
127.0.0.1 localhost.localdomain localhost myhostname
</pre>
<p>Related posts:<ol>
<li><a href='http://www.leonardaustin.com/technical/installing-lamp-on-ubuntu' rel='bookmark' title='Installing LAMP on Ubuntu'>Installing LAMP on Ubuntu</a></li>
<li><a href='http://www.leonardaustin.com/technical/install-apc-on-ubuntu-with-php-5-3' rel='bookmark' title='Install APC on Ubuntu with PHP 5.3'>Install APC on Ubuntu with PHP 5.3</a></li>
<li><a href='http://www.leonardaustin.com/technical/share-folders-on-unbuntu-vbox-with-windows' rel='bookmark' title='Share Folders on Unbuntu VBox with Windows'>Share Folders on Unbuntu VBox with Windows</a></li>
<li><a href='http://www.leonardaustin.com/technical/setup-ubuntu-as-a-web-server' rel='bookmark' title='Setup Ubuntu as a Web Server'>Setup Ubuntu as a Web Server</a></li>
<li><a href='http://www.leonardaustin.com/technical/how-to-install-memcached-on-xampp-on-windows-7' rel='bookmark' title='How to install Memcached on Xampp on Windows 7'>How to install Memcached on Xampp on Windows 7</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=llUaVTPHVfg:2WOEF2Qws24:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=llUaVTPHVfg:2WOEF2Qws24:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=llUaVTPHVfg:2WOEF2Qws24:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=llUaVTPHVfg:2WOEF2Qws24:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=llUaVTPHVfg:2WOEF2Qws24:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=llUaVTPHVfg:2WOEF2Qws24:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=llUaVTPHVfg:2WOEF2Qws24:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/llUaVTPHVfg" height="1" width="1"/>]]></content:encoded><description>Install Sendmail on Ubuntu I also need my php applications to be able to send our email using the mail function. Therefore I need to install sendmail and enable it [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/installing-lamp-on-ubuntu' rel='bookmark' title='Installing LAMP on Ubuntu'&gt;Installing LAMP on Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/install-apc-on-ubuntu-with-php-5-3' rel='bookmark' title='Install APC on Ubuntu with PHP 5.3'&gt;Install APC on Ubuntu with PHP 5.3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/share-folders-on-unbuntu-vbox-with-windows' rel='bookmark' title='Share Folders on Unbuntu VBox with Windows'&gt;Share Folders on Unbuntu VBox with Windows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/setup-ubuntu-as-a-web-server' rel='bookmark' title='Setup Ubuntu as a Web Server'&gt;Setup Ubuntu as a Web Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/how-to-install-memcached-on-xampp-on-windows-7' rel='bookmark' title='How to install Memcached on Xampp on Windows 7'&gt;How to install Memcached on Xampp on Windows 7&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/technical/sendmail-on-ubuntu/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/technical/sendmail-on-ubuntu</feedburner:origLink></item><item><title>Adobe Air with Netbeans</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/aatPCtghtdc/adobe-air-with-netbeans</link><category>Technical</category><category>adobe</category><category>adobe air</category><category>netbeans</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Sat, 10 Dec 2011 08:37:37 PST</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=565</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>I love Netbeans, it&#8217;s by far my favourite IDE for developing PHP applications. Recently, I&#8217;ve needed to create an Adobe Air application and from what I remember the best free IDE on windows for this was Aptana, which is ok however I found it a little slow (and I already know all the Netbeans shortcuts). So what I really wanted to do was developed Adobe Air with Netbeans, and you can&#8230;</p>
<p>The video below shows you step by step however it&#8217;s 5 minutes long and I can explain in 5 lines.</p>
<ol>
<li>Download the Adobe Air SDK, unzip.</li>
<li>Open Netbenas, Create a new PHP Project</li>
<li>On the 3rd page of creating a new project (Run Configuration) choose Run As: Script (run in command line)</li>
<li>Then choose AdobeAIRSDK\bin\adle.exe as the PHP Interpreter</li>
<li><span style="color: #ff0000;"><strong>The final step which isn&#8217;t in the video, (after creating the index.html file and application.xml file) click the Run Project button and it will ask you for Run Configuration, makes sure you choose application.xml as the Index File NOT index.html.</strong></span></li>
</ol>
<p>Hopefully this will work for you as well!</p>
<p><iframe src="http://www.youtube.com/embed/C5hqf4AkS68" frameborder="0" width="420" height="315"></iframe></p>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=aatPCtghtdc:WdyMx5sFJzI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=aatPCtghtdc:WdyMx5sFJzI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=aatPCtghtdc:WdyMx5sFJzI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=aatPCtghtdc:WdyMx5sFJzI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=aatPCtghtdc:WdyMx5sFJzI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=aatPCtghtdc:WdyMx5sFJzI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=aatPCtghtdc:WdyMx5sFJzI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/aatPCtghtdc" height="1" width="1"/>]]></content:encoded><description>I love Netbeans, it&amp;#8217;s by far my favourite IDE for developing PHP applications. Recently, I&amp;#8217;ve needed to create an Adobe Air application and from what I remember the best free [...]
No related posts.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/technical/adobe-air-with-netbeans/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/technical/adobe-air-with-netbeans</feedburner:origLink></item><item><title>Best Firefox Plugins for SEO aka Addons</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/a3GMm6GU3XY/best-firefox-plugins-for-seo-aka-addons</link><category>Technical</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Mon, 05 Dec 2011 09:45:23 PST</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=484</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Probably the best browser for SEO and Web Development (although prefer Chrome for surfing the net). This is mainly because of the wide variety of addons/plugins available.</p>
<p>Recommended Addons for SEO:</p>
<ul>
<li>Firebug</li>
<li>Page Speed</li>
<li>SEOQuake</li>
<li>SEO For Firefox</li>
<li>Google Toolbar (for page rank &#8211; doesn&#8217;t work on FF7+)</li>
<li>Search Status</li>
<li>SEOMoz Toolbar</li>
<li>User Agent Switcher</li>
</ul>
<div>If you have any other suggestions and I&#8217;ll add them to the list.</div>
<p>Related posts:<ol>
<li><a href='http://www.leonardaustin.com/technical/the-best-addons-for-firefox-for-a-web-developer' rel='bookmark' title='The best Firefox addons for a web developer'>The best Firefox addons for a web developer</a></li>
<li><a href='http://www.leonardaustin.com/technical/i-used-to-love-firefox' rel='bookmark' title='I used to love firefox'>I used to love firefox</a></li>
<li><a href='http://www.leonardaustin.com/technical/all-website-statistic-that-are-publicly-available' rel='bookmark' title='All Website Statistic That Are Publicly Available'>All Website Statistic That Are Publicly Available</a></li>
<li><a href='http://www.leonardaustin.com/technical/speed-up-firefox' rel='bookmark' title='Speed Up Firefox'>Speed Up Firefox</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=a3GMm6GU3XY:ckQTxC3BVEE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=a3GMm6GU3XY:ckQTxC3BVEE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=a3GMm6GU3XY:ckQTxC3BVEE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=a3GMm6GU3XY:ckQTxC3BVEE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=a3GMm6GU3XY:ckQTxC3BVEE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=a3GMm6GU3XY:ckQTxC3BVEE:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=a3GMm6GU3XY:ckQTxC3BVEE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/a3GMm6GU3XY" height="1" width="1"/>]]></content:encoded><description>Probably the best browser for SEO and Web Development (although prefer Chrome for surfing the net). This is mainly because of the wide variety of addons/plugins available. Recommended Addons for [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/the-best-addons-for-firefox-for-a-web-developer' rel='bookmark' title='The best Firefox addons for a web developer'&gt;The best Firefox addons for a web developer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/i-used-to-love-firefox' rel='bookmark' title='I used to love firefox'&gt;I used to love firefox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/all-website-statistic-that-are-publicly-available' rel='bookmark' title='All Website Statistic That Are Publicly Available'&gt;All Website Statistic That Are Publicly Available&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/speed-up-firefox' rel='bookmark' title='Speed Up Firefox'&gt;Speed Up Firefox&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/technical/best-firefox-plugins-for-seo-aka-addons/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/technical/best-firefox-plugins-for-seo-aka-addons</feedburner:origLink></item><item><title>Setup Ubuntu as a Web Server</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/ecNvLaHysAY/setup-ubuntu-as-a-web-server</link><category>Technical</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Sat, 03 Dec 2011 10:04:15 PST</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=462</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>So these are the general steps for setting up a web server (Apache, MySQL and PHP) on a Ubuntu 10.4 server. If you are not sure on how to use unix command line see: <a href="http://www.leonardaustin.com/technical/ssh-commands">http://www.leonardaustin.com/technical/ssh-commands<br />
</a></p>
<h2>Upgrade Ubuntu</h2>
<pre class="php" name="code">
apt-get update
apt-get upgrade --show-upgraded
</pre>
<h2>Install Apache MySQL and PHP</h2>
<pre class="php" name="code">
apt-get install apache2 mysql-server php5 php-pear php5-mysql
</pre>
<h2>Then Secure MySQL</h2>
<pre class="php" name="code">
mysql_secure_installation
</pre>
<h2>Setup vhosts</h2>
<p>Create a file in the /etc/apache2/sites-available/ directory for each virtual host that you want to set up. Name each file with the domain for which you want to provide virtual hosting. See the following example configurations for the hypothetical &#8220;example.com&#8221; domain.</p>
<pre class="php" name="code">
&lt;VirtualHost *:80&gt;
     ServerAdmin webmaster@example.com
     ServerName example.com
     ServerAlias www.example.com
     DocumentRoot /srv/www/example.com/public_html/
     ErrorLog /srv/www/example.com/logs/error.log
     CustomLog /srv/www/example.com/logs/access.log combined
&lt;/VirtualHost&gt;
</pre>
<p>Then create the folders</p>
<pre class="php" name="code">
mkdir -p /srv/www/example.com/public_html
mkdir /srv/www/example.com/logs
</pre>
<p>Enable the site and reload Apache</p>
<pre class="php" name="code">
a2ensite example.com
/etc/init.d/apache2 reload
</pre>
<h2>Install mod_rewrite</h2>
<pre class="php" name="code">
sudo a2enmod rewrite
sudo /etc/init.d/apache2 reload
</pre>
<p>You also need to find this file:</p>
<pre class="php" name="code">
/etc/apache2/sites-available/default
</pre>
<p>and change &#8220;AllowOverride None&#8221; to &#8220;AllowOverride All&#8221; it appears a couple of times.</p>
<h2>Install PHPMyAdmin</h2>
<pre class="php" name="code">
sudo apt-get install phpmyadmin
</pre>
<p>&#8220;In /etc/apache2/apache2.conf&#8221; Add &#8220;Include /etc/phpmyadmin/apache.conf&#8221;<br />
The restart apache</p>
<pre class="php" name="code">
/etc/init.d/apache2 reload
</pre>
<h2>Install XBedug &#8211; Optional for DEV only</h2>
<pre class="php" name="code">
sudo apt-get install php5-dev php-pear
sudo pecl install xdebug
</pre>
<p># Make a note of the location of the xedebug.so then create a xdebug.ini with the below info and put it into &#8220;/etc/php5/conf.d&#8221;</p>
<pre class="php" name="code">
; xdebug debugger
zend_extension="/usr/lib/php5/20060613/xdebug.so"
# IN php.ini file make sure html_errors = true
/etc/init.d/apache2 restart
</pre>
<h2>PHP Important Folder and Files</h2>
<pre class="php" name="code">
# /etc/php5
# /etc/php5/apache2/php.ini
</pre>
<h2>Apache Important Folder and Files</h2>
<pre class="php" name="code">
# /etc/apache2/
# /etc/apache2/apache2.conf
# /etc/apache2/sites-available/default
</pre>
<h2>Web Folders</h2>
<pre class="php" name="code">
# /srv/www/
</pre>
<p>or the default location</p>
<pre class="php" name="code">
# /var/www
</pre>
<h2>Other Steps</h2>
<p>Change php.ini errors to show all</p>
<p>Related posts:<ol>
<li><a href='http://www.leonardaustin.com/technical/install-apc-on-ubuntu-with-php-5-3' rel='bookmark' title='Install APC on Ubuntu with PHP 5.3'>Install APC on Ubuntu with PHP 5.3</a></li>
<li><a href='http://www.leonardaustin.com/technical/installing-lamp-on-ubuntu' rel='bookmark' title='Installing LAMP on Ubuntu'>Installing LAMP on Ubuntu</a></li>
<li><a href='http://www.leonardaustin.com/technical/phpize-not-found' rel='bookmark' title='phpize: not found'>phpize: not found</a></li>
<li><a href='http://www.leonardaustin.com/technical/how-to-install-rsync-on-ubuntu' rel='bookmark' title='How to Install Rsync on Ubuntu'>How to Install Rsync on Ubuntu</a></li>
<li><a href='http://www.leonardaustin.com/technical/sendmail-on-ubuntu' rel='bookmark' title='Sendmail on Ubuntu'>Sendmail on Ubuntu</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=ecNvLaHysAY:XvXbb4onzqc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=ecNvLaHysAY:XvXbb4onzqc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=ecNvLaHysAY:XvXbb4onzqc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=ecNvLaHysAY:XvXbb4onzqc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=ecNvLaHysAY:XvXbb4onzqc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=ecNvLaHysAY:XvXbb4onzqc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=ecNvLaHysAY:XvXbb4onzqc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/ecNvLaHysAY" height="1" width="1"/>]]></content:encoded><description>So these are the general steps for setting up a web server (Apache, MySQL and PHP) on a Ubuntu 10.4 server. If you are not sure on how to use [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/install-apc-on-ubuntu-with-php-5-3' rel='bookmark' title='Install APC on Ubuntu with PHP 5.3'&gt;Install APC on Ubuntu with PHP 5.3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/installing-lamp-on-ubuntu' rel='bookmark' title='Installing LAMP on Ubuntu'&gt;Installing LAMP on Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/phpize-not-found' rel='bookmark' title='phpize: not found'&gt;phpize: not found&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/how-to-install-rsync-on-ubuntu' rel='bookmark' title='How to Install Rsync on Ubuntu'&gt;How to Install Rsync on Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/sendmail-on-ubuntu' rel='bookmark' title='Sendmail on Ubuntu'&gt;Sendmail on Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/technical/setup-ubuntu-as-a-web-server/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/technical/setup-ubuntu-as-a-web-server</feedburner:origLink></item><item><title>Changing Plesk Fast CGI to Apache PHP with ZF</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/55AhnZXk8uo/changing-plesk-fast-cgi-to-apache-php-with-zf</link><category>Technical</category><category>apache</category><category>PHP</category><category>plesk</category><category>server</category><category>zendframework</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Thu, 01 Dec 2011 01:43:19 PST</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=561</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>So recently I&#8217;ve had to change the php mode from Fast CGI to Apache Module in plesk due to the http authenticate functions in php not working. This caused my Zend Framework website to produce a 500 error, in my case it was something to do with:</p>
<pre name="code" class="php">
Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'session has already been started by session.auto-start or session_start()
</pre>
<p>The reason for the error is that the session already existed from my first visit and CGI was the owner, when I changed it to Apache module apache did not have permission to change the session data. The solution, shut down your browser (or start a privacy mode) and then try and view your website. Everything should work fine afterwards.</p>
<p>Related posts:<ol>
<li><a href='http://www.leonardaustin.com/technical/getting-htaccess-to-work-on-windows-apache' rel='bookmark' title='Getting .htaccess to work on windows apache'>Getting .htaccess to work on windows apache</a></li>
<li><a href='http://www.leonardaustin.com/technical/setting-up-a-cron-with-plesk-using-a-php-file' rel='bookmark' title='Setting up a Cron with Plesk using a PHP File'>Setting up a Cron with Plesk using a PHP File</a></li>
<li><a href='http://www.leonardaustin.com/technical/installing-lamp-on-ubuntu' rel='bookmark' title='Installing LAMP on Ubuntu'>Installing LAMP on Ubuntu</a></li>
<li><a href='http://www.leonardaustin.com/technical/how-to-install-instantssl-on-plesk' rel='bookmark' title='How to Install InstantSSL on Plesk'>How to Install InstantSSL on Plesk</a></li>
<li><a href='http://www.leonardaustin.com/technical/enable-mod_rewrite-in-xampp' rel='bookmark' title='Enable mod_rewrite in xampp'>Enable mod_rewrite in xampp</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=55AhnZXk8uo:AWOqdXehhys:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=55AhnZXk8uo:AWOqdXehhys:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=55AhnZXk8uo:AWOqdXehhys:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=55AhnZXk8uo:AWOqdXehhys:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=55AhnZXk8uo:AWOqdXehhys:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=55AhnZXk8uo:AWOqdXehhys:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=55AhnZXk8uo:AWOqdXehhys:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/55AhnZXk8uo" height="1" width="1"/>]]></content:encoded><description>So recently I&amp;#8217;ve had to change the php mode from Fast CGI to Apache Module in plesk due to the http authenticate functions in php not working. This caused my [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/getting-htaccess-to-work-on-windows-apache' rel='bookmark' title='Getting .htaccess to work on windows apache'&gt;Getting .htaccess to work on windows apache&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/setting-up-a-cron-with-plesk-using-a-php-file' rel='bookmark' title='Setting up a Cron with Plesk using a PHP File'&gt;Setting up a Cron with Plesk using a PHP File&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/installing-lamp-on-ubuntu' rel='bookmark' title='Installing LAMP on Ubuntu'&gt;Installing LAMP on Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/how-to-install-instantssl-on-plesk' rel='bookmark' title='How to Install InstantSSL on Plesk'&gt;How to Install InstantSSL on Plesk&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/enable-mod_rewrite-in-xampp' rel='bookmark' title='Enable mod_rewrite in xampp'&gt;Enable mod_rewrite in xampp&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/technical/changing-plesk-fast-cgi-to-apache-php-with-zf/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/technical/changing-plesk-fast-cgi-to-apache-php-with-zf</feedburner:origLink></item><item><title>How to Access PUT data in Zend Framework</title><link>http://feedproxy.google.com/~r/LeonardAustin/~3/CJ6ZQ4CLatg/how-to-access-put-data-in-zend-framework</link><category>Technical</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leonard Austin</dc:creator><pubDate>Tue, 22 Nov 2011 14:47:37 PST</pubDate><guid isPermaLink="false">http://www.leonardaustin.com/?p=541</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>So I have followed a few tutorials online on how to build a RESTful API in Zend Framework (<a href="http://mwop.net/blog/228-Building-RESTful-Services-with-Zend-Framework" target="_blank">http://mwop.net/blog/228-Building-RESTful-Services-with-Zend-Framework</a>) and everything seemed to go swimmingly except when it came to retrieveing the PUT request data. Took me a while to find this however there is a controller plugin pre-built in Zend Framework that you have to enable (Zend_Controller_Plugin_PutHandler). Basically it add the PUT data into the standard request object so you can access the data via getParams() or getParam(&#8216;var&#8217;).</p>
<p>For more information see:</p>
<p><a href="http://framework.zend.com/manual/en/zend.controller.plugins.html#zend.controller.plugins.standard.puthandler" target="_blank">http://framework.zend.com/manual/en/zend.controller.plugins.html#zend.controller.plugins.standard.puthandler</a></p>
<p>Related posts:<ol>
<li><a href='http://www.leonardaustin.com/technical/the-perfect-php-framework' rel='bookmark' title='The Perfect PHP Framework'>The Perfect PHP Framework</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=CJ6ZQ4CLatg:K9eAhxTSDEE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=CJ6ZQ4CLatg:K9eAhxTSDEE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=CJ6ZQ4CLatg:K9eAhxTSDEE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=CJ6ZQ4CLatg:K9eAhxTSDEE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=CJ6ZQ4CLatg:K9eAhxTSDEE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?i=CJ6ZQ4CLatg:K9eAhxTSDEE:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/LeonardAustin?a=CJ6ZQ4CLatg:K9eAhxTSDEE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/LeonardAustin?d=7Q72WNTAKBA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/LeonardAustin/~4/CJ6ZQ4CLatg" height="1" width="1"/>]]></content:encoded><description>So I have followed a few tutorials online on how to build a RESTful API in Zend Framework (http://mwop.net/blog/228-Building-RESTful-Services-with-Zend-Framework) and everything seemed to go swimmingly except when it came to [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://www.leonardaustin.com/technical/the-perfect-php-framework' rel='bookmark' title='The Perfect PHP Framework'&gt;The Perfect PHP Framework&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.leonardaustin.com/technical/how-to-access-put-data-in-zend-framework/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.leonardaustin.com/technical/how-to-access-put-data-in-zend-framework</feedburner:origLink></item></channel></rss>

