<?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>Blog for web development &#187; PHP</title>
	<atom:link href="http://nik.chankov.net/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://nik.chankov.net</link>
	<description>Technical weblog for articles and titorials related to web development.</description>
	<lastBuildDate>Sat, 27 Feb 2010 21:46:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problem with mysql_real_escape_string when Sanitize your data.</title>
		<link>http://nik.chankov.net/2010/02/28/problem-with-mysql_real_escape_string-when-sanitize-your-data/</link>
		<comments>http://nik.chankov.net/2010/02/28/problem-with-mysql_real_escape_string-when-sanitize-your-data/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 21:46:28 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[sanitize]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=1084</guid>
		<description><![CDATA[When building applications is always smart to check and clean the user input. This is a must when you building a website or public application.
I create always an instance of Sanitize class in my AppController and then using it in all of my controllers like this

&#60;?php
uses&#40;'Sanitize'&#41;;
class AppController extends Controller &#123;
&#160; &#160; function beforeFilter&#40;&#41;&#123;
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2010/02/28/problem-with-mysql_real_escape_string-when-sanitize-your-data/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Detecting if the cookies are enabled with PHP</title>
		<link>http://nik.chankov.net/2010/01/16/detecting-if-the-cookies-are-enabled-with-php/</link>
		<comments>http://nik.chankov.net/2010/01/16/detecting-if-the-cookies-are-enabled-with-php/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 14:03:41 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Cookies]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=1073</guid>
		<description><![CDATA[For my current project I need a detection if the cookies are enabled or not in the user&#8217;s browser.
The easiest way to do this is by using this code:
&#60;?php
setcookie&#40;'test', 1, time&#40;&#41;+3600&#41;;
if&#40;!isset&#40;$_GET&#91;'cookies'&#93;&#41;&#41;&#123;
&#160; &#160; header&#40;'Location:/info.php?cookies=true'&#41;;
&#125;
if&#40;count&#40;$_COOKIE&#41; &#62; 0&#41;&#123;
&#160; &#160; echo &#34;Cookies are yummy!&#34;;
&#125; else &#123;
&#160; &#160; echo &#34;You didn't bring any cookies here. We are hungry!&#34;;
&#125;
?&#62;
The CakePHP way [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2010/01/16/detecting-if-the-cookies-are-enabled-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CakePHP Excel Helper</title>
		<link>http://nik.chankov.net/2009/11/21/cakephp-excel-helper/</link>
		<comments>http://nik.chankov.net/2009/11/21/cakephp-excel-helper/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 15:29:08 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Helper]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=1049</guid>
		<description><![CDATA[This is a helper for building multi-sheets Excel documents in CakePHP. The hepler was inspired from Yuen Ying&#8217;s blog post, but it&#8217;s extended to support multiple sheets.

The helper:
&#60;?php
/**
&#160;* This xls helper is based on the one at
&#160;* http://ykyuen.wordpress.com/2009/10/04/cakephp-export-data-to-a-xls-file/
&#160;* actually creates an xml which is openable in Microsoft Excel.
&#160;* Extended by Nik Chankov 
&#160;* Originally written [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/11/21/cakephp-excel-helper/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Web based CakePHP Project generation tool</title>
		<link>http://nik.chankov.net/2009/10/23/web-based-cakephp-project-generation-tool/</link>
		<comments>http://nik.chankov.net/2009/10/23/web-based-cakephp-project-generation-tool/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 18:43:35 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Atlas]]></category>
		<category><![CDATA[Tool]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=1007</guid>
		<description><![CDATA[Yesterday I found a tool which could be handy for rookie CakePHP developers. Atlas is a web code generator based in CakePHP. As a glance it&#8217;s a web alternative of CakePHP bake console which is a nice idea indeed.
My first impression was that tool is like diamond in the mud and I was wondering how [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/10/23/web-based-cakephp-project-generation-tool/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to use aggregation SQL functions with CakePHP</title>
		<link>http://nik.chankov.net/2009/09/10/how-to-use-aggregation-sql-functions-with-cakephp/</link>
		<comments>http://nik.chankov.net/2009/09/10/how-to-use-aggregation-sql-functions-with-cakephp/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 18:34:46 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=953</guid>
		<description><![CDATA[Have you ever wondering how to find MAX, MIN or AVG of a database table column in CakePHP way? Well I haven&#8217;t since yesterday. The solution is quite simple and obvious.
Lets say you want to show the average views per post (in the example we have the views field in every post).
The SQL should be [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/09/10/how-to-use-aggregation-sql-functions-with-cakephp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JSON and CakePHP</title>
		<link>http://nik.chankov.net/2009/07/27/json-and-cakephp/</link>
		<comments>http://nik.chankov.net/2009/07/27/json-and-cakephp/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 19:14:12 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=938</guid>
		<description><![CDATA[Last few articles in this blog are only for stupid problems and unfortunately this one will be the same.
I had to use JSON to update some chained select boxes. I am using one jQuery plugin for this. The problem is that if you code, most likely your debug setting in the core.php file is set [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/07/27/json-and-cakephp/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>linxspy.com &#8211; track your links</title>
		<link>http://nik.chankov.net/2009/07/17/linxspy-com-track-your-links/</link>
		<comments>http://nik.chankov.net/2009/07/17/linxspy-com-track-your-links/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 20:41:16 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[link exchange]]></category>
		<category><![CDATA[linxspy]]></category>
		<category><![CDATA[partner]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=912</guid>
		<description><![CDATA[Today I want to present you a small service which I wrote for a week /including the design/.  
I&#8217;ve wrote it, because few times I&#8217;ve exchanged some links with strangers and few weeks after this, my link was disappeared from their sites while their was on mine. It is a bit unfair isn&#8217;t it? [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/07/17/linxspy-com-track-your-links/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Passing variables to all Models from the Controller &#8211; strict MVC way</title>
		<link>http://nik.chankov.net/2009/04/21/passing-variables-to-all-models-from-the-controller-strict-mvc-way/</link>
		<comments>http://nik.chankov.net/2009/04/21/passing-variables-to-all-models-from-the-controller-strict-mvc-way/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 18:49:20 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Behaviour]]></category>
		<category><![CDATA[Soft delete]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=860</guid>
		<description><![CDATA[It&#8217;s really easy to find inspiration when you developing on CakePHP. For the current project I need to create global (for all models) behavior which stores creator and modifier as well as deleter and deleted (for soft-delete).
What are the requirements
1. For every table (or at least the most of them) there are fields 6 fields: [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/04/21/passing-variables-to-all-models-from-the-controller-strict-mvc-way/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Autocompleter plugin v 1.2</title>
		<link>http://nik.chankov.net/2009/04/03/autocompleter-plugin-v-12/</link>
		<comments>http://nik.chankov.net/2009/04/03/autocompleter-plugin-v-12/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 09:19:50 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Autocompleter]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=806</guid>
		<description><![CDATA[Hey guys,
today I&#8217;ve released a new version of the Wordpress Plug-in &#8220;Autocompleter&#8221;. 
What is the change?
The new version contains ability to display number of matches per word or phrase in the drop-down. The example is available in this blog (top/left search field). Of course in order to activate this you should go to Admin under [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/04/03/autocompleter-plugin-v-12/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Strange issue with captcha field</title>
		<link>http://nik.chankov.net/2009/01/24/strange-issue-with-captcha-field/</link>
		<comments>http://nik.chankov.net/2009/01/24/strange-issue-with-captcha-field/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 20:47:27 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Background]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Captcha]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Registration]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=756</guid>
		<description><![CDATA[Well, it&#8217;s more an observation than a real problem.
For my current CakePHP project I had to set a captcha field to a user registration form. I decided to be &#8220;creative&#8221; and I set the captcha image as background of the input field. In fact the graphical representation wasn&#8217;t bad at all. Unfortunately when it&#8217;s used, [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/01/24/strange-issue-with-captcha-field/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
