<?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>Pocko.org - Rosen Ivanov &#187; PHP</title>
	<atom:link href="http://blog.pocko.org/category/php-tricks-and-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pocko.org</link>
	<description>Everything is possible! The impossible just takes a little more time...</description>
	<lastBuildDate>Wed, 23 Jun 2010 14:49:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Download Videos From Youtube.com &#8211; The final working version 2010</title>
		<link>http://blog.pocko.org/2010/03/download-videos-from-youtube-com-the-final-working-version-2010/</link>
		<comments>http://blog.pocko.org/2010/03/download-videos-from-youtube-com-the-final-working-version-2010/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 19:59:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=158</guid>
		<description><![CDATA[Hello, I saw that there is nothing that is working and which can download youtube videos that&#8217;s why I thought that it will be cool if I make it working . Well I made it and it&#8217;s free for everybody who wants to use it. Just leave a good feedback if you want. Cheers! You [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I saw that there is nothing that is working and which can download youtube videos that&#8217;s why I thought that it will be cool if I make it working <img src='http://blog.pocko.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Download Videos From Youtube.com   The final working version 2010" /> . Well I made it and it&#8217;s free for everybody who wants to use it. Just leave a good feedback if you want. Cheers!</p>
<p>You can download the zip file from here: <a href="http://www.pocko.org/youtube/youtube.zip">http://www.pocko.org/youtube/youtube.zip</a><br />
You can try how it&#8217;s working here: <a href="http://www.pocko.org/youtube/get.php" target="_blank">http://www.pocko.org/youtube/get.php</a></p>
<p><strong>If you want to download from more sites and convert your videos you can visit <a href="http://www.getvideo.bg" target="_blank">www.getvideo.bg</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2010/03/download-videos-from-youtube-com-the-final-working-version-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get all timezones offset and save them in MySQL DB</title>
		<link>http://blog.pocko.org/2010/03/get-all-timezones-offset-and-save-them-in-mysql-db/</link>
		<comments>http://blog.pocko.org/2010/03/get-all-timezones-offset-and-save-them-in-mysql-db/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 16:45:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=152</guid>
		<description><![CDATA[I tried to find a good script for getting all timezones and their offset, but there is nothing good, that&#8217;s why I spent sometime to make something that can help everybody who is working with different timezones. $timezones = array&#40; &#160; &#160; &#160; &#160; &#34;zone0&#34; =&#62; array &#40; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>I tried to find a good script for getting all timezones and their offset, but there is nothing good, that&#8217;s why I spent sometime to make something that can help everybody who is working with different timezones.</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$timezones</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone0&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-10:00) Hawaii&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Pacific/Honolulu&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone1&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-09:00) Alaska&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Nome&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone2&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-08:00) Pacific Time (US &amp; Canada); Los Angeles&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Los_Angeles&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone3&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-08:00) Pacific Time (US &amp; Canada); Tijuana&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Tijuana&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone4&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-07:00) Arizona&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Phoenix&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone5&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-07:00) Mountain Time (US &amp; Canada)&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Denver&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone6&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-06:00) Central Time (US &amp; Canada)&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Chicago&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone7&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-06:00) Eastern Time - Indiana - Starke County&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Indiana/Knox&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone8&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-06:00) Mexico City, Tegucigalpa&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Mexico_City&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone9&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-06:00) Saskatchewan&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Regina&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone10&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-05:00) Bogota, Lima&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Bogota&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone11&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-05:00) Eastern Time (US &amp; Canada)&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/New_York&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone12&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-05:00) Eastern Time - Indiana - most locations&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Indiana/Indianapolis&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone13&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-04:30 Caracas&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Caracas&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone14&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-04:00) Atlantic Time (Canada)&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Halifax&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone15&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-04:00) La Paz&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/La_Paz&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone16&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-03:30) Newfoundland&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/St_Johns&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone17&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-03:00) E Argentina (BA, DF, SC, TF)&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Buenos_Aires&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone18&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-03:00) NE Brazil (MA, PI, CE, RN, PB)&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Fortaleza&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone19&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-03:00) Pernambuco&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Recife&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone20&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-03:00) S &amp; SE Brazil (GO, DF, MG, ES, RJ, SP, PR, SC, RS)&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;America/Sao_Paulo&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone21&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-02:00) Mid-Atlantic&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Atlantic/South_Georgia&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone22&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT-01:00) Azores, Cape Verde Island&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Atlantic/Azores&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone23&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;GMT (no DST) Tangiers, Casablanca&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Africa/Casablanca&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone24&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;GMT (Greenwich Mean Time) Dublin, Edinburgh, London&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Europe/London&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone25&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+01:00) Berlin, Stockholm, Rome, Bern, Brussels&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Europe/Berlin&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone26&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+01:00) Lisbon, Warsaw&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Europe/Lisbon&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone27&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+01:00) Paris, Madrid&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Europe/Paris&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone28&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+01:00) Prague&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Europe/Prague&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone29&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+02:00) Athens, Helsinki, Istanbul&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Europe/Athens&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone30&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+02:00) Cairo&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Africa/Cairo&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone31&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+02:00) Eastern Europe&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;EET&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone32&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+02:00) Harare, Pretoria&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Africa/Harare&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone33&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+02:00) Israel&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Jerusalem&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone34&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+03:00) Baghdad, Kuwait, Nairobi, Riyadh&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Baghdad&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone35&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+03:00) Moscow, St. Petersburg, Volgograd&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Europe/Moscow&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone36&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+03:30) Tehran&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Tehran&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone37&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+04:00) Abu Dhabi, Muscat, Tbilisi, Kazan&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Tbilisi&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone38&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+04:30 Kabul&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Kabul&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone39&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+05:00) Islamabad, Karachi&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Karachi&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone40&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+05:00) Sverdlovsk, Tashkent&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Yekaterinburg&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone41&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+05:30) Mumbai, Kolkata, Chennai, New Delhi&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Calcutta&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone42&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+05:45) Kathmandu, Nepal&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Katmandu&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone43&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+06:00) Almaty, Dhaka&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Almaty&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone44&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+06:00) Omsk, Novosibirsk&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Omsk&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone45&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+07:00) Bangkok, Jakarta, Hanoi&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Bangkok&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone46&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+07:00) Krasnoyarsk&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Krasnoyarsk&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone47&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+08:00) Beijing, Chongqing, Urumqi&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Shanghai&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone48&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+08:00) Hong Kong SAR, Perth, Singapore, Taipei&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Australia/Perth&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone49&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+09:00) Tokyo, Osaka, Sapporo, Seoul, Yakutsk&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Tokyo&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone50&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+09:30) Adelaide&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Australia/Adelaide&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone51&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+09:30) Darwin&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Australia/Darwin&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone52&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+10:00) Brisbane, Melbourne, Sydney&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Australia/Brisbane&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone53&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+10:00) Guam, Port Moresby&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Pacific/Guam&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone54&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+10:00) Vladivostok&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Vladivostok&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone55&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+11:00) Hobart&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Australia/Hobart&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone56&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+12:00) Eniwetok, Kwajalein&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Pacific/Kwajalein&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone57&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+12:00) Fiji Islands, Marshall Islands&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Pacific/Fiji&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone58&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+12:00) Kamchatka&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Kamchatka&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone59&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+12:00) Magadan, Solomon Islands, New Caledonia&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Asia/Magadan&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;zone60&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;(GMT+12:00) Wellington, Auckland&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;value&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Pacific/Auckland&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//we count all elements of the array</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$count_zones</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$timezones</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//we have to get all zones</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$count_zones</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//we set the time zone</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/date_default_timezone_set"><span style="color: #990000;">date_default_timezone_set</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$timezones</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'zone'</span><span style="color: #339933;">.</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'value'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$insert</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;INSERT INTO table (offset, name) VALUES ('&quot;</span><span style="color: #339933;">.</span> <a href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Z'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;', '&quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$timezones</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'zone'</span><span style="color: #339933;">.</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;')&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2010/03/get-all-timezones-offset-and-save-them-in-mysql-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open remote https url using Curl and accept cookie with PHP</title>
		<link>http://blog.pocko.org/2010/02/open-remote-https-url-using-curl-and-accept-cookie-with-php/</link>
		<comments>http://blog.pocko.org/2010/02/open-remote-https-url-using-curl-and-accept-cookie-with-php/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 16:59:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=147</guid>
		<description><![CDATA[&#60;?php /** * Open an url on https using curl and return content * * @param string url &#160; &#160; &#160; &#160; &#160; &#160;The url to open * @param string refer &#160; &#160; &#160; &#160;Referer (optional) * @param mixed usecookie &#160; &#160;If true, cookie.txt &#160; &#160;will be used as default, or the usecookie value. * [...]]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:700px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<br />
<span style="color: #009933; font-style: italic;">/**<br />
* Open an url on https using curl and return content<br />
*<br />
* @param string url &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;The url to open<br />
* @param string refer &nbsp; &nbsp; &nbsp; &nbsp;Referer (optional)<br />
* @param mixed usecookie &nbsp; &nbsp;If true, cookie.txt &nbsp; &nbsp;will be used as default, or the usecookie value.<br />
* @return string<br />
*/</span><br />
<span style="color: #000000; font-weight: bold;">function</span> open_https_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span><span style="color: #000088;">$refer</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$usecookie</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$usecookie</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$usecookie</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/is_writable"><span style="color: #990000;">is_writable</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$usecookie</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">&quot;Can't write to <span style="color: #006699; font-weight: bold;">$usecookie</span> cookie file, change file permission to 777 or remove read only for windows.&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$usecookie</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;cookie.txt&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/is_writable"><span style="color: #990000;">is_writable</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$usecookie</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">&quot;Can't write to <span style="color: #006699; font-weight: bold;">$usecookie</span> cookie file, change file permission to 777 or remove read only for windows.&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_init"><span style="color: #990000;">curl_init</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_SSL_VERIFYPEER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_SSL_VERIFYHOST<span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_HEADER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_USERAGENT<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$usecookie</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_COOKIEJAR<span style="color: #339933;">,</span> <span style="color: #000088;">$usecookie</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_COOKIEFILE<span style="color: #339933;">,</span> <span style="color: #000088;">$usecookie</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$refer</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_REFERER<span style="color: #339933;">,</span> <span style="color: #000088;">$refer</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span><a href="http://www.php.net/curl_exec"><span style="color: #990000;">curl_exec</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;<a href="http://www.php.net/curl_close"><span style="color: #990000;">curl_close</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;<span style="color: #b1b100;">return</span> <span style="color: #000088;">$result</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2010/02/open-remote-https-url-using-curl-and-accept-cookie-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anti-Flood Script</title>
		<link>http://blog.pocko.org/2009/07/anti-flood-script/</link>
		<comments>http://blog.pocko.org/2009/07/anti-flood-script/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 08:44:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Anti-Flood Script PHP]]></category>
		<category><![CDATA[php anti-flood]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=129</guid>
		<description><![CDATA[I was wondering how we can simply ignore (block) the flood atacks to our servers and i think that this solution is useful. It checks if there is more than 1 request in 5 seconds. Of course you can change the time limit to 1 sec or 60 sec. It depends on this what you [...]]]></description>
			<content:encoded><![CDATA[<p>I was wondering how we can simply ignore (block) the flood atacks to our servers and i think that this solution is useful.</p>
<p>It checks if there is more than 1 request in 5 seconds. Of course you can change the time limit to 1 sec or 60 sec. It depends on this what you want.</p>
<p>So here is the script</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php<br />
&nbsp; &nbsp; if (!isset($_SESSION)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; session_start();<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; // anti flood protection<br />
&nbsp; &nbsp; if($_SESSION['last_session_request'] &gt; time() - 3){<br />
&nbsp; &nbsp; &nbsp; &nbsp; // users will be redirected to this page if it makes requests faster than 5 seconds<br />
&nbsp; &nbsp; &nbsp; &nbsp; header(&quot;location: /flood.html&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; exit;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; $_SESSION['last_session_request'] = time();<br />
?&gt;</div></div>
<p>I hope it will be useful for everyone who wants to block the flood.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2009/07/anti-flood-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Fresh PHP Tutorials</title>
		<link>http://blog.pocko.org/2009/01/new-fresh-php-tutorials/</link>
		<comments>http://blog.pocko.org/2009/01/new-fresh-php-tutorials/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 19:46:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[fresh php tutorials]]></category>
		<category><![CDATA[online php tutorials]]></category>
		<category><![CDATA[php tutorials]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=118</guid>
		<description><![CDATA[1. Construct an SQL Insert Statement in an efficient way bitrepository.com/ 2. 5 Helpful Tips for Creating Secure PHP Applications nettuts.com/ 3. Notepad++ Function List plugin show PHP classesfunctions tip wlscripting.com/ 4. AJAX Voting in PHP &#8211; Cast a Vote Without Reloading the Page tutorialtoday.com/ 5. Intro to Drupal &#8211; Build a Simple CMS nettuts.com/ [...]]]></description>
			<content:encoded><![CDATA[<h4><img src="http://www.pixel2life.com/images/tut_avatars/67/66525.gif" border="0" alt="1. Construct an SQL Insert Statement in an efficient way"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.bitrepository.com/web-programming/php/construct-sql-query-statements-in-an-efficient-way.html">1. Construct an SQL Insert Statement in an efficient way</a></h4>
<p>bitrepository.com/</p>
<h4><img src="http://www.pixel2life.com/images/tut_avatars/66/66435.gif" border="0" alt="2. 5 Helpful Tips for Creating Secure PHP Applications"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://nettuts.com/tutorials/php/5-helpful-tips-for-creating-secure-php-applications/">2. 5 Helpful Tips for Creating Secure PHP Applications</a></h4>
<p>nettuts.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="3. Notepad++ Function List plugin show PHP classesfunctions tip"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.wlscripting.com/tutorial/53">3. Notepad++ Function List plugin show PHP classesfunctions tip</a></h4>
<p>wlscripting.com/</p>
<h4><img src="http://www.pixel2life.com/images/tut_avatars/66/66375.gif" border="0" alt="4. AJAX Voting in PHP - Cast a Vote Without Reloading the Page"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.tutorialtoday.com/read_tutorial/6010/">4. AJAX Voting in PHP &#8211; Cast a Vote Without Reloading the Page</a></h4>
<p>tutorialtoday.com/</p>
<h4><img src="http://www.pixel2life.com/images/tut_avatars/66/66343.gif" border="0" alt="5. Intro to Drupal - Build a Simple CMS"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://nettuts.com/tutorials/other/intro-to-drupal-build-a-simple-cms/">5. Intro to Drupal &#8211; Build a Simple CMS</a></h4>
<p>nettuts.com/</p>
<h4><img src="http://www.pixel2life.com/images/tut_avatars/66/66327.gif" border="0" alt="6. How to Validate a Form Using PHP Part 2 - Streamline Using Arrays"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://buildinternet.com/2008/12/how-to-validate-a-form-using-php-part-2-streamline-using-arrays/">6. How to Validate a Form Using PHP Part 2 &#8211; Streamline Using Arrays</a></h4>
<p>buildinternet.com/</p>
<h4><img src="http://www.pixel2life.com/images/tut_avatars/66/66326.gif" border="0" alt="7. How to Validate a Form Using PHP Part 1 - Complete with Error Messages!"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://buildinternet.com/2008/12/how-to-validate-a-form-complete-with-error-messages-using-php-part-1/">7. How to Validate a Form Using PHP Part 1 &#8211; Complete with Error Messages!</a></h4>
<p>buildinternet.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="8. Using CakePHP's Auth Component"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.milesj.me/blog/read/5/using-cakephps-auth-component/">8. Using CakePHP&#8217;s Auth Component</a></h4>
<p>milesj.me/</p>
<h4><img src="http://www.pixel2life.com/images/tut_avatars/66/66312.gif" border="0" alt="9. Using Zend Acl With CodeIgniter"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.revolves.net/2008/12/18/using-zend-acl-with-codeigniter/">9. Using Zend Acl With CodeIgniter</a></h4>
<p>revolves.net/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="10. Create a PHP script that logs in to a password protected area"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.bitrepository.com/web-programming/php/curl-login-to-members-area.html">10. Create a PHP script that logs in to a password protected area</a></h4>
<p>bitrepository.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="11. Extracting content between two delimiters"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.bitrepository.com/web-programming/php/extracting-content-between-two-delimiters.html">11. Extracting content between two delimiters</a></h4>
<p>bitrepository.com/</p>
<h4><img src="http://www.pixel2life.com/images/tut_avatars/66/66262.gif" border="0" alt="12. The Presentation Layer in Smarty"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.tutorialz.biz/smarty/14-the-presentation-layer.html">12. The Presentation Layer in Smarty</a></h4>
<p>tutorialz.biz/</p>
<h4><img src="http://www.pixel2life.com/images/tut_avatars/66/66260.gif" border="0" alt="13. Randomize text letters while keeping the words readable"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.bitrepository.com/web-programming/php/randomize-middle-letters-keeping-the-word-readable.html">13. Randomize text letters while keeping the words readable</a></h4>
<p>bitrepository.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="14. Scraping data with PHP Simple HTML DOM Parser"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.bitrepository.com/web-programming/php/simple-html-dom-parser.html">14. Scraping data with PHP Simple HTML DOM Parser</a></h4>
<p>bitrepository.com/</p>
<h4><img src="http://www.pixel2life.com/images/tut_avatars/66/66258.gif" border="0" alt="15. Some ways to scan a directory in PHP"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.bitrepository.com/web-programming/php/some-ways-to-scan-a-directory.html">15. Some ways to scan a directory in PHP</a></h4>
<p>bitrepository.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="1. ADVANCED Random Signature Generator - GREAT for forum signatures!"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.pixel-designz.net/tutorials/view/11/Advanced_Random_Signature_Generator/">1. ADVANCED Random Signature Generator &#8211; GREAT for forum signatures!</a></h4>
<p>pixel-designz.net</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="2. IRC Bot - Create a working IRC Bot from scratch!"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.combined-minds.net/tutorials/13/Creating_an_IRC_bot_in_PHP">2. IRC Bot &#8211; Create a working IRC Bot from scratch!</a></h4>
<p>combined-minds.net/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="3. Practical PHP Performance"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.developertutorials.com/tutorials/php/practical-php-performance-8-02-07/page1.html">3. Practical PHP Performance</a></h4>
<p>developertutorials.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="4. Quote Listing Script Part 2"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://www.mortisimus.co.uk/forums/viewtopic.php?f=17&#038;t=12">4. Quote Listing Script Part 2</a></h4>
<p>mortisimus.co.uk/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="5. Generating random passwords using PHP"  style="border:1px solid #999999" title="New Fresh PHP Tutorials" /> <a href="http://tutorials.haxansweb.com/PHP/randomizing/Generating-random-passwords-By-david">5. Generating random passwords using PHP</a></h4>
<p>haxansweb.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2009/01/new-fresh-php-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice PHP Tutorials</title>
		<link>http://blog.pocko.org/2008/10/nice-php-tutorials/</link>
		<comments>http://blog.pocko.org/2008/10/nice-php-tutorials/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 20:52:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[online php tutorials]]></category>
		<category><![CDATA[php online lessons]]></category>
		<category><![CDATA[php tutorials]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=95</guid>
		<description><![CDATA[1. Slightly More Advanced RSS Parsing unrealmedia.co.uk/ 2. Enhancing GoogleTap with Keywords in URL kenetix.net 3. 10 Regular Expressions in PHP you just can&#8217;t live without roughguidetophp.com/ 4. Trackbacks with Google Blog Search and Zend Feed prodevtips.com/ 5. Introduction to AJAX &#8211; Instant Form Validation iamwebdude.com/ 6. AJAX login Using Gmail pixel2life.com/publish/ 7. Advanced PHP [...]]]></description>
			<content:encoded><![CDATA[<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/64/64061.gif" border="0" alt="1. Slightly More Advanced RSS Parsing" title="Nice PHP Tutorials" /> <a href="http://www.unrealmedia.co.uk/90/slightly-more-advanced-rss-parsing/">1. Slightly More Advanced RSS Parsing</a></h4>
<p>unrealmedia.co.uk/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="2. Enhancing GoogleTap with Keywords in URL" title="Nice PHP Tutorials" /> <a href="http://www.kenetix.net/Article-548-Enhancing_GoogleTap_with_Keyword_Optimized_URLs.html">2. Enhancing GoogleTap with Keywords in URL</a></h4>
<p>kenetix.net</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/64/64028.gif" border="0" alt="3. 10 Regular Expressions in PHP you just can't live without" title="Nice PHP Tutorials" /> <a href="http://www.roughguidetophp.com/10-regular-expressions-you-just-cant-live-without-in-php/">3. 10 Regular Expressions in PHP you just can&#8217;t live without</a></h4>
<p>roughguidetophp.com/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="4. Trackbacks with Google Blog Search and Zend Feed" title="Nice PHP Tutorials" /> <a href="http://www.prodevtips.com/2008/09/13/google-blog-search-and-zend-feed-trackbacks/">4. Trackbacks with Google Blog Search and Zend Feed</a></h4>
<p>prodevtips.com/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/64/63960.gif" border="0" alt="5. Introduction to AJAX - Instant Form Validation" title="Nice PHP Tutorials" /> <a href="http://www.iamwebdude.com/2008/09/12/introduction-to-ajax-instant-form-validation/">5. Introduction to AJAX &#8211; Instant Form Validation</a></h4>
<p>iamwebdude.com/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="6. AJAX login Using Gmail" title="Nice PHP Tutorials" /> <a href="http://www.pixel2life.com/publish/tutorials/933/ajax_login_using_gmail/">6. AJAX login Using Gmail</a></h4>
<p>pixel2life.com/publish/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/64/63902.gif" border="0" alt="7. Advanced PHP Security Video Tutorial" title="Nice PHP Tutorials" /> <a href="http://videos.code2design.com/video/play/PHP/11">7. Advanced PHP Security Video Tutorial</a></h4>
<p>code2design.com/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/64/63861.gif" border="0" alt="8. Pagination - Splitting data across multiple pages with MySQL and PHP" title="Nice PHP Tutorials" /> <a href="http://www.roughguidetophp.com/pagination-splitting-data-across-multiple-pages-with-mysql-and-php/">8. Pagination &#8211; Splitting data across multiple pages with MySQL and PHP</a></h4>
<p>roughguidetophp.com/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/64/63846.gif" border="0" alt="9. A simple IP Address and Visitor Tracking tool with PHP and MySQL" title="Nice PHP Tutorials" /> <a href="http://www.roughguidetophp.com/a-simple-ip-address-and-visitor-tracking-tool-with-php-mysql/">9. A simple IP Address and Visitor Tracking tool with PHP and MySQL</a></h4>
<p>roughguidetophp.com/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/64/63840.gif" border="0" alt="10. Kenetix PHP-Nuke Theme Tutorial Step by Step!" title="Nice PHP Tutorials" /> <a href="http://www.kenetix.net/Utilities-PHP-Nuke_Theme_Tutorial.html">10. Kenetix PHP-Nuke Theme Tutorial Step by Step!</a></h4>
<p>kenetix.net</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/64/63820.gif" border="0" alt="11. Creating a Simple Comments and Login System using MySQL and PHP" title="Nice PHP Tutorials" /> <a href="http://www.roughguidetophp.com/creating-a-simple-comments-and-login-system-using-mysql-and-php/">11. Creating a Simple Comments and Login System using MySQL and PHP</a></h4>
<p>roughguidetophp.com/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/64/63797.gif" border="0" alt="12. PHP and Ajax upload form" title="Nice PHP Tutorials" /> <a href="http://www.finalwebsites.com/forums/topic/php-ajax-upload-example">12. PHP and Ajax upload form</a></h4>
<p>finalwebsites.com/portal/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="13. Force Content, Ads and Banners into PHP and other pages" title="Nice PHP Tutorials" /> <a href="http://wheresmy.tv/?p=11">13. Force Content, Ads and Banners into PHP and other pages</a></h4>
<p>wheresmy.tv/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="14. Creating a PHP 5 Framework Part 1" title="Nice PHP Tutorials" /> <a href="http://nettuts.com/php/creating-a-php5-framework-part-1/">14. Creating a PHP 5 Framework Part 1</a></h4>
<p>nettuts.com/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="15. PHP GD Image Reflections" title="Nice PHP Tutorials" /> <a href="http://www.pixel2life.com/publish/tutorials/928/php_gd_image_reflections/">15. PHP GD Image Reflections</a></h4>
<p>pixel2life.com/publish/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/50/49981.gif" border="0" alt="1. Changing the brightness of an image using PHP" title="Nice PHP Tutorials" /> <a href="http://www.blizaga.com/tutorial/tutorial.php?id=7">16. Changing the brightness of an image using PHP</a></h4>
<p>blizaga.com/tutorial/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="2. Different MySQL Tid-Bits - A great introduction to MySQL integration with PHP" title="Nice PHP Tutorials" /> <a href="http://www.pixel2life.com/publish/tutorials/280/different_mysql_tid_bits/">17. Different MySQL Tid-Bits &#8211; A great introduction to MySQL integration with PHP</a></h4>
<p>pixel2life.com/publish/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/tut_avatars/15/14521.gif" border="0" alt="3. Regular Expressions - What you need to know about REGEX and Regular Expressions" title="Nice PHP Tutorials" /> <a href="http://biorust.com/index.php?page=tutorial_detail&amp;tutid=126">18. Regular Expressions &#8211; What you need to know about REGEX and Regular Expressions</a></h4>
<p>biorust.com</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="4. Simple chat system with PHP, MySQL and META Refresh" title="Nice PHP Tutorials" /> <a href="http://www.mortisimus.co.uk/forums/viewtopic.php?f=17&amp;t=20">19. Simple chat system with PHP, MySQL and META Refresh</a></h4>
<p>mortisimus.co.uk/</p>
<h4><img style="border:1px solid #999999" src="http://www.pixel2life.com/images/cat_avatar/10.gif" border="0" alt="5. Create a fully database driven flexible menu" title="Nice PHP Tutorials" /> <a href="http://www.tutorialstream.com/tutorials/phpmysql/flexible-database-driven-menu/">20. Create a fully database driven flexible menu</a></h4>
<p>tutorialstream.com</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/10/nice-php-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mass check for .com domains in host.bg</title>
		<link>http://blog.pocko.org/2008/09/mass-check-for-com-domains-in-hostbg/</link>
		<comments>http://blog.pocko.org/2008/09/mass-check-for-com-domains-in-hostbg/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 15:26:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[host.bg check domain]]></category>
		<category><![CDATA[host.bg domain checker]]></category>
		<category><![CDATA[how to check more than one domain]]></category>
		<category><![CDATA[mass domain checker]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=66</guid>
		<description><![CDATA[This script allows you to load .txt file with a lot of words and check a lot of domains in one time. There is no need anymore to check domain by domain. Just run this script and of course create .txt file with the keywords which you want to check. Enjoy! set_time_limit(3000); $file_handle = fopen(&#8220;domains.txt&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>This script allows you to load .txt file with a lot of words and check a lot of domains in one time. There is no need anymore to check domain by domain. Just run this script and of course create .txt file with the keywords which you want to check.</p>
<p>Enjoy!</p>
<blockquote><p>set_time_limit(3000);<br />
$file_handle = fopen(&#8220;domains.txt&#8221;, &#8220;rb&#8221;);</p>
<p>while (!feof($file_handle) ) {</p>
<p>$line_of_text = fgets($file_handle);<br />
$parts = explode(&#8216;=&#8217;, $line_of_text);</p>
<p>//check<br />
$final_domain = preg_replace(&#8220;/\s\s+/&#8221;, &#8220;&#8221;, $parts[0]);<br />
$domain = $final_domain;<br />
$url = &#8220;http://host.bg/order/DomainSearchResults.do?Body=&#8221;. $domain .&#8221;&amp;amp;Ext=&#8221;;<br />
$input = @file_get_contents($url) or die(&#8216;Could not access file: $url&#8217;);<br />
$regexp = &#8220;&amp;lt;a\s[^&amp;gt;]*href=(\&#8221;??)([^\" &amp;gt;]*?)\\1[^&amp;gt;]*&amp;gt;(.*)&amp;lt;\/a&amp;gt;&#8221;;<br />
if(preg_match_all(&#8220;/$regexp/siU&#8221;, $input, $matches)) {<br />
$final_match = preg_replace(&#8220;/\s\s+/&#8221;, &#8220;&#8221;, $matches[3][10]);</p>
<p>if (strip_tags($final_match) != &#8220;този домейн е мой&#8221;) {<br />
echo &#8220;&amp;lt;strong&amp;gt;free domain&amp;lt;/strong&amp;gt; &#8211; &#8220;. $final_domain. &#8220;&amp;lt;br /&amp;gt;&#8221;;<br />
}<br />
else {<br />
echo &#8220;taken &#8211; &#8220;. $final_domain . &#8220;&amp;lt;br /&amp;gt;&#8221;;<br />
}<br />
}</p>
<p>//END check<br />
}</p>
<p>fclose($file_handle);</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/09/mass-check-for-com-domains-in-hostbg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>User Log Class</title>
		<link>http://blog.pocko.org/2008/08/user-log-class/</link>
		<comments>http://blog.pocko.org/2008/08/user-log-class/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 15:48:44 +0000</pubDate>
		<dc:creator>verdi</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[logger]]></category>
		<category><![CDATA[logger class]]></category>
		<category><![CDATA[logmanager]]></category>
		<category><![CDATA[parse xml]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[read xml]]></category>
		<category><![CDATA[track users]]></category>
		<category><![CDATA[userlog]]></category>
		<category><![CDATA[users]]></category>
		<category><![CDATA[write to xml]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xml to table]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=53</guid>
		<description><![CDATA[Tracking those bastards (the users i mean) is very common thing nowadays. So have made a simple and easy to use logger to track them. There are few things which i need to tell you in order to use the LogManager class: 1. Download the arhive: LogManager.rar 2. Create two tables in your database with [...]]]></description>
			<content:encoded><![CDATA[<p>Tracking those bastards (the users i mean) is very common thing nowadays. So have made a simple and easy to use logger to track them.<br />
There are few things which i need to tell you in order to use the LogManager class:<br />
1. Download the arhive: <a href="http://blog.pocko.org/wp-content/uploads/2008/07/LogManager.rar">LogManager.rar</a></p>
<p>2. Create two tables in your database with the following fileds. The tables are: sessions and actions</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CREATE TABLE `sessions` (<br />
`s__id` bigint(20) NOT NULL auto_increment,<br />
`s__sess_id` varchar(255) collate latin1_general_ci NOT NULL,<br />
`s__user` varchar(255) collate latin1_general_ci NOT NULL,<br />
`s__type` varchar(255) collate latin1_general_ci NOT NULL,<br />
`s__time_login` varchar(40) collate latin1_general_ci NOT NULL,<br />
`s__time_logout` varchar(40) collate latin1_general_ci NOT NULL,<br />
`s__date` varchar(40) collate latin1_general_ci NOT NULL,<br />
PRIMARY KEY &nbsp;(`s__id`)<br />
) ENGINE=MyISAM &nbsp;DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=113 ;</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CREATE TABLE `actions` (<br />
`a__id` bigint(20) NOT NULL auto_increment,<br />
`a__p_id` varchar(255) collate latin1_general_ci NOT NULL,<br />
`a__time` varchar(40) collate latin1_general_ci NOT NULL,<br />
`a__date` varchar(40) collate latin1_general_ci NOT NULL,<br />
`a__type` varchar(20) collate latin1_general_ci NOT NULL,<br />
`a__desc` text collate latin1_general_ci NOT NULL,<br />
PRIMARY KEY &nbsp;(`a__id`),<br />
KEY `parent_id` (`a__p_id`),<br />
FULLTEXT KEY `a__desc` (`a__desc`)<br />
) ENGINE=MyISAM &nbsp;DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=729 ;</div></div>
<p>3. Include the LogManager.php in your file (you can alter the path if necessary):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;?php<br />
require_once('LogManager.php');<br />
?&amp;gt;</div></div>
<p>4. Establish a connection to the database:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;?php<br />
$connection = mysql_connect($host, $userdb, $passdb);<br />
$db_connection = &nbsp;mysql_select_db($db);<br />
?&amp;gt;</div></div>
<p>5. Create an instance of the class:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;?php<br />
//create the logger<br />
$log = new LogManager(, );<br />
?&amp;gt;</div></div>
<p>6. When entering the site through username and password:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;?php<br />
//log entering the site to a definite session////////////////////////<br />
$log-&amp;gt;setSessTable(&quot;sessions&quot;);<br />
$log-&amp;gt;setDate();<br />
$log-&amp;gt;setTimeLogin();<br />
//write into the database<br />
$log-&amp;gt;insertNewSession();<br />
///////////////////////////////////////////////<br />
?&amp;gt;</div></div>
<p>7. Loggin action. Place the code somewhere in your files. Wherever you want to log:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;?php<br />
$log-&amp;gt;setParentId(session_id());<br />
$log-&amp;gt;setActTable(&quot;actions&quot;);<br />
$log-&amp;gt;setActionTime();<br />
$log-&amp;gt;setActionType(&quot;login&quot;);//this type is defined by you<br />
$log-&amp;gt;setDescription(&quot;User has tryed to login&quot;);//the description is defined by you<br />
$log-&amp;gt;insertNewAction();//inserting the record into to database<br />
?&amp;gt;</div></div>
<p><strong>Saving to XML</strong></p>
<p>1. Establish a connection to the database:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;</div></div>
<p>2. Call the file save_to_xml.php. It will create in logsystem/logfolder/ a xml file for the previous day called log_dd_mm_yyyy.xml and that&#8217;s all. The code below is already included in the file:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;?php<br />
$yesterday = mktime(0,0,0,date(&quot;m&quot;),date(&quot;d&quot;)-1,date(&quot;Y&quot;));<br />
$date = date(&quot;d-m-Y&quot;,$yesterday);<br />
$file = &quot;log_&quot;.$date.&quot;.xml&quot;;<br />
$file = str_replace(&quot;-&quot;,&quot;_&quot;,$file);<br />
$write_to_xml = new XMLShablon(&quot;logsystem/logfolder/&quot;.$file);<br />
$date = strtotime($date);<br />
$write_to_xml-&amp;gt;writeToXML($date);<br />
?&amp;gt;</div></div>
<p><strong>NOTE:</strong>This file does not display anything only populates the xml file. So insert this file in for example Plesk scheduler to be called in 22.08.2008 00:01 and the file will create a xml file for 21.08.2008</p>
<p><strong>Parsing the XML and exporting it into a result table</strong></p>
<p>1. Call the file xml_parser/xml_to_table.php and it will generate a search form and a table of results<br />
A field validators are also included for the date and the time</p>
<p>That is all folks. If there is a problem installing the logger please fill no worry to post me a comment.</p>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/08/user-log-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I create a cron job?</title>
		<link>http://blog.pocko.org/2008/07/how-do-i-create-a-cron-job/</link>
		<comments>http://blog.pocko.org/2008/07/how-do-i-create-a-cron-job/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 12:41:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[add php to cron job]]></category>
		<category><![CDATA[create cron job]]></category>
		<category><![CDATA[cron jobs]]></category>
		<category><![CDATA[execute php with cron]]></category>

		<guid isPermaLink="false">http://pocko.org/blog/?p=22</guid>
		<description><![CDATA[A cron job (run by the cron daemon, or cron service) is a request for the server to run a particular command and/or program via the command line and set points during the hour, day, week, month or year. At the moment, there are two ways you can add, edit or delete cron jobs on [...]]]></description>
			<content:encoded><![CDATA[<p>A cron job  (run by the <tt>cron</tt> daemon, or cron service) is a request for the server to run a particular command and/or program via the command line and set points during the hour, day, week, month or year.</p>
<p>At the moment, there are two ways you can add, edit or delete cron jobs on our servers. The first is the easiest and that&#8217;s using the Plesk interface. The second is more complex, using the <tt>crontab</tt> program, but if you&#8217;re used to using the SSH console and have knowledge of <tt>VIM</tt>, it&#8217;s available.</p>
<p>However, if you&#8217;re not familiar with the way cronjobs are configured, please read the following section which will explain the syntax and how it&#8217;s works.</p>
<h2>What does a cron line and how does it work?</h2>
<p>A cronjob line if a very simple line with six parts. The first five set the day/time the job is/are run, while the last part is the command to be run. For example</p>
<blockquote>
<pre>0 * * * * php /var/www/vhosts/example.com/httpdocs/cron.php</pre>
</blockquote>
<p>will run the <tt>php</tt> command-line interpreter, processing the file <tt>cron.php</tt> (on the website for <tt>example.com</tt>) at the start of every hour.</p>
<p>The date/time fields have the following meaning:</p>
<blockquote>
<pre># +------------ Minute (0 - 59)
# | +---------- Hour (0 - 23)
# | | +-------- Day of the Month (1 - 31)
# | | | +------ Month (1 - 12)
# | | | | +---- Day of the Week (0 - 7) (Sunday is 0 or 7)
# | | | | |
# * * * * * command<strong>

</strong></pre>
</blockquote>
<p>Therefore, the option <tt>0 * * * *</tt> (from the above example) means &#8216;<span style="font-style: italic;">on the zeroth minute of any hour on any day of the month, in any month, on any day in the week, run this command</span>&#8216;.</p>
<p>Although can you add a single value, the power of cron comes in it&#8217;s ability to allow a number of different syntax options for specifying different values. The following examples will be based on the minutes field, but they can be used in any of the five fields to specific month, day, etc.:</p>
<blockquote>
<pre>0          - Run it when the minute is zero
*          - Run it on any value (i.e. every minute)
0,15,30,45 - Run it when the minute is 0, 15, 30 or 45 (i.e. every 15 min)
*/15       - Same as above - run it when the minute is divisible by 15
10-15      - Run it every minute between 10 and 15 minutes
30-59/5    - Run it every fifth minute of 30 (i.e. 30, 35, 40, ...)<strong>

</strong></pre>
</blockquote>
<p>However, taking the last example, the divisor is not against the minute of the hour, but against the minute within the period selected, therefore while <tt>30-59/5</tt> is when the minute can be divided by <tt>5</tt> between <tt>30</tt> and <tt>59</tt>, the option <tt>3-58/5</tt> will not enact on <tt>5</tt>, <tt>10</tt>, etc., but on <tt>3</tt>, <tt>8</tt>, <tt>13</tt>, etc.</p>
<p>Also, where as the first four fields must match to run the command (i.e. when the minute, hour, day of the month and month match), if the fifth field (day of the week) is also specified, the command will run when either the day of the month OR day of the week match.</p>
<p>To finish off, here are a number of complete examples:</p>
<blockquote>
<pre>*/15    *     *  *  *   - Run every 15 minutes
3-58/5  *     *  *  *   - Run every 5 minutes on the 3rd and 8th minute
0       */2   *  *  *   - Run every 2 hours, on the hour
25      8,17  *  *  *   - Run at 08:25 and 17:25
0       6     *  *  1   - Run at 06:00 every Monday
30      7     *  1  *   - Run at 07:30 on the first day of the month
0       0     1  *  5   - Run at midnight on the first of the month OR a Friday
*/30    9-17  *  *  1-5 - Run every 30 minutes between 9 to 5, Monday to Friday<strong>

</strong></pre>
</blockquote>
<h2>Editing your crontab with Plesk</h2>
<p>To add a cron job in Plesk:</p>
<ul>
<li>Log onto Plesk using your username and password.</li>
<li>From your list of domains, click on the domain you would like to add the cronjob to.</li>
<li>Click on <span style="font-style: italic;">Crontab</span>.</li>
<li>If you have multiple users on this domain (i.e. you have setup different FTP accounts for sub-domains or web users), from the drop-down select the username you want to create the cronjob for, and then click <span style="font-style: italic;">Set</span>.</li>
<li>Click on <span style="font-style: italic;">Add New Task</span>.</li>
<li>For each of the first five fields, enter the value as it would be for the cron line (i.e. the date/time fields). All fields are required, so if you don&#8217;t have a specific value in that field, enter <tt>*</tt>.</li>
<li>Finally, enter the full command into the <span style="font-style: italic;">Command</span> field.</li>
<li>Click <span style="font-style: italic;">OK</span> to save or <span style="font-style: italic;">Cancel</span> to return.</li>
<li>If you return back to the page with any errors, please correct the errors and click <span style="font-style: italic;">OK</span> again.</li>
</ul>
<blockquote>
<pre>By default, the sever will send any error messages or output from the cronjobs to <tt>username@server</tt>, e.g. <tt>mysite33@gamma.jabservers.co.uk</tt>,
which will always come to us. If you want to see the output from your
cronjob, or notices if it doesn't run (for whatever reason), you'll
need to change the address the e-mail is set to.

To do this, goto the crontab page and select the user running the crontab, click on <span style="font-style: italic;">Set</span>, and then change <span style="font-style: italic;">Send Crontab messages to address</span> to the e-mail address you want them sent to. Click <span style="font-style: italic;">Set</span> again to commit the change.<strong>

</strong></pre>
</blockquote>
<h2>Editing your Crontab via SSH</h2>
<p>The main limitation with this option is that you can only edit the crontab for the main domain, as you can only log on via SSH using the user for the master FTP account. If you need to change the crontab for a web user or sub-domain, you will have to use the Plesk interface.</p>
<p>To add a cron job via SSH:</p>
<blockquote><p>Although we will take you through the steps of using VIM on the server, knowledge of VIM is important for using the <tt>crontab</tt> program &#8211; if you do not know how to use VIM, please see how to add a cronjob using Plesk above.</p></blockquote>
<ul>
<li>Log onto SSH using your chosen program and the username/password for the domain.</li>
<li>Run the command &#8216;<tt>crontab -e</tt>&#8216; to edit the crontab.</li>
<li>Move to the end of the file, press <tt>i</tt> to enter Insertion mode, create a new line and then enter the cron line.</li>
<li>Press <tt>Esc</tt> and then enter <tt>:wq</tt> to write (save) the changes and quit the program.</li>
<li>If there is an error in the line, you will be notified and asked if you want to re-edit your changes.</li>
<li>If there is no error, you will see the message &#8216;<tt>crontab: installing new crontab</tt>&#8216;.</li>
</ul>
<blockquote><p>Again, like with Plesk, any errors, notices or output from the cronjob will go to <tt>username@server</tt> (e.g. <tt>mysite33@gamma.jabservers.co.uk</tt>), which, as we manage <tt>server</tt>, or <tt>gamma.jabservers.co.uk</tt> in the example, the e-mails will come to us.</p>
<p>To change this and tell the <tt>cron</tt> daemon to send the e-mails to you, add the line &#8216;<tt>MAILTO=example@example.com</tt>&#8216; to the top of your crontab.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/07/how-do-i-create-a-cron-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Take video properties with PHP</title>
		<link>http://blog.pocko.org/2008/07/take-video-properties-with-php/</link>
		<comments>http://blog.pocko.org/2008/07/take-video-properties-with-php/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 00:17:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[get video properties]]></category>
		<category><![CDATA[php get video properties]]></category>
		<category><![CDATA[php video encoding]]></category>
		<category><![CDATA[video properties]]></category>

		<guid isPermaLink="false">http://pocko.org/blog/?p=19</guid>
		<description><![CDATA[Hmm &#8230; The idea of this article is because i met this problem a few days ago. The real solution is a little bit complicated. 1. We have to install a special library called FFmpeg on the OS system to encode the current flv. The problem is that it can encode all type of formats [...]]]></description>
			<content:encoded><![CDATA[<p>Hmm &#8230;</p>
<p>The idea of this article is because i met this problem a few days ago. The real solution is a little bit complicated.</p>
<p>1. We have to install a special library called FFmpeg on the OS system to encode the current flv. The problem is that it can encode all type of formats except 3gp&#8230; well this is not so bad but we need a full solution. Anyway&#8230;</p>
<p>2. The other problem is that this library is using some linux bash scripts and commands and it need to be installed on a linux machine, otherwise it won&#8217;t work properly&#8230;</p>
<p>Here is a little but important information about the current code which should be user.</p>
<p><a href="http://www.hotscripts.com/Detailed/77468.html">http://www.hotscripts.com/Detailed/77468.html</a></p>
<p>There is a special php class for calling the library of functions and you can find it in the url above.</p>
<p>Anyway i will let you to check by yourself and learn how to use it. I already configure it and i hope that it will work properly when i move it on the linux machine. Till then i can only hope that it&#8217;s ok <img src='http://blog.pocko.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Take video properties with PHP" /> </p>
<p>I hope that this article will help these which can&#8217;t find any other possible ways &#8230; actually there are no other ways <img src='http://blog.pocko.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Take video properties with PHP" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/07/take-video-properties-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
