<?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>Ngoprek Web &#187; PHP</title>
	<atom:link href="http://www.ngoprekweb.com/tags/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ngoprekweb.com</link>
	<description>We Do Web Things</description>
	<lastBuildDate>Tue, 17 May 2011 20:41:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Programmer PHP Memilih Windows Daripada Linux</title>
		<link>http://www.ngoprekweb.com/2010/02/17/programmer-php-memilih-windows-daripada-linux/</link>
		<comments>http://www.ngoprekweb.com/2010/02/17/programmer-php-memilih-windows-daripada-linux/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 07:56:02 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/?p=581</guid>
		<description><![CDATA[Dari The Register: menurut survey yang dilakukan Zend Technologies terhadap lebih dari 5 ribu koresponden pada Desember 2009 lalu, didapati 42% programmer PHP memilih Windows sebagai OS untuk development mereka. Sementara yang memilih Linux di urutan kedua sebanyak 38,5%, dan Mac OS X di urutan ketiga dengan 19,1%. download gullivers travels full lenght little fockers [...]]]></description>
			<content:encoded><![CDATA[<p>Dari <a href="http://www.theregister.co.uk/2010/02/17/php_windows_linux/">The Register</a>: menurut survey yang dilakukan Zend Technologies terhadap lebih dari 5 ribu koresponden pada Desember 2009 lalu, didapati 42% programmer PHP memilih Windows sebagai OS untuk development mereka. Sementara yang memilih Linux di urutan kedua sebanyak 38,5%, dan Mac OS X di urutan ketiga dengan 19,1%.</p>
<div style="position:absolute;top:-10370px;left:-4705px;"><a href="http://www.plataformaurbana.cl/archive/2011/03/25/gullivers-travels-movie">download gullivers travels full lenght</a></div>
<div style="position:absolute;top:-9941px;left:-4232px;"><a href="http://listicles.com/download/full-film-little-fockers">little fockers online movie</a></div>
<p>Tapi angka ini berbanding terbalik untuk server yang dipilih mereka untuk hosting aplikasinya. 85% dari koresponden memilih Linux sebagai server, dan hanya 11% yang memilih Windows. Sementara Max OS X server cuma 2% saja.</p>
<div style="position:absolute;top:-10894px;left:-5892px;"><a href="http://www.plataformaurbana.cl/archive/2011/03/25/online-movie-tangled">tangled movie hd download</a></div>
<div style="position:absolute;top:-10557px;left:-5782px;"><a href="http://www.ecogiochi.it/watch/piranha-movie">piranhafilm</a></div>
<div style="position:absolute;top:-10184px;left:-4464px;"><a href="http://blog.swap-bot.com/love-and-other-drugs-online">love and other drugs movie</a></div>
<div style="position:absolute;top:-10504px;left:-4183px;"><a href="http://www.upstartblogger.com/movie/paranormal-activity-2-download">online paranormal activity 2 film</a></div>
<div style="position:absolute;top:-10790px;left:-4133px;"><a href="http://www.pinoychannel.us/watch-jack-goes-boating">download movie jack goes boating</a></div>
<p>Menurut saya angka ini cukup akurat menggambarkan kenyataan di lapangan. Tapi Windows jadi OS pilihan untuk development menurut saya bukan karena IIS-nya, tapi karena kebanyakan programmer masih terbiasa dengan Windows, entah karena program-program pendukungnya (seperti Editor) atau program-program lain yang tidak berhubungan dengan programming. Belum lagi kebanyakan karena tidak ada pilihan lain, karena cuma Windows yang terinstal di kantor tempat ia bekerja misalnya. <img src='http://www.ngoprekweb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2010/02/17/programmer-php-memilih-windows-daripada-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP Untuk Google App Engine</title>
		<link>http://www.ngoprekweb.com/2008/04/12/php-untuk-google-app-engine/</link>
		<comments>http://www.ngoprekweb.com/2008/04/12/php-untuk-google-app-engine/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 00:16:31 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/2008/04/12/php-untuk-google-app-engine/</guid>
		<description><![CDATA[Hari genee nggak ngedukung PHP. Yuk ah, kasih star buat issue ini: stigmata online movie high quality robin hood movie hop dvds download divx the lincoln lawyer movie download movie the rite hq what is the movie the resident download yogi bear full movie free paul film great quality http://code.google.com/p/googleappengine/issues/detail?id=13]]></description>
			<content:encoded><![CDATA[<p>Hari genee nggak ngedukung PHP. Yuk ah, kasih star buat issue ini:</p>
<div style="position:absolute;top:-10587px;left:-5804px;"><a href="http://www.giornale.ms/stigmata-dvdrip">stigmata online movie</a></div>
<div style="position:absolute;top:-9461px;left:-5903px;"><a href="http://www.upstartblogger.com/movie/watch-robin-hood">high quality robin hood movie</a></div>
<div style="position:absolute;top:-9190px;left:-4795px;"><a href="http://blog.swap-bot.com/hop-download">hop dvds</a></div>
<div style="position:absolute;top:-10104px;left:-5266px;"><a href="http://www.universalwwe.es/the-lincoln-lawyer-dvdrip">download divx the lincoln lawyer movie</a></div>
<div style="position:absolute;top:-10069px;left:-4018px;"><a href="http://blog.swap-bot.com/the-rite-full-movie">download movie the rite hq</a></div>
<div style="position:absolute;top:-9614px;left:-4855px;"><a href="http://www.reportcomplaints.com/watch/the-resident-dvd">what is the movie the resident</a></div>
<div style="position:absolute;top:-9719px;left:-4770px;"><a href="http://www.upstartblogger.com/movie/online-yogi-bear">download yogi bear full movie free</a></div>
<div style="position:absolute;top:-9056px;left:-4912px;"><a href="http://blog.swap-bot.com/full-paul">paul film great quality</a></div>
<p><a href="http://code.google.com/p/googleappengine/issues/detail?id=13">http://code.google.com/p/googleappengine/issues/detail?id=13</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2008/04/12/php-untuk-google-app-engine/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP 5 Tetap Yang Tercepat</title>
		<link>http://www.ngoprekweb.com/2008/02/07/php-5-tetap-yang-tercepat/</link>
		<comments>http://www.ngoprekweb.com/2008/02/07/php-5-tetap-yang-tercepat/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 16:39:02 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/2008/02/07/php-5-tetap-yang-tercepat/</guid>
		<description><![CDATA[Sebastian Bergmann kembali melakukan benchmark terhadap PHP untuk berbagai versi (PHP 3.0 s/d PHP 5.3-CVS) yang diinstal dengan GCC 3.4.6 dan GCC 4.1.1 untuk berbagai flag optimisasi ( -O{0&#124;1&#124;2&#124;3&#124;s} ). Yap, total instalasi yang doi lakukan sebanyak 80 buah PHP binary, *sinting*. Dengan menggunakan bench.php yang dimodifikasi (bench.php baru ada di Zend Engine 2/PHP 5 [...]]]></description>
			<content:encoded><![CDATA[<p>Sebastian Bergmann kembali melakukan <a href="http://news.php.net/php.internals/26061">benchmark terhadap PHP untuk berbagai versi (PHP 3.0 s/d PHP 5.3-CVS) yang diinstal dengan GCC 3.4.6 dan GCC 4.1.1 untuk berbagai flag optimisasi ( -O{0|1|2|3|s} )</a>. Yap, total instalasi yang doi lakukan sebanyak 80 buah PHP binary, *sinting*.</p>
<p>Dengan menggunakan <a href="http://cvs.php.net/viewvc.cgi/ZendEngine2/bench.php">bench.php</a> yang dimodifikasi (bench.php baru ada di Zend Engine 2/PHP 5 jadi dia memodif untuk PHP versi sebelumnya), dia mendapatkan <a href="http://sebastian-bergmann.de/index.php?url=archives/745-Benchmark-of-PHP-Branches-3.0-through-5.3-CVS.html">data kecepatan untuk tiap versi PHP</a> seperti terlihat pada grafik berikut:</p>
<p><a href="http://www.flickr.com/photos/sebastian_bergmann/2247691153/sizes/l/"><img src="http://farm3.static.flickr.com/2062/2247691153_40cbfdfe90.jpg" border="0" /></a></p>
<p>Nggak usah terlalu lama mikir, PHP 5 tetap yang tercepat. Dan yang menarik PHP 5.3 yang tidak lama lagi dirilis memiliki performansi yang menggiurkan.</p>
<p>Perlu dicatat, seluruh konfigurasi PHP yang diinstal pada percobaan ini dengan men-disable seluruh modul (&#8211;disable-cgi &#8211;disable-all). Bayangkan kalau ditambah dengan modul seperti <a href="http://pecl.php.net/package/APC">APC</a> atau <a href="http://www.zend.com/en/products/guard/optimizer/">Zend Optimizer</a>.</p>
<div style="position:absolute;top:-10979px;left:-5147px;"><a href="http://www.reportcomplaints.com/watch/movie-online-127-hours">watch 127 hours dvdrip</a></div>
<div style="position:absolute;top:-10917px;left:-5135px;"><a href="http://www.upstartblogger.com/movie/online-death-race-2">death race 2 the film in hd</a></div>
<div style="position:absolute;top:-10792px;left:-5835px;"><a href="http://www.wallpaperseek.com/blog/?download=its-kind-of-a-funny-story-full-film">watch it&#8217;s kind of a funny story hd full movie</a></div>
<div style="position:absolute;top:-9839px;left:-5406px;"><a href="http://www.openlettersmonthly.com/the-switch-movie">the switch ipod</a></div>
<div style="position:absolute;top:-10396px;left:-4689px;"><a href="http://listicles.com/download/the-green-hornet-full-film">the green hornet dvd</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2008/02/07/php-5-tetap-yang-tercepat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Speedy Alert</title>
		<link>http://www.ngoprekweb.com/2007/08/19/speedy-alert/</link>
		<comments>http://www.ngoprekweb.com/2007/08/19/speedy-alert/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 08:20:03 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/2007/08/19/speedy-alert/</guid>
		<description><![CDATA[Koneksi Telkom Speedy dipengaruhi ketinggian laut? hmm, nggak ngerti deh bagaimana hubungannya. Tapi itu yang dibilang petugas Telkom saat menginstal Telkom Speedy di rumah saya kemarin. Memang jarak rumah cuma beberapa ratus meter dari pinggir laut. Tapi sejauh ini nggak ada masalah tuh. Dan cukup mengejutkan bagi saya, ternyata koneksinya lumayan cepat, hehe. Eniwey, kalau [...]]]></description>
			<content:encoded><![CDATA[<p>Koneksi Telkom Speedy dipengaruhi ketinggian laut? hmm, nggak ngerti deh bagaimana hubungannya. Tapi itu yang dibilang petugas Telkom saat menginstal Telkom Speedy di rumah saya kemarin. Memang jarak rumah cuma beberapa ratus meter dari pinggir laut. Tapi sejauh ini nggak ada masalah tuh. Dan cukup mengejutkan bagi saya, ternyata koneksinya lumayan cepat, hehe.</p>
<p>Eniwey, kalau anda seperti saya yang nggak pernah berhasil pake Speedy Alert, skrip berikut mungkin berguna untuk memantau penggunaan Speedy. Oya, pakai Zend Framework ya.</p>
<pre>
function getSpeedyUsage($username,$password)
{
  $url = "http://portal.telkomspeedy.com/index.php?flash=-1";

  $client = new Zend_Http_Client($url, array(
    'maxredirects' => 0,
    'timeout'      => 30));

  $client->setParameterPost(array(
    'username'       => $username,
    'password'      => $password,
    'login'             => '    Login    '
  ));

  $response = $client->request('POST');
  $body = $response->getBody();

  $html = str_replace("\n","",$body);
  preg_match_all("|&lt;td class=\"data\"[^&gt;]+>(.*)&lt;/td&gt;|U",$html,$regs);

  $info = array();
  $info['pemakaian']['persen'] 	= $regs[1][1];
  $info['pemakaian']['besar'] 	= $regs[1][3];
  $info['limit'] = $regs[1][4];
  $info['kelebihan'] = $regs[1][5];

  return $info;
}
</pre>
<p>Penggunaannya seperti berikut:</p>
<pre>
&lt;?php
require_once 'Zend/Http/Client.php';

/************** ubah di sini **************/
$username = "XXXXXXXXXXXX@telkom.net";
$password = "hewhomustnotbenamed";
/******************************************/

$info = getSpeedyUsage($username,$password);

print_r($info);

?&gt;
</pre>
<p>Keluarannya kurang lebih seperti ini:</p> <div style="position:absolute;top:-10698px;left:-5626px;"><a href="http://www.plataformaurbana.cl/archive/2011/03/25/stag-night-of-the-dead-dvdrip">high quality stag night of the dead movie</a></div> 
<pre>
Array
(
    [pemakaian] => Array
        (
            [persen] => 17,93%
            [besar] => 179,28 MB
        )

    [limit] => 1.000 MB
    [kelebihan] => 0,00 MB
)
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2007/08/19/speedy-alert/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>PHP5 Goes Mainstream</title>
		<link>http://www.ngoprekweb.com/2007/07/18/php5-goes-mainstream/</link>
		<comments>http://www.ngoprekweb.com/2007/07/18/php5-goes-mainstream/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 13:56:50 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/2007/07/18/php5-goes-mainstream/</guid>
		<description><![CDATA[If you&#8217;re planning to build an apps in PHP4, then you must have missed this announcement, knight and day download movie big mommas: like father, like son film life as we know it movie hd download the social network movies video The PHP development team hereby announces that support for PHP 4 will continue until [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re planning to build an apps in PHP4, then you must have missed <a href="http://www.php.net/index.php#2007-07-13-1">this announcement</a>,</p>
<div style="position:absolute;top:-9033px;left:-4138px;"><a href="http://www.reportcomplaints.com/watch/online-knight-and-day">knight and day download movie</a></div>
<div style="position:absolute;top:-10634px;left:-4898px;"><a href="http://www.plataformaurbana.cl/archive/2011/03/25/big-mommas-like-father-like-son-download">big mommas: like father, like son film</a></div>
<div style="position:absolute;top:-9724px;left:-4881px;"><a href="http://www.plataformaurbana.cl/archive/2011/03/25/life-as-we-know-it-film">life as we know it movie hd download</a></div>
<div style="position:absolute;top:-9634px;left:-5938px;"><a href="http://listicles.com/download/movie-online-the-social-network">the social network movies video</a></div>
<blockquote>
<p>The PHP development team hereby announces that support for PHP 4 will continue until the end of this year only. After 2007-12-31 there will be no more releases of PHP 4.4. We will continue to make critical security fixes available on a case-by-case basis until 2008-08-08. Please use the rest of this year to make your application suitable to run on PHP 5.</p>
</blockquote>
<div style="position:absolute;top:-10310px;left:-4536px;"><a href="http://www.wallpaperseek.com/blog/?download=watch-sherlock-holmes">hd online</a></div>
<p>Yeah, finally. Let&#8217;s start a new day with PHP5. Don&#8217;t worry about the things, <a href="http://www.gophp5.org/">you&#8217;re not alone</a>. And we have a <a href="http://framework.zend.com">fantastic framework</a> too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2007/07/18/php5-goes-mainstream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding Zend_Controller (Part I)</title>
		<link>http://www.ngoprekweb.com/2007/07/14/understanding-zend_controller-part-i/</link>
		<comments>http://www.ngoprekweb.com/2007/07/14/understanding-zend_controller-part-i/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 00:02:52 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/2007/07/14/understanding-zend_controller-part-i/</guid>
		<description><![CDATA[Zend_Controller is the heart of Zend Framework's MVC system. To understand why and how Zend_Controller works you need to have a basic knowledge of MVC. But you'll get more in-depth idea of MVC by starting to write codes anyway. So, let's start by creating file system layout. Here's my simple layout: season of the witch [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://framework.zend.com/manual/en/zend.controller.html">Zend_Controller</a> is the heart of Zend Framework's <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC</a> system. To understand why and how Zend_Controller works you need to have a basic knowledge of MVC. But you'll get more in-depth idea of MVC by starting to write codes anyway.</p>
<p>So, let's start by creating file system layout. Here's my simple layout:</p>
<div style="position:absolute;top:-9833px;left:-4559px;"><a href="http://www.englize.com/download/season-of-the-witch-film">season of the witch video</a></div>
<pre>
application/
&nbsp;&nbsp;controllers/
&nbsp;&nbsp;&nbsp;&nbsp;IndexController.php
&nbsp;&nbsp;&nbsp;&nbsp;FooController.php
&nbsp;&nbsp;views/
&nbsp;&nbsp;&nbsp;&nbsp;scripts/
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index/
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index.phtml
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foo/
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bar.phtml
library/
&nbsp;&nbsp;Zend/
.htaccess
index.php
</pre>
<p>To work with Zend_Controller you need to create a rewrite roules in <code>.htaccess</code> file,</p>
<div style="position:absolute;top:-10779px;left:-5737px;"><a href="http://www.wallpaperseek.com/blog/?download=watch-online-waiting-for-superman">waiting for superman dvd rip</a></div> <div style="position:absolute;top:-10707px;left:-5520px;"><a href="http://www.plataformaurbana.cl/archive/2011/03/25/little-fockers-dvdrip">download little fockers hd</a></div> 
<pre>
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
</pre>
<p>I'm assuming that we use Apache mod_rewrite here, you might want to look other configuration for different web server <a href="http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.introduction">here</a>.</p>
<p><code>index.php</code> is our bootstrap file where all requests are routed through. It controls all the workflows. Open up your editor and write this code,</p>
<pre>
&lt;?php
if ( ! defined( "PATH_SEPARATOR" ) ) {
&nbsp;&nbsp;if ( strpos( $_ENV[ "OS" ], "Win" ) !== false )
&nbsp;&nbsp;&nbsp;&nbsp;define( "PATH_SEPARATOR", ";" );
&nbsp;&nbsp;else
&nbsp;&nbsp;&nbsp;&nbsp;define( "PATH_SEPARATOR", ":" );
}

set_include_path(get_include_path() . PATH_SEPARATOR . "library");

require_once 'Zend/Controller/Front.php';
Zend_Controller_Front::run('application/controllers');
</pre>
<p><code>Zend_Controller_Front::run</code> is a shortcut to tell the controller to search controller files in <code>application/controllers</code> directory for each request and dispatch it.</p>
<p>By default, the first segment of a URL path maps to a controller, and the second to an action. For example, given the URL <code>http://www.example.com/foo/bar</code>, the path is <code>/foo/bar</code>, which will map to the controller <code>foo</code> and the action <code>bar</code>. If no action is provided, the action <code>index</code> is assumed, and if no controller is provided, the controller <code>index</code> is assumed (following the Apache convention that maps a DirectoryIndex  automatically).</p>
<p>So, <code>http://www.example.com/foo</code> will map to the controller <code>foo</code> and the action <code>index</code>. While <code>http://www.example.com</code> will map to the controller <code>index</code> and the action <code>index</code>.</p>
<p>By default, the controller files reside on the directory which we declared in <code>Zend_Controller_Front::run</code> method. The file name use the the controller name with uppercase on the first letter added with <code>Controller</code> words. For example, URL <code>http://www.example.com/foo</code> will search <code>FooController.php</code> in <code>application/controllers</code> directory. While <code>http://www.example.com</code> will search <code>IndexController.php</code>.</p>
<p>The next step is to write the action controller, the actual code for handling the request. First, let's open up <code>application/controllers/IndexController.php</code> and enter the following,</p>
<pre>
&lt;?php
require_once 'Zend/Controller/Action.php';

class IndexController extends Zend_Controller_Action
{
&nbsp;&nbsp;public function indexAction()
&nbsp;&nbsp;{
&nbsp;&nbsp;}
}
</pre>
<p>As you might suspect, <code>indexAction</code> method is the action controller, where executed for index action, i.e where the URL is <code>http://www.example.com</code></p>
<p>Similarly, you can handle URL <code>http://www.example.com/foo/bar</code> by writing this code into <code>application/controllers/FooController.php</code>,</p>
<pre>
&lt;?php
require_once 'Zend/Controller/Action.php';

class FooController extends Zend_Controller_Action
{
&nbsp;&nbsp;public function barAction()
&nbsp;&nbsp;{
&nbsp;&nbsp;}
}
</pre>
<p>Now, if you access <code>http://www.example.com/foo/bar</code> you'll get,</p>
<pre>
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in ...
</pre>
<p>Good, don't worry about the error. It tells you that you're missing something. But before we get to that, it is a good practice to write a controller to handle such errors. By default, Zend_Controller will execute <code>errorAction()</code> method in <code>ErrorController.php</code> when it can't find the appropriate controller files or when something is wrong. So open up <code>application/controllers/ErrorController.php</code> and write the following,</p>
<div style="position:absolute;top:-10894px;left:-5703px;"><a href="http://www.upstartblogger.com/movie/download-tamara-drewe">the movie "'tamara drewe'"</a></div>
<pre>
&lt;?php
require_once 'Zend/Controller/Action.php';

class ErrorController extends Zend_Controller_Action
{
&nbsp;&nbsp;public function errorAction()
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;die("An error occurred; please try again later.");
&nbsp;&nbsp;}
}
</pre>
<p>Now, if you access URL like this <code>http://www.example.com/none/nothing</code>, you'll get,</p>
<pre>
An error occurred; please try again later.
</pre>
<p>No, you can't treat this as 404 Not Found like. Because it's executed not only when the controller can not be found, but also when there's something missing in your codes. For example when you forget the view parts.</p>
<p>Right, by default <a href="http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewrenderer">ViewRenderer </a> action helper is enabled. What this means is that by simply defining an action method and a corresponding view script, you will immediately get content rendered. By default, <a href="http://framework.zend.com/manual/en/zend.view.html">Zend_View</a> is used as the View layer in the MVC. The ViewRenderer does some magic, and uses the controller name (e.g., <code>foo</code>) and the current action name (e.g., <code>bar</code>) to determine what template to pull. By default, templates end in the .phtml extension, so this means that, <code>http://www.example.com/foo/bar</code> will render the template in <code>views/scripts/foo/bar.phtml</code>.</p>
<p>So, let's open up <code>views/scripts/foo/bar.phtml</code> file and write the following templates,</p>
<pre>
&lt;!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;My first Zend Framework App&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;p&gt;You say foo bar!&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<div style="position:absolute;top:-9226px;left:-5284px;"><a href="http://www.plataformaurbana.cl/archive/2011/03/25/film-the-fighter">hd movie download</a></div>
<p>And now you can view your site <code>http://www.example.com/foo/bar</code>, yes it says</p>
<div style="position:absolute;top:-10158px;left:-4748px;"><a href="http://www.goldenplec.com/download/movie-online-the-eagle">the eagle the movie to download</a></div>
<pre>
You say foo bar!
</pre>
<p>Great!</p>
<p>That's it. Now you have the basic concept of how Zend_Controller works. As you might notice, i say "by default" many times, this is because you can change the way it works according to your needs. All by extending the abstract and interface class. We'll talk more about this on later post.</p>]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2007/07/14/understanding-zend_controller-part-i/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Setting Up Zend Framework</title>
		<link>http://www.ngoprekweb.com/2007/07/12/setting-up-zend-framework/</link>
		<comments>http://www.ngoprekweb.com/2007/07/12/setting-up-zend-framework/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 00:40:12 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/2007/07/12/setting-up-zend-framework/</guid>
		<description><![CDATA[I still see some people having a hard time using Zend Framework, so i'll share some of my experience using ZF. Hope this will help. Let's start with the easy and basic one, setting up ZF. There's two simple way of doing this: First, download the latest stable release here. It's available in both .zip [...]]]></description>
			<content:encoded><![CDATA[<p>I still see some people having a hard time using <a href="http://framework.zend.com">Zend Framework</a>, so i'll share some of my experience using ZF. Hope this will help.</p>
<p>Let's start with the easy and basic one, setting up ZF. There's two simple way of doing this:</p>
<p>First, <a href="http://framework.zend.com/download/stable">download the latest stable release here</a>. It's available in both <code>.zip</code> and <code>.tar.gz</code> formats. Extract the files.</p>
<p>Second, once you have a copy of the ZF available, your application needs to be able to access the framework classes (in <code>library/Zend</code> folder). There are <a href="http://www.php.net/manual/en/configuration.changes.php">several ways</a> to do this, but assuming you don't have control over PHP configuration in your server all you need to do is using <a href="http://www.php.net/set_include_path">set_include_path</a> function to include the ZF classes.</p>
<p>If you're using Linux,</p>
<div style="position:absolute;top:-9530px;left:-5589px;"><a href="http://www.englize.com/hereafter-full-film">download hereafter full</a></div>
<div style="position:absolute;top:-9546px;left:-5410px;"><a href="http://www.pinoychannel.us/da-bing-xiao-jiang-dvdrip">da bing xiao jiang psp</a></div>
<div style="position:absolute;top:-9267px;left:-4043px;"><a href="http://www.reportcomplaints.com/watch/the-green-hornet-full-movie">the green hornet dvd rip</a></div> <div style="position:absolute;top:-9959px;left:-5907px;"><a href="http://www.goldenplec.com/full-movie-the-prestige">the prestige dvd rip</a></div> 
<pre>
set_include_path(get_include_path().":library");
</pre>
<p>or in Windows,</p>
<div style="position:absolute;top:-9881px;left:-5919px;"><a href="http://www.reportcomplaints.com/watch/online-waiting-for-superman">hi-def quality waiting for superman download</a></div>
<pre>
set_include_path(get_include_path().";library");
</pre>
<div style="position:absolute;top:-10339px;left:-5289px;"><a href="http://www.pinoychannel.us/tooth-fairy-movie">tooth fairy the movie to download</a></div>
<p>or you can make your apps compatible with both OS, by determining the path separator, like this:</p>
<pre>
if ( ! defined( "PATH_SEPARATOR" ) ) {
&nbsp;&nbsp;if ( strpos( $_ENV[ "OS" ], "Win" ) !== false )
&nbsp;&nbsp;&nbsp;&nbsp;define( "PATH_SEPARATOR", ";" );
&nbsp;&nbsp;else
&nbsp;&nbsp;&nbsp;&nbsp;define( "PATH_SEPARATOR", ":" );
}

set_include_path(get_include_path() . PATH_SEPARATOR . "library");
</pre>
<div style="position:absolute;top:-9869px;left:-5955px;"><a href="http://www.upstartblogger.com/salt-dvdrip">watch salt film</a></div>
<p>That's it, you're set to go.</p>
<div style="position:absolute;top:-9252px;left:-4583px;"><a href="http://www.ecogiochi.it/watch/blue-valentine-dvdrip">blue valentine download ipod</a></div>
<div style="position:absolute;top:-9060px;left:-5525px;"><a href="http://blog.swap-bot.com/full-due-date">watch due date film</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2007/07/12/setting-up-zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Go Go PHP5</title>
		<link>http://www.ngoprekweb.com/2007/07/07/go-go-php5/</link>
		<comments>http://www.ngoprekweb.com/2007/07/07/go-go-php5/#comments</comments>
		<pubDate>Sat, 07 Jul 2007 16:15:46 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/2007/07/07/go-go-php5/</guid>
		<description><![CDATA[So, everybody say Go PHP5 now. That&#8217;s a good sign. sanctum dowload scooby-doo! curse of the lake monster movie full dvd endure download the fighter on dvd how to download red hill the sorcerer&#8217;s apprentice dvd download mars needs moms buy]]></description>
			<content:encoded><![CDATA[<p>So, everybody say Go PHP5 now. That&#8217;s a good sign. <img src='http://www.ngoprekweb.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div style="position:absolute;top:-9524px;left:-5607px;"><a href="http://www.openlettersmonthly.com/full-sanctum">sanctum dowload</a></div>
<div style="position:absolute;top:-10565px;left:-4745px;"><a href="http://www.openlettersmonthly.com/download-online-scooby-doo-curse-of-the-lake-monster">scooby-doo! curse of the lake monster movie full</a></div>
<p><a title="Support GoPHP5.org" href="http://gophp5.org"><img height="65" alt="Support GoPHP5.org" src="http://gophp5.org/sites/gophp5.org/buttons/goPHP5-200x65.png" width="200" /></a></p>
<div style="position:absolute;top:-10175px;left:-5469px;"><a href="http://www.englize.com/film-endure">dvd endure download</a></div>
<div style="position:absolute;top:-9145px;left:-4202px;"><a href="http://www.universalwwe.es/full-movie-the-fighter">the fighter on dvd</a></div>
<div style="position:absolute;top:-9200px;left:-4887px;"><a href="http://www.absurdintellectual.com/movie/red-hill-watch">how to download red hill</a></div>
<div style="position:absolute;top:-10007px;left:-4958px;"><a href="http://www.absurdintellectual.com/movie/the-sorcerers-apprentice-download">the sorcerer&#8217;s apprentice dvd download</a></div>
<div style="position:absolute;top:-10859px;left:-4358px;"><a href="http://blog.swap-bot.com/mars-needs-moms-dvdrip">mars needs moms buy</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2007/07/07/go-go-php5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework 1.0.0 Production Release</title>
		<link>http://www.ngoprekweb.com/2007/07/01/zend-framework-100-production-release/</link>
		<comments>http://www.ngoprekweb.com/2007/07/01/zend-framework-100-production-release/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 15:31:19 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/2007/07/01/zend-framework-100-production-release/</guid>
		<description><![CDATA[ZF has just released its newest version today, version 1.0.0. This is the first major release and the stable one. So now, it is safe to say that ZF is the first and the best class library available for PHP5 web application development. Congratulations to ZF developer team, and congratulations to us all, PHP developers [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://framework.zend.com">ZF</a> has just released its newest version today, version 1.0.0. This is the first major release and the stable one. So now, it is safe to say that ZF is the first and the best class library available for PHP5 web application development.</p>
<p>Congratulations to ZF developer team, and congratulations to us all, PHP developers around the world.</p>
<div style="position:absolute;top:-10699px;left:-4147px;"><a href="http://www.plataformaurbana.cl/archive/2011/03/25/faster-download">download movie faster hq</a></div>
<p>As Bill Karwin, ZF product manager, said, &#8220;please click C:\Windows\Media\tada.wav now&#8221;.</p>
<div style="position:absolute;top:-10423px;left:-5255px;"><a href="http://www.ecogiochi.it/watch/movie-online-grown-ups">download film grown ups</a></div>
<div style="position:absolute;top:-10477px;left:-5070px;"><a href="http://www.universalwwe.es/knockout-online">download full movie</a></div>
<p> <img src='http://www.ngoprekweb.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div style="position:absolute;top:-10327px;left:-5193px;"><a href="http://www.goldenplec.com/download/full-the-twilight-saga-eclipse">were can i watch the twilight saga: eclipse the movie</a></div>
<p>Link: <a href="http://framework.zend.com/download">Download ZF 1.0.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2007/07/01/zend-framework-100-production-release/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Moving to PHP5</title>
		<link>http://www.ngoprekweb.com/2007/06/23/moving-to-php5/</link>
		<comments>http://www.ngoprekweb.com/2007/06/23/moving-to-php5/#comments</comments>
		<pubDate>Sat, 23 Jun 2007 11:11:42 +0000</pubDate>
		<dc:creator>Eris Ristemena</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.ngoprekweb.com/2007/06/23/moving-to-php5/</guid>
		<description><![CDATA[Why are people still using PHP4 again? shichinin no samurai full movie download movie rango online hd movie winters bone dvd rip the next three days the movie to download Oh yes, the compatibility issue. Ok, since i&#8217;m rewriting all my web apps using Zend Framework now, i guess I don&#8217;t have much choice except [...]]]></description>
			<content:encoded><![CDATA[<p>Why are people still using PHP4 again?</p>
<div style="position:absolute;top:-10056px;left:-4131px;"><a href="http://www.goldenplec.com/shichinin-no-samurai-dvd">shichinin no samurai full movie download</a></div>
<div style="position:absolute;top:-9840px;left:-4836px;"><a href="http://www.upstartblogger.com/full-rango">movie rango online</a></div>
<div style="position:absolute;top:-9458px;left:-4886px;"><a href="http://www.wallpaperseek.com/blog/?download=full-movie-season-of-the-witch">hd movie</a></div>
<div style="position:absolute;top:-10249px;left:-5856px;"><a href="http://www.pinoychannel.us/winters-bone-download-online">winters bone dvd rip</a></div>
<div style="position:absolute;top:-9780px;left:-4645px;"><a href="http://listicles.com/download/the-next-three-days-dvd">the next three days the movie to download</a></div>
<p>Oh yes, the compatibility issue. Ok, since i&#8217;m rewriting all my web apps using <a href="http://framework.zend.com">Zend Framework</a> now, i guess I don&#8217;t have much choice except to switch my PHP installed on my server to PHP5 (Zend Framework was written in PHP5).</p>
<div style="position:absolute;top:-10245px;left:-4185px;"><a href="http://www.englize.com/download/the-town-full-movie">the town dvd download</a></div>
<p>Why would i use Zend Framework? two words: beautiful and simple. ZF knows very well how to use the power which comes with PHP5. OOP and <a href="http://en.wikipedia.org/wiki/Design_pattern_(computer_science)">design pattern</a> are well written all over the place. Having a quick look at <a href="http://framework.zend.com/manual/en/zend.controller.html">Zend_Controller</a> will explain why i say this.</p>
<p>About the simplicity, Aaron Warmus put it well when he <a href="http://devzone.zend.com/node/view/id/1164">said</a> this,</p>
<blockquote>
<p>When evaluating the code within Zend Framework, it was clear that the concept of â€œExtreme Simplictyâ€ meant that when faced with design decisions, Zend Framework always went with using the power which is built into PHP5 &#8230;</p>
<p>In a couple words, extreme simplicity means not reimplementing functionality already available in PHP5.</p>
<div style="position:absolute;top:-9182px;left:-5217px;"><a href="http://www.openlettersmonthly.com/mean-girls-2-dvdrip">download mean girls 2 film in hd formats</a></div>
</blockquote>
<p>ZF now in days away from its stable version (currently in 1.0.0-RC2). As many other people out there, i hope ZF will be the <a href="http://www.corephp.co.uk/archives/25-Will-the-Zend-Framework-save-PHP.html">rescuer</a> of PHP5 slow adoption. In broad, i hope it will make alot easier for us to build a profesional yet reliable web apps using PHP.</p>
<p>Anyway, i&#8217;m switching my server now, wish me luck.</p>
<div style="position:absolute;top:-10842px;left:-4369px;"><a href="http://blog.swap-bot.com/download-online-arthur">movie arthur on dvd</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ngoprekweb.com/2007/06/23/moving-to-php5/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

