<?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>My Inspiration &#187; Tips &amp; Tricks</title>
	<atom:link href="http://www.clarencejames.info/category/tips-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://www.clarencejames.info</link>
	<description>Work hard, Play hard, Eat hard</description>
	<lastBuildDate>Thu, 01 Sep 2011 16:05:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ugly fix for &#8216;Function split() is deprecated&#8217;</title>
		<link>http://www.clarencejames.info/2010/01/09/ugly-fix-for-function-split-is-deprecated.html</link>
		<comments>http://www.clarencejames.info/2010/01/09/ugly-fix-for-function-split-is-deprecated.html#comments</comments>
		<pubDate>Sat, 09 Jan 2010 02:35:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.clarencejames.info/?p=36</guid>
		<description><![CDATA[Rename the split() function to explode() function. That will solve it.]]></description>
			<content:encoded><![CDATA[<p>Rename the <strong>split()</strong> function to <strong>explode()</strong> function.<br />
That will solve it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarencejames.info/2010/01/09/ugly-fix-for-function-split-is-deprecated.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ugly fix for &#8216;strtotime() [function.strtotime]: It is not safe to rely on the system&#8217;s timezone settings&#8217;</title>
		<link>http://www.clarencejames.info/2010/01/09/ugly-fix-for-strtotime-function-strtotime-it-is-not-safe-to-rely-on-the-systems-timezone-settings.html</link>
		<comments>http://www.clarencejames.info/2010/01/09/ugly-fix-for-strtotime-function-strtotime-it-is-not-safe-to-rely-on-the-systems-timezone-settings.html#comments</comments>
		<pubDate>Sat, 09 Jan 2010 02:21:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.clarencejames.info/?p=28</guid>
		<description><![CDATA[Few month ago, while upgrading my blog,i have came across with this error message. what i did is adding date_default_timezone_set('UTC'); to the script (top) that cause error. You can implement it to other script that generate same error message.]]></description>
			<content:encoded><![CDATA[<p>Few month ago, while upgrading my blog,i have came across with this error message.<br />
what i did is adding<br />
<code>date_default_timezone_set('UTC');</code><br />
to the script (top) that cause error.</p>
<p>You can implement it to other script that generate same error message.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarencejames.info/2010/01/09/ugly-fix-for-strtotime-function-strtotime-it-is-not-safe-to-rely-on-the-systems-timezone-settings.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ugly fix for &#8216;Deprecated: Assigning the return value of new by reference is deprecated&#8217;</title>
		<link>http://www.clarencejames.info/2010/01/09/deprecated-assigning-the-return-value-of-new-by-reference-is-deprecated.html</link>
		<comments>http://www.clarencejames.info/2010/01/09/deprecated-assigning-the-return-value-of-new-by-reference-is-deprecated.html#comments</comments>
		<pubDate>Sat, 09 Jan 2010 02:05:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.clarencejames.info/?p=23</guid>
		<description><![CDATA[In PHP5 this idiom is deprecated $obj_ses =&#38; new SESSION(); if it generate the warning,  removed the ampersand (&#38;) .]]></description>
			<content:encoded><![CDATA[<p>In PHP5 this idiom is deprecated<br />
<code>$obj_ses =&amp; new SESSION();</code><br />
if it generate the warning,  removed the ampersand (&amp;) .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarencejames.info/2010/01/09/deprecated-assigning-the-return-value-of-new-by-reference-is-deprecated.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ugly fix for &#8216;ereg () is deprecated error.&#8217;</title>
		<link>http://www.clarencejames.info/2010/01/09/ereg-is-deprecated.html</link>
		<comments>http://www.clarencejames.info/2010/01/09/ereg-is-deprecated.html#comments</comments>
		<pubDate>Sat, 09 Jan 2010 01:29:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.clarencejames.info/?p=20</guid>
		<description><![CDATA[While installing my php script last night, i have came across with this error message.Most probably you have installed PHP 5.3 or upper version.If you upgraded to PHP 5.3, chances are high you’re going to run into a few warnings or deprecated function messages. An example is the ereg family of functions, which are gone [...]]]></description>
			<content:encoded><![CDATA[<div id="post-1003">While installing my php script last night, i have came across with this error message.Most probably you have installed PHP 5.3 or upper version.If you upgraded to PHP 5.3, chances are high you’re going to run into a few warnings or <em>deprecated function</em> messages.<br />
An example is the <code>ereg</code> family of functions, which are gone for good, as they were slower and felt less familiar than the alternative Perl-compatible <code>preg</code> family.</p>
<p>To migrate <code>ereg()</code>:</p>
<div>
<div>
<pre>ereg('\.([^\.]*$)', $this-&gt;file_src_name, $extension);</pre>
</div>
</div>
<p>becomes</p>
<div>
<div>
<pre>preg_match('/\.([^\.]*$)/', $this-&gt;file_src_name, $extension);</pre>
</div>
</div>
<p>Notice that I wrapped the pattern (<code>\.([^\.]*$)</code>) around <code>/ /</code>, which are RegExp delimiters. If you find yourself escaping <code>/</code> too much (for an URL for example), you might want to use the <code>#</code> delimiter instead.</p>
<p>To migrate <code>ereg_replace()</code>:</p>
<div>
<div>
<pre>$this-&gt;file_dst_name_body = ereg_replace('[^A-Za-z0-9_]', '', $this-&gt;file_dst_name_body);</pre>
</div>
</div>
<p>becomes</p>
<div>
<div>
<pre>$this-&gt;file_dst_name_body = preg_replace('/[^A-Za-z0-9_]/', '', $this-&gt;file_dst_name_body);</pre>
</div>
</div>
<p>Again, I just added delimiters to the pattern.<br />
If you are using <code>eregi</code> functions (which are the case-insensitive version of ereg), you’ll notice there’re no equivalent pregi functions. This is because this functionality is handled by <em>RegExp modifiers</em>.</p>
<p>Basically, to make the pattern match characters in a case-insensitive way, append <code>i</code> after the delimiter:</p>
<div>
<div>
<pre>eregi('\.([^\.]*$)', $this-&gt;file_src_name, $extension);</pre>
</div>
</div>
<p>becomes</p>
<div>
<div>
<pre>preg_match('/\.([^\.]*$)/i', $this-&gt;file_src_name, $extension);</pre>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.clarencejames.info/2010/01/09/ereg-is-deprecated.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.clarencejames.info/category/tips-tricks/feed ) in 0.82281 seconds, on Feb 7th, 2012 at 11:34 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 12:34 am UTC -->
