<?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>DotKernel PHP Application Framework &#187; PHP Development</title>
	<atom:link href="http://www.dotkernel.com/blog/php-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotkernel.com</link>
	<description>Implementation of  Zend Framework</description>
	<lastBuildDate>Fri, 30 Jul 2010 11:21:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP Environment : Development Staging Production</title>
		<link>http://www.dotkernel.com/php-development/php-environment-development-staging-production/</link>
		<comments>http://www.dotkernel.com/php-development/php-environment-development-staging-production/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 11:21:55 +0000</pubDate>
		<dc:creator>Teo</dc:creator>
				<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.dotkernel.com/?p=903</guid>
		<description><![CDATA[In hosted software development, the environment refers to a server tier designated to a specific stage in a release process. The purpose of these environments is to improve the development, testing and release processes in client-server applications. The most common &#8230; <a href="http://www.dotkernel.com/php-development/php-environment-development-staging-production/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In hosted software development, the environment refers to a server tier designated to a specific stage in a release process. The purpose of these environments is to improve the development, testing and release processes in client-server applications. The most common environments are described below.</p>
<h3>Development</h3>
<p>This is where the software is developed – it’s<em> the working environment for individual developers</em> or small teams. The purpose of this environment is for the developer to work on local host, separate from the rest of the team, allowing them to make various changes without worrying that it may alter the work of the other members of the team.</p>
<h3>Staging</h3>
<p>It is <em>used to assemble, test and review the application before it goes into production</em>. Usually the staging environment tries to simulate as much as possible the production environment (hardware and software-wise). Normally, before releasing an update version of the application on the production environment, the update must be tested on the staging environment. This environment can also be used as a demonstration/training environment.</p>
<h3>Production</h3>
<p>It is <em>the “live” environment</em>, where the final application goes out to the world and becomes active.</p>
<p>To switch from one environment to another use the <em><strong>Subversion</strong></em> <em>source code</em>.</p>
<p><a title=" Downloaded 171 times" href="../download/?did=6">Using SVN on Aptana</a> is an article that explains how to set your <em>development </em>environment on your local computer and then to change it on your <em>staging </em>environment.</p>
<p>To better understand the development of an application using environments, check this helpful article <a href="http://dltj.org/article/software-development-practice/">http://dltj.org/article/software-development-practice/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dotkernel.com/php-development/php-environment-development-staging-production/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>End of Support for PHP 5.2.x Branch</title>
		<link>http://www.dotkernel.com/php-development/end-of-support-for-php-5-2-x-branch/</link>
		<comments>http://www.dotkernel.com/php-development/end-of-support-for-php-5-2-x-branch/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 20:53:04 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.dotkernel.com/?p=790</guid>
		<description><![CDATA[PHP 5.2.14 was just released . And this is the end of support for 5.2.x branch of PHP . NOTE:This release marks the end of the active support for PHP 5.2. Following this release the PHP 5.2 series will receive &#8230; <a href="http://www.dotkernel.com/php-development/end-of-support-for-php-5-2-x-branch/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.php.net/ChangeLog-5.php#5.2.14" target="_blank">PHP 5.2.14</a> was just released . And this is the end of support for 5.2.x branch of PHP .</p>
<blockquote><p><strong>NOTE:</strong>This release marks the end of the active support  for PHP 5.2. Following this release the PHP 5.2 series will receive no  further active bug maintenance. Security fixes for PHP 5.2 might be  published on a case by cases basis. All users of PHP 5.2 are encouraged  to upgrade to PHP 5.3</p></blockquote>
<p><a href="http://www.php.net/ChangeLog-5.php#5.3.3" target="_blank"> PHP 5.3.3</a> is just released ,  so is time to upgrade every project  to PHP 5.3.x branch, and also upgrade all servers to 5.3.x</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dotkernel.com/php-development/end-of-support-for-php-5-2-x-branch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protection against SQL Injection using PDO and Zend Framework &#8211; part 2</title>
		<link>http://www.dotkernel.com/php-development/protection-against-sql-injection-using-pdo-and-zend-framework-part-2/</link>
		<comments>http://www.dotkernel.com/php-development/protection-against-sql-injection-using-pdo-and-zend-framework-part-2/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 12:37:19 +0000</pubDate>
		<dc:creator>Teo</dc:creator>
				<category><![CDATA[Best Practice]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[SQL Injection]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.dotkernel.com/?p=526</guid>
		<description><![CDATA[Following the preview article about SQL Injection, here is more &#8211; a strong argument why you should use Zend Framework for handling database access. Zend_Db is the primary class used for access the database, but there is more: Zend_Db_Statement, Zend_Db_Select &#8230; <a href="http://www.dotkernel.com/php-development/protection-against-sql-injection-using-pdo-and-zend-framework-part-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Following the preview article about <a title="Protection against SQL Injection using PDO and Zend Framework" href="http://www.dotkernel.com/php-development/protection-against-sql-injection-using-pdo-and-zend-framework/" target="_self">SQL Injection</a>, here is more &#8211; a strong argument why you should use Zend Framework for handling database access. <em>Zend_Db</em> is the primary class used for access the database, but there is more: <em>Zend_Db_Statement</em>, <em>Zend_Db_Select</em> and <em>Zend_Db_Tables</em>.<br />
What you should know about their methods is:</p>
<ul>
<li><em><a title="details" href="http://framework.zend.com/apidoc/core/Zend_Db/Adapter/Zend_Db_Adapter_Abstract.html#query">query</a> (mixed $sql,  [mixed $bind  = array()])</em>
<ul>
<li>use prepare statements internally</li>
<li>but SQL Injection is still possible if $sql is dynamically created</li>
</ul>
</li>
<li><em><a title="details" href="http://framework.zend.com/apidoc/core/Zend_Db/Adapter/Zend_Db_Adapter_Abstract.html#fetchAll">fetchAll</a> (string|Zend_Db_Select $sql, [mixed $bind = array()],  [mixed $fetchMode  = null])</em>
<ul>
<li>all the fetch methods are using prepared statements internally</li>
<li>but SQL Injection is still possible if $sql is dynamically created</li>
</ul>
</li>
<li><em><a title="details" href="http://framework.zend.com/apidoc/core/Zend_Db/Adapter/Zend_Db_Adapter_Abstract.html#insert">insert</a> (mixed $table,   $bind)</em>
<ul>
<li>use prepare statements internally</li>
<li>so, SQL Injection is not possible</li>
</ul>
</li>
<li><em><a title="details" href="http://framework.zend.com/apidoc/core/Zend_Db/Adapter/Zend_Db_Adapter_Abstract.html#update">update</a> (mixed $table,   $bind, [mixed $where = ''])</em>
<ul>
<li>use prepare statements internally</li>
</ul>
<ul>
<li>but SQL Injection may be possible if $where is created dynamically</li>
</ul>
</li>
<li><em><a title="details" href="http://framework.zend.com/apidoc/core/Zend_Db/Adapter/Zend_Db_Adapter_Abstract.html#delete">delete</a> (mixed $table,  [mixed $where  = ''])</em>
<ul>
<li>SQL Injection may be possible if $where is created dynamically</li>
</ul>
</li>
</ul>
<p><em><strong>Note*:</strong></em> even if you use prepared statements using <em>Zend_Db</em> methods, SQL Injection is still possible if <em>WHERE </em>and <em>ORDER BY</em> clause are wrongly written, so pay attention to them.</p>
<p>For more details see <a title="Secure Programming with the Zend-Framework" href="http://www.suspekt.org/downloads/DPC_Secure_Programming_With_The_Zend_Framework.pdf" target="_blank">Stefan Esser slides</a>.</p>
<p>PS. A short <a href="http://www.dustinweber.com/main-page/type-casting-in-php-whats-the-point/">tip</a>, you can use cast type to avoid SQL Injection in WHERE clause where is possible.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$sql</span><span style="color: #339933;">=</span> <span style="color: #0000ff;">'SELECT * FROM table WHERE id = '</span> <span style="color: #339933;">.</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dotkernel.com/php-development/protection-against-sql-injection-using-pdo-and-zend-framework-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protection against SQL Injection using  PDO and Zend Framework</title>
		<link>http://www.dotkernel.com/php-development/protection-against-sql-injection-using-pdo-and-zend-framework/</link>
		<comments>http://www.dotkernel.com/php-development/protection-against-sql-injection-using-pdo-and-zend-framework/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 15:21:40 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[Best Practice]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[SQL Injection]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.dotkernel.com/?p=524</guid>
		<description><![CDATA[SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. Usually, user input is not filtered by the script and is passed into a SQL statement. PDO – PHP Data Objects – &#8230; <a href="http://www.dotkernel.com/php-development/protection-against-sql-injection-using-pdo-and-zend-framework/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. Usually, <em>user input is not filtered by the script and is passed into a SQL statement.</em></p>
<p><strong>PDO – PHP Data Objects </strong>– is a database access layer providing a standardized method of access to multiple databases.  PDO provides a <em>data-access abstraction layer</em>, meaning that depending on what database you&#8217;re using, you will have apply the same functions to issue queries and fetch data. <strong><em>PDO does not provide a database abstraction;</em></strong> it doesn&#8217;t rewrite SQL or emulate missing features. Among  PDO benefits there are:<br />
-    Access methods allow complete control over how attributes are read and written<br />
-    Validation on a per-record and per-attribute level<br />
-    Easier fetching of objects from related table<br />
-    Reusable logic &#8211; means that the same codebase is much easier to maintain<br />
-    Cleaner code by using object oriented code<br />
-    Less errors from SQL query generation<br />
-    Last but not least : Protection against SQL injection</p>
<p>In Zend Framework for database access, methods usually support prepared statements. Dynamic SQL queries are allowed, but you must escape all the parameter, otherwise you have SQL injection.  <strong><em>Because of this, prepared statements are encouraged to be used. They can handle escaping parameters for you.</em></strong><br />
Most people believe that using prepared statements they are 100% protected from SQL injection. But this is by far true. Input data should always be validated and sanitized, and PDO should be seen as another line of defense. PDO is not protecting you from other security vulnerabilities like XSS<em>(cross-site scripting)</em>, but helps protect your application against SQL injection.</p>
<p>It may also occur a problem in Zend Framework w<em>hen you have SQL injection in your application while you are using PDO_MySQL.</em> <em><strong>PDO_MySQL is a more dangerous application than any other traditional MySQL applications. Traditional MySQL allows only a single SQL query. In PDO_MySQL there is no such limitation, but you risk to be injected with multiple queries.</strong> </em>To avoid this you should try to use the correct prepared statements from Zend Framework. You should also pay attention when you have in your SQL query <em>WHERE IN</em> and <em>ORDER BY;</em> they cannot be handled by prepare statements normally. In this case you should escape your data.</p>
<p>Zend_Db has two escaping methods which can be used: <em>quote()</em> and <em>quoteIdentifier()</em>. Note that these two methods are handling strings by putting them between single quotes.</p>
<p>For more details see:</p>
<p><a href="http://ezinearticles.com/?SQL-Injection-Protection-in-PHP-With-PDO&amp;id=1815110" target="_blank">http://ezinearticles.com/?SQL-Injection-Protection-in-PHP-With-PDO&amp;id=1815110</a></p>
<p><a href="http://www.zend.com/webinar/Framework/70170000000bEs9-webinar-secure-application-development-with-the-ZF-20100505.flv" target="_blank">http://www.zend.com/webinar/Framework/70170000000bEs9-webinar-secure-application-development-with-the-ZF-20100505.flv</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dotkernel.com/php-development/protection-against-sql-injection-using-pdo-and-zend-framework/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PHP support back in Aptana 3.0</title>
		<link>http://www.dotkernel.com/php-development/php-support-back-in-aptana-3-0/</link>
		<comments>http://www.dotkernel.com/php-development/php-support-back-in-aptana-3-0/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 22:20:52 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.dotkernel.com/?p=436</guid>
		<description><![CDATA[Aptana 3.0 is in beta stage, can be downloaded from the official site . The very super good news is that Aptana PHP Support is back , based on an annoucement from their forum. And even more,  will be integrated &#8230; <a href="http://www.dotkernel.com/php-development/php-support-back-in-aptana-3-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Aptana 3.0 is in beta stage, can be downloaded from the <a title="Aptana " href="http://www.aptana.com/products/studio3" target="_blank">official site</a> .</p>
<p>The very super good news is that Aptana PHP Support is back , based on an annoucement from their <a href="https://aptanastudio.tenderapp.com/discussions/questions/419-php-in-studio-3" target="_blank">forum</a>. And even more,  will be integrated in Studio 3 core, not as a separate plugin.</p>
<blockquote><p>Aptana PHP is coming back. We are in the process of developing and integrating it into the Studio 3.<br />
The debugger will also be introduced, but it will take a few weeks till you&#8217;ll be able to get it.</p>
<p>At the moment, the idea is to provide the PHP debugger as a separate set of plugins that you will be able to grab from the Studio. The majority of the PHP editing capabilities will be integrated into, and delivered with, the Studio core.</p>
<p>Cheers,<br />
-Shalom G</p>
<p>p.s. You can follow us on twitter for any major announcements, or follow me &#8216;sgibly&#8217; for more frequent progress updates.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dotkernel.com/php-development/php-support-back-in-aptana-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aptana PHP installation in Aptana 2.x</title>
		<link>http://www.dotkernel.com/php-development/aptana-php-installation-in-aptana-2-x/</link>
		<comments>http://www.dotkernel.com/php-development/aptana-php-installation-in-aptana-2-x/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 15:34:34 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.dotkernel.com/?p=63</guid>
		<description><![CDATA[As all aptana fans know, Aptana PHP plugin was discontinued in Aptana 2.x, in favor of PDT. But PDT is a joke, not suitable for professional PHP development, major features are missing. So if you want to continue using Aptana &#8230; <a href="http://www.dotkernel.com/php-development/aptana-php-installation-in-aptana-2-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As all <a href="http://www.aptana.org/" target="_blank">aptana</a> fans know, <a href="http://www.aptana.org/php" target="_blank">Aptana PHP</a> plugin was discontinued in Aptana 2.x, in favor of PDT.<br />
 But PDT is a joke, not suitable for professional PHP development, major features are missing.<br />
 So if you want to continue using Aptana PHP, that&#8217;s what need to be done:</p>
<ol>
<li>Aptana -> Help -> Install New Software</li>
<li>Add http://update.aptana.com/install/php</li>
<li>Then select Aptana PHP and install it.</li>
</ol>
<p>In case you don&#8217;t have yet a SVN plugin, go to </p>
<ol>
<li>Aptana -> Help -> Install Aptana Features</li>
<li>Others -> Subclipse</li>
<li>Follow the instructions</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.dotkernel.com/php-development/aptana-php-installation-in-aptana-2-x/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
