<?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>Linux and Unix technical recipes &#187; PHP</title>
	<atom:link href="http://www.howtonix.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howtonix.com</link>
	<description>Linux Tutorial and Guide</description>
	<lastBuildDate>Thu, 30 Sep 2010 23:41:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SEO friendly URL in PHP</title>
		<link>http://www.howtonix.com/seo-friendly-url-php/</link>
		<comments>http://www.howtonix.com/seo-friendly-url-php/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 21:29:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Elgg]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SEO Friendly URL]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=201</guid>
		<description><![CDATA[google_ad_client = "pub-4492234592142803"; /* 468x60, created 9/1/10 howtonix */ google_ad_slot = "5691725759"; google_ad_width = 468; google_ad_height = 60; You can make SEO Friendly url easily in php. function friendlyURL($string){ $string = preg_replace("`\[.*\]`U","",$string); $string = preg_replace('`&#38;(amp;)?#?[a-z0-9]+;`i','-',$string); $string = htmlentities($string, ENT_COMPAT, 'utf-8'); $string = preg_replace( "`&#38;([a-z])(acute&#124;uml&#124;circ&#124;grave&#124;ring&#124;cedil&#124;slash&#124;tilde&#124;caron&#124;lig&#124;quot&#124;rsquo);`i","\\1", $string ); $string = preg_replace( array("`[^a-z0-9]`i","`[-]+`") , "-", $string); return strtolower(trim($string, [...]]]></description>
			<content:encoded><![CDATA[
<!-- Quick Adsense WordPress Plugin: http://techmilieu.com/quick-adsense -->
<div style="float:none;margin:10px 0 10px 0;text-align:center;">
<script type="text/javascript">

google_ad_client = "pub-4492234592142803";
/* 468x60, created 9/1/10 howtonix */
google_ad_slot = "5691725759";
google_ad_width = 468;
google_ad_height = 60;


</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>You can make SEO Friendly url easily in php.</p>
<blockquote>
<pre>function friendlyURL($string){
	$string = <a href="http://www.php.net/preg_replace">preg_replace</a>("`\[.*\]`U","",$string);
	$string = <a href="http://www.php.net/preg_replace">preg_replace</a>('`&amp;(amp;)?#?[a-z0-9]+;`i','-',$string);
	$string = <a href="http://www.php.net/htmlentities">htmlentities</a>($string, ENT_COMPAT, 'utf-8');
	$string = <a href="http://www.php.net/preg_replace">preg_replace</a>( "`&amp;([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);`i","\\1", $string );
	$string = <a href="http://www.php.net/preg_replace">preg_replace</a>( <a href="http://www.php.net/array">array</a>("`[^a-z0-9]`i","`[-]+`") , "-", $string);
	return <a href="http://www.php.net/strtolower">strtolower</a>(<a href="http://www.php.net/trim">trim</a>($string, '-'));
}</pre>
</blockquote>
<p>usage:</p>
<blockquote>
<pre>$myFriendlyURL = friendlyURL("Barca rejects FIFA statement on Olympics row");
<a href="http://www.php.net/echo">echo</a> $myFriendlyURL; // will echo barca-rejects-fifa-statement-on-olympics-row</pre>
</blockquote>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/seo-friendly-url-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Use Jquery with Smarty Template Engine</title>
		<link>http://www.howtonix.com/jquery-smarty-template-engine/</link>
		<comments>http://www.howtonix.com/jquery-smarty-template-engine/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 23:11:00 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Jquery Smarty]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=161</guid>
		<description><![CDATA[Smarty is the template engine which is fast and nicely design for php programmers. Smarty makes your PHP code cleaner and promotes the V in MVC. Jquery is the another lightweight JavaScript Library for rapid web development. Anyway, do you see the problem that might arise when you try to embed your jQuery code or [...]]]></description>
			<content:encoded><![CDATA[<p>Smarty is the template engine which  is fast and nicely design for php programmers. Smarty makes your PHP code cleaner and promotes the V in MVC.</p>
<p>Jquery is the another lightweight JavaScript Library for rapid web development.</p>
<p>Anyway, do you see the problem that might arise when you try to embed your jQuery code or any other javascript library (like Prototype, MooTools, Extjs, etc.) that uses $ as a function name in the ?</p>
<p><strong>The solution:</strong><br />
Use Smarty’s {literal}&#8230;{/literal} directives to tell Smarty parsing engine that it should not interpret the code within the block. Smarty will not parse the code which is inside of literal block.</p>
<p><strong>Example:</strong></p>
<blockquote><p>User<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;// &lt;![CDATA[<br />
{literal}<br />
$(document).ready(function(){<br />
$(".clazz").css("color", "red");<br />
});<br />
{/literal}<br />
// ]]&gt;&lt;/script&gt;</p>
<p>User Information:</p>
<p>Name: {$name}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/jquery-smarty-template-engine/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How to make money from Twitter</title>
		<link>http://www.howtonix.com/money-twitter/</link>
		<comments>http://www.howtonix.com/money-twitter/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 03:23:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitter Ad Make Money]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=117</guid>
		<description><![CDATA[If you have a twitter account with many followers or just a few, you still can make money through a Twitter advertising company called Ad.ly. You set the price and once an advertiser is interested to put an ad in your tweet, you’ll earn money. For how much? It depends on how much price you [...]]]></description>
			<content:encoded><![CDATA[<div id="mainwrapper">
<div id="leftcontent">
<div>
<div>If you have a twitter account with many followers or just a few, you still can make money through a Twitter advertising company called <a rel="nofollow" href="http://ad.ly/publisher/refer/203451986322176562" target="_blank">Ad.ly.</a></div>
</div>
<div>
<p>You set the price and once an advertiser is interested to put an ad in your tweet, you’ll earn money. For how much? It depends on how much price you have set.</p>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/money-twitter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to disable PHP warning</title>
		<link>http://www.howtonix.com/hello-world/</link>
		<comments>http://www.howtonix.com/hello-world/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 14:50:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=1</guid>
		<description><![CDATA[Just type starting of php script: error_reporting(0);]]></description>
			<content:encoded><![CDATA[<p>Just type starting of php script:</p>
<p>error_reporting(0);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

