<?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>PHP Architect blog &#187; Uncategorized</title>
	<atom:link href="http://www.php-architect.com/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-architect.com/blog</link>
	<description>PHP, MySQL, ZF, Python, Linux, Mac, C++, Java, Flex, Air, ActionScript &#38; apps development.</description>
	<lastBuildDate>Sun, 13 Jun 2010 18:25:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3405</generator>
		<item>
		<title>Backup / Increase the Guest OS Drive on VirtualBox</title>
		<link>http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/</link>
		<comments>http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 18:20:38 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ghost]]></category>
		<category><![CDATA[norton]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=424</guid>
		<description><![CDATA[Tried to search online for a way to increase the size of a vdi image, and there was no solution available online to do so. I had windows XP installed on a virtual machine for mail, and testing purposes on the most hated IE6, and the drive ran out of a space, no solution or [...]


Related posts:<ol><li><a href='http://www.php-architect.com/blog/2010/06/06/compress-and-split-large-files-under-linux/' rel='bookmark' title='Permanent Link: Compress and Split large files under Linux'>Compress and Split large files under Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Tried to search online for a way to increase the size of a vdi image, and there was no solution available online to do so.<br />
I had windows XP installed on a virtual machine for mail, and testing purposes on the most hated IE6, and the drive ran out of a space, no solution or work around helped me increase it, all the solutions to modify the partition table, etc didn&#8217;t work for me.<br />
Here is the simple steps i followed :</p>
<ul>
<li> Add Another Disk Drive to the Guest OS</li>
<li> Backup the Guest Operating system drive using Norton Ghost to the newly added drive.</li>
<li> Copy the backup to a DVD image (I had to move it to the host drive first)</li>
<li> Make a new Virtual Machine with the new size you want.</li>
<li> Boot the new machine using Norton Ghost drive, and attach the DVD image with the created backup.</li>
<li> Restore the backup from the DVD created using Norton Ghost.</li>
<li> Restart the machine and you should have a working.</li>
<li> Delete the created DVD image, the extra hard disk, and the old machine.</li>
</ul>
<p>If you have a shorter solution, please share <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.php-architect.com/blog/2010/06/06/compress-and-split-large-files-under-linux/' rel='bookmark' title='Permanent Link: Compress and Split large files under Linux'>Compress and Split large files under Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Zend Server on Ubuntu 10.04</title>
		<link>http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/</link>
		<comments>http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 11:45:45 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dependency]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zendserver]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=420</guid>
		<description><![CDATA[I have been having issues trying to install Zend Server on Ubuntu 10.04 following the steps here http://files.zend.com/help/Zend-Server-5-Community-Edition/zend-server.htm#deb_installation.htm the problem was because there is a missing dependency for the &#8220;libmysqlclient15off&#8221; MySQL client library to solve this, I had to install &#8220;libmysqlclient15off&#8221; from here (select the one that matches your architecture) http://archive.ubuntu.com/ubuntu/pool/universe/m/mysql-dfsg-5.0/ Then install it using [...]


Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;'>Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;</a></li>
<li><a href='http://www.php-architect.com/blog/2010/05/01/installing-java-plugin-for-firefox-on-ubuntu-10-4-lucid/' rel='bookmark' title='Permanent Link: Installing Java plugin for Firefox on Ubuntu 10.4 (Lucid)'>Installing Java plugin for Firefox on Ubuntu 10.4 (Lucid)</a></li>
<li><a href='http://www.php-architect.com/blog/2010/05/01/getting-wireless-to-work-on-lenovo-thinkpad-t400-with-ubuntu-10-4-lucid/' rel='bookmark' title='Permanent Link: Getting Wireless to work on Lenovo Thinkpad T400 with Ubuntu 10.4 Lucid'>Getting Wireless to work on Lenovo Thinkpad T400 with Ubuntu 10.4 Lucid</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have been having issues trying to install Zend Server on Ubuntu 10.04 following the steps here <a href="http://files.zend.com/help/Zend-Server-5-Community-Edition/zend-server.htm#deb_installation.htm" target="_blank">http://files.zend.com/help/Zend-Server-5-Community-Edition/zend-server.htm#deb_installation.htm</a><br />
the problem was because there is a missing dependency for the &#8220;libmysqlclient15off&#8221; MySQL client library</p>
<p>to solve this, I had to install &#8220;libmysqlclient15off&#8221; from here (select the one that matches your architecture)</p>
<p><a href="http://archive.ubuntu.com/ubuntu/pool/universe/m/mysql-dfsg-5.0/" target="_blank">http://archive.ubuntu.com/ubuntu/pool/universe/m/mysql-dfsg-5.0/</a></p>
<p>Then install it using the command line :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> libmysqlclient15off_5.1.30really5.0.83-0ubuntu3_i386.deb</pre></div></div>

<p>after that running the installation for Zend server from through repositories, will work with no interruptions.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;'>Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;</a></li>
<li><a href='http://www.php-architect.com/blog/2010/05/01/installing-java-plugin-for-firefox-on-ubuntu-10-4-lucid/' rel='bookmark' title='Permanent Link: Installing Java plugin for Firefox on Ubuntu 10.4 (Lucid)'>Installing Java plugin for Firefox on Ubuntu 10.4 (Lucid)</a></li>
<li><a href='http://www.php-architect.com/blog/2010/05/01/getting-wireless-to-work-on-lenovo-thinkpad-t400-with-ubuntu-10-4-lucid/' rel='bookmark' title='Permanent Link: Getting Wireless to work on Lenovo Thinkpad T400 with Ubuntu 10.4 Lucid'>Getting Wireless to work on Lenovo Thinkpad T400 with Ubuntu 10.4 Lucid</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Wireless to work on Lenovo Thinkpad T400 with Ubuntu 10.4 Lucid</title>
		<link>http://www.php-architect.com/blog/2010/05/01/getting-wireless-to-work-on-lenovo-thinkpad-t400-with-ubuntu-10-4-lucid/</link>
		<comments>http://www.php-architect.com/blog/2010/05/01/getting-wireless-to-work-on-lenovo-thinkpad-t400-with-ubuntu-10-4-lucid/#comments</comments>
		<pubDate>Sat, 01 May 2010 09:59:37 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[lenovo]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[realtek]]></category>
		<category><![CDATA[semiconductir]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=381</guid>
		<description><![CDATA[I struggled for a while to get my wireless card work after installing / upgrading Ubuntu on my T400 Thinkpad. My T400 came with wireless card : Realtek Semiconductor . To get it working, I followed these steps : 1- Open nautilus sudo nautilus 2- Browse to /lib/modules/ 3- Search for any rtl8192se and remove [...]


Related posts:<ol><li><a href='http://www.php-architect.com/blog/2010/05/01/installing-java-plugin-for-firefox-on-ubuntu-10-4-lucid/' rel='bookmark' title='Permanent Link: Installing Java plugin for Firefox on Ubuntu 10.4 (Lucid)'>Installing Java plugin for Firefox on Ubuntu 10.4 (Lucid)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I struggled for a while to get my wireless card work after installing / upgrading Ubuntu on my T400 Thinkpad.</p>
<p>My T400 came with wireless card : Realtek Semiconductor .</p>
<p>To get it working, I followed these steps :</p>
<p>1- Open nautilus</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> nautilus</pre></div></div>

<p>2- Browse to /lib/modules/</p>
<p>3- Search for any rtl8192se and remove them</p>
<p>4-Download the drivers from Realtek website (Search for RTL8192SE)<br />
<a href="http://218.210.127.131/downloads/downloadsView.aspx?Langid=1&amp;PNid=48&amp;PFid=48&amp;Level=5&amp;Conn=4&amp;DownTypeID=3&amp;GetDown=false&amp;Downloads=true#RTL8192SE" target="_blank">Click to go to Realtek Website</a></p>
<p>5- Install the drivers</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> build-essential linux-source-2.6.32
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzvf</span> rtl8192se_linux_2.6.0015.0127.2010.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> rtl8192se_linux_2.6.0015.0127.2010
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
modprobe r8192se_pci</pre></div></div>

<p>6- Reboot and it should be working out of the box.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.php-architect.com/blog/2010/05/01/installing-java-plugin-for-firefox-on-ubuntu-10-4-lucid/' rel='bookmark' title='Permanent Link: Installing Java plugin for Firefox on Ubuntu 10.4 (Lucid)'>Installing Java plugin for Firefox on Ubuntu 10.4 (Lucid)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/05/01/getting-wireless-to-work-on-lenovo-thinkpad-t400-with-ubuntu-10-4-lucid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why using PHP ?</title>
		<link>http://www.php-architect.com/blog/2009/04/03/why-using-php/</link>
		<comments>http://www.php-architect.com/blog/2009/04/03/why-using-php/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 13:08:16 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=296</guid>
		<description><![CDATA[PHP is one of the most popular server side scripting languages running today. It is used for creating dynamic WebPages that interact with the user offering customized information. PHP offers many advantages; it is fast, stable, secure, easy to use and open source (free). Rasmus Lerdorf wrote the first PHP (first called Personal Home Page) [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>PHP is one of the most popular server side scripting languages running today. It is used for creating dynamic WebPages that interact with the user offering customized information. PHP offers many advantages; it is fast, stable, secure, easy to use and open source (free).</p>
<p>Rasmus Lerdorf wrote the first PHP (first called Personal Home Page) scripts as a series of Perl scripts that he used to track visitors to his webpage and to see who was viewing his resume. He eventually rewrote PHP as a scripting engine and added support for forms. PHP has been evolving since 1994 as an open source code. A community of followers and developers formed and began using and further developing PHP. Over the years the Personal Home Page acronym was dropped and it evolved into the PHP Hypertext Preprocessor.</p>
<p>PHP code is inserted directly into the HTML that makes up a website. When a visitor comes to the website, the code is executed. Because PHP is a server side technology, the user does not need any special browser or plug-ins to see the PHP in action.</p>
<p>The beauty of PHP lies in its simplicity. It is easy to understand and learn, especially for those with backgrounds in programming such as C, JavaScript and HTML. The language is similar to C and Perl so that anyone with a background in either C or Perl programming will feel comfortable using and understanding PHP. PHP also runs on just about every platform including most UNIX, Macs and Windows versions.</p>
<p>PHP doesn’t use a lot of the system resources so it runs fast and doesn’t tend to slow other processes down. It is typically used as an Apache module, written in C, so it loads and executes quickly. It works well with other software and can be quite fast. PHP is also stable and since it is open source, the PHP community works together to fix any bugs. The community offers technical support and continuously updates the code further expanding PHP’s capabilities.</p>
<p>PHP offers many levels of security to prevent malicious attacks.</p>
<p>Another key advantage of PHP is its connective abilities. PHP uses a modular system of extensions to interface with a variety of libraries such as graphics, XML, encryption, etc. In addition, programmers can extend PHP by writing their own extensions and compiling them into the executable or they can create their own executable and load it using PHP’s dynamic loading mechanism.</p>
<p>In addition to extensions, PHP has tons of server interfaces, database interfaces and other modules available. Of the server interfaces, PHP can load into Apache, Microsoft IIS, Roxen, THTTPD and AOLserver. It can also be run as a CGI module. Database interfaces are available for MySQL, Microsoft MS SQL, Informix, Oracle and plenty of others. If a database is not supported, ODBC is an option.</p>
<p>The main PHP source repository is loaded with modules and interfaces that users have written and contributed. There you can find modules for flash movies, PDF files, calendars and more.</p>
<p>A huge advantage that PHP offers is its community. Since PHP is an open source project, the PHP community is willing to share.</p>
<p>PHP is the best choice for developing WebPages &amp; Intranet applications, it is compatible with any database, and web servers, and integrates well across many platforms and with various software<br />
programs.</p>
<p>Below is a diagram from Oracle.com comparing between PHP &amp; ASP.net</p>
<p><a href="http://www.php-architect.com/blog/wp-content/uploads/2009/04/oracle-comparison.jpg" rel="lightbox[296]"><img class="aligncenter size-full wp-image-298" title="oracle-comparison" src="http://www.php-architect.com/blog/wp-content/uploads/2009/04/oracle-comparison.jpg" alt="oracle-comparison" width="380" height="346" /></a><br />
For the above reasons this is why i choose and recommend for you PHP as its primary language for Web Space &amp; Intranet Applications.</p>
<p>Links:<br />
<a title="Official PHP Website" href="http://www.php.net" target="_blank"> www.php.net</a> &#8211; The official PHP website<br />
<a title="The PHP Company" href="http://www.zend.com" target="_blank">www.zend.com</a> &#8211; The PHP Company<br />
<a title="Zend Framework" href="http://framework.zend.com" target="_blank">Framework.zend.com</a> &#8211;  Zend framework<br />
<a title="Official Zend Conference Website" href="http://www.zendcon.com" target="_blank">www.zendcon.com</a> -  Zend Conference Official website</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/04/03/why-using-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Smart Debugging with Zend Framework</title>
		<link>http://www.php-architect.com/blog/2009/04/03/smart-debugging-with-zend-framework/</link>
		<comments>http://www.php-architect.com/blog/2009/04/03/smart-debugging-with-zend-framework/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 12:35:28 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[zf]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=294</guid>
		<description><![CDATA[Sometimes your clients report to you Errors you have never experienced while testing your web application, or broken links, or some errors that occurs under some scenarios that you didn&#8217;t apply. There is a smart trick i do in the ErrorController in my Zend Framework applications, i make the application send me the same error [...]


Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;'>Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Sometimes your clients report to you Errors you have never experienced while testing your web application, or broken links, or some errors that occurs under some scenarios that you didn&#8217;t apply.</p>
<p>There is a smart trick i do in the ErrorController in my Zend Framework applications, i make the application send me the same error it displays to the user direct to my email, so i can know under what circumstances and conditions that error occurred.</p>
<p>The sweet thing is that when google bot or any search engine crawls my websites, they find some errors also, errors that i and the client didn&#8217;t reach, so i get the chance to fix it before any body see it.</p>
<p>I also sometimes disable viewing the error message and display &#8220;Some errors has occurred and the support has been notified, sorry for the inconvenience&#8221; and provide a link to go to Homepage for example.</p>
<p>Below is the code i have in my ErrorController :</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #000088;">$errors</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_getParam<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'error_handler'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$errors</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">case</span> Zend_Controller_Plugin_ErrorHandler<span style="color: #339933;">::</span><span style="color: #004000;">EXCEPTION_NO_CONTROLLER</span><span style="color: #339933;">:</span>
            <span style="color: #b1b100;">case</span> Zend_Controller_Plugin_ErrorHandler<span style="color: #339933;">::</span><span style="color: #004000;">EXCEPTION_NO_ACTION</span><span style="color: #339933;">:</span>
                <span style="color: #666666; font-style: italic;">// 404 error -- controller or action not found                </span>
                <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getResponse</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setRawHeader</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'HTTP/1.1 404 Not Found'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">view</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'HTTP/1.1 404 Not Found'</span><span style="color: #339933;">;</span>
                <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
                <span style="color: #666666; font-style: italic;">// application error; display error page, but don't change                </span>
                <span style="color: #666666; font-style: italic;">// status code</span>
                <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">view</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Application Error'</span><span style="color: #339933;">;</span>
                <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000088;">$body</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'HTTP/1.1 404 Not Found'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$body</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$errors</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">exception</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$body</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;IP Address: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$body</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;User Agent: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_USER_AGENT'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$body</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Lang: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_ACCEPT_LANGUAGE'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$body</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Referer Link: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_REFERER'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$body</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Requested URL&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
		<span style="color: #000088;">$mail</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Mail<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setBodyHtml</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setFrom</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'support@somesite.com'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Website Support'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addTo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;ahmed.abdelaliem@mysite.com.com&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Ahmed Abdel-ALiem&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setSubject</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sitename Error Occurred'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">view</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">message</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$errors</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">exception</span><span style="color: #339933;">;</span></pre></div></div>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;'>Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/04/03/smart-debugging-with-zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
