<?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"
	>

<channel>
	<title>blognol.com</title>
	<atom:link href="http://www.blognol.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blognol.com</link>
	<description>Digital Updateds</description>
	<pubDate>Sun, 12 Oct 2008 05:22:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>How to remove index.php from joomla URL</title>
		<link>http://www.blognol.com/how-to-remove-indexphp-from-joomla-url</link>
		<comments>http://www.blognol.com/how-to-remove-indexphp-from-joomla-url#comments</comments>
		<pubDate>Sun, 12 Oct 2008 05:20:38 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[Joomla]]></category>

		<category><![CDATA[sh404 component]]></category>

		<guid isPermaLink="false">http://www.blognol.com/?p=47</guid>
		<description><![CDATA[How to remove /index.php/ from joomla url  :- The default startup condition now for sh404, after you enable it, is to work without an htaccess file. You can leave it like this if you like (we do, on this site). It has no effect on search engines for example - we have around 50 #1 [...]]]></description>
			<content:encoded><![CDATA[<p>How to remove /index.php/ from joomla url  :- The default startup condition now for sh404, after you enable it, is to work without an htaccess file. You can leave it like this if you like (we do, on this site). It has no effect on search engines for example - we have around 50 #1 or #2 global search results here, on this website, so obviously the search potential is unaffected. The URL will look like this:<br />
www.blognol.com/index.php/showblog.html</p>
<p>You&#8217;ll see it has an extra level in the middle that looks out of place and could be removed. As stated, you can leave it like this - and we do, since we like the fact it works entirely within the CMS and doesn&#8217;t use an htaccess file.<br />
<span id="more-47"></span><br />
Many people will want to fix it though. That means you must use an htaccess file. In the past this was the default, but so many people had problems just getting the plugin to work the developer got tired of it and changed the default, so that it always works - but it has an extra level within the URL.</p>
<p>You will now be using the Apache server rewrite function (the server rewrites the URL to a better format). This is enabled within the server local configuration file, called the htaccess file. First we will check to see that the built-in Joomla SEF / htaccess solution works. If it doesn&#8217;t, there won&#8217;t be much point going any further, sh404SEF certainly won&#8217;t.</p>
<p>First switch off sh404 if you had it enabled. We now want to check the core SEF solution works, as a first job.</p>
<p>1. In the standard Joomla htaccess file, you&#8217;ll see that the core SEF rewrite section - &#8216;Begin - Joomla! core SEF Section&#8217; - at around lines 66 to 78, is uncommented and therefore live and operational. That htaccess file should be in your server webroot, with all the other Joomla files and folders.</p>
<p>2. Go to your backend admin &gt;&gt; text menus at top of page &gt;&gt; Site &gt;&gt; Global Configuration &gt;&gt; SEO tab at far right &gt;&gt; check &#8216;Yes&#8217; for Search Engine Friendly URLs.</p>
<p>3. Check the livesite (your working website). Now, it should have different URLs showing. They will be shorter and definitely better than the initial &#8216;raw&#8217; URLs. But they can be improved.</p>
<p>4. Now go to your htaccess file again. Comment-out the Joomla Core SEF Section at lines 66 - 78.</p>
<p>5. Uncomment the &#8216;Begin - 3rd Party SEF Section&#8217; at lines 82 to 92. Actually you don&#8217;t uncomment all of them - just do the lines of working script of course, which are from 86 to 90. Those are the lines with a single hash (#), which you remove to set that line live. The server now reads it.</p>
<p>6. FTP the changed htaccess file up to the server and overwrite the original.</p>
<p>7. Go to your admin backend, to the sh404 configuration.<br />
In the admin backend &gt;&gt; text menu at top &gt;&gt; Components &gt;&gt; sh404SEF &gt;&gt; sh404SEF Configuration (the top left blue button) &gt;&gt; Main tab &gt;&gt; Enabled = Yes.<br />
Then go to the Advanced tab &gt;&gt; Advanced Component Configuration &gt;&gt; Rewriting mode &gt;&gt; change spin box selection, to &#8216;with htaccess (mod_rewrite)&#8217;.</p>
<p>And you&#8217;re done. Check the livesite. You should now have SEF URLs that look like this:<br />
www.blognol.com/showblog.html</p>
<p>Thanks : http://www.a3webtech.com/index.php/install-sh404.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/how-to-remove-indexphp-from-joomla-url/feed</wfw:commentRss>
		</item>
		<item>
		<title>Scaffolding in Cakephp</title>
		<link>http://www.blognol.com/scaffolding-in-cakephp</link>
		<comments>http://www.blognol.com/scaffolding-in-cakephp#comments</comments>
		<pubDate>Sat, 04 Oct 2008 02:08:06 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[PHP programming]]></category>

		<guid isPermaLink="false">http://www.blognol.com/?p=44</guid>
		<description><![CDATA[About Scaffolding in CakePhp . Application scaffolding is a technique that allows a developer to define and create a basic application that can create, retrieve, update and delete objects. Scaffolding in CakePHP also allows developers to define how objects are related to each other, and to create and break those links.
All that’s needed to create [...]]]></description>
			<content:encoded><![CDATA[<p>About Scaffolding in CakePhp . Application scaffolding is a technique that allows a developer to define and create a basic application that can create, retrieve, update and delete objects. Scaffolding in CakePHP also allows developers to define how objects are related to each other, and to create and break those links.</p>
<p>All that’s needed to create a scaffold is a model and its controller. Once you set the $scaffold variable in the controller, you’re up and running.</p>
<p>CakePHP’s scaffolding is pretty cool. It allows you to get a basic CRUD application up and going in minutes. So cool that you&#8217;ll want to use it in production apps. Now, we think its cool too, but please realize that scaffolding is&#8230; well&#8230; just scaffolding. It&#8217;s a loose structure you throw up real quick during the beginning of a project in order to get started. It isn&#8217;t meant to be completely flexible, it’s meant as a temporary way to get up and going. If you find yourself really wanting to customize your logic and your views, its time to pull your scaffolding down in order to write some code. CakePHP’s Bake console, covered in the next section, is a great next step: it generates all the code that would produce the same result as the most current scaffold.</p>
<p>Scaffolding is a great way of getting the early parts of developing a web application started. Early database schemas are subject to change, which is perfectly normal in the early part of the design process. This has a downside: a web developer hates creating forms that never will see real use. To reduce the strain on the developer, scaffolding has been included in CakePHP. Scaffolding analyzes your database tables and creates standard lists with add, delete and edit buttons, standard forms for editing and standard views for inspecting a single item in the database.</p>
<p>To add scaffolding to your application, in the controller, add the $scaffold variable:</p>
<p><code><span class="keyword">class </span><span class="default">CategoriesController </span><span class="keyword">extends </span><span class="default">AppController </span><span class="keyword">{</span></code></p>
<p><code><span class="keyword">var </span><span class="default">$scaffold</span><span class="keyword">;</span></code></p>
<p><code><span class="keyword">}</span></code></p>
<p>for more info : http://manual.cakephp.org/view/105/Scaffolding</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/scaffolding-in-cakephp/feed</wfw:commentRss>
		</item>
		<item>
		<title>Convert Joomla Templates</title>
		<link>http://www.blognol.com/convert-joomla-templates</link>
		<comments>http://www.blognol.com/convert-joomla-templates#comments</comments>
		<pubDate>Fri, 19 Sep 2008 06:42:37 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.blognol.com/?p=41</guid>
		<description><![CDATA[Joomla 1.5 getting more popular. A tutorial provides instructions for converting a Joomla! 1.0.x template to run in Joomla! 1.5 native mode.  The classic rhuk Solarflare II template is used to illustrate the steps one must take to accomplish this task.
Rhuk&#8217;s Solarflare II is one of the most popular templates ever for Joomla! and before [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-42" title="solarflare2" src="http://www.blognol.com/wp-content/uploads/2008/09/solarflare2.jpg" alt="" width="206" height="150" />Joomla 1.5 getting more popular. A tutorial provides instructions for converting a Joomla! 1.0.x template to run in Joomla! 1.5 native mode.  The classic rhuk Solarflare II template is used to illustrate the steps one must take to accomplish this task.</p>
<p>Rhuk&#8217;s Solarflare II is one of the most popular templates ever for Joomla! and before that for Mambo.  It was included in the initial Joomla! 1.0.0 release and before that with various releases of Mambo.  I do not recall when the initial version of Solarflare II appeared.  The version I used as baseline for conversion to Joomla 1.5 is dated November 2, 2004.</p>
<p>For more details  :  <a href="http://community.joomla.org/magazine/article/548-migrating-rhuk-solarflare-ii-into-joomla-15.html">http://community.joomla.org/magazine/article/548-migrating-rhuk-solarflare-ii-into-joomla-15.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/convert-joomla-templates/feed</wfw:commentRss>
		</item>
		<item>
		<title>Top 10 Free Joomla Extensions</title>
		<link>http://www.blognol.com/top-10-free-joomla-extensions</link>
		<comments>http://www.blognol.com/top-10-free-joomla-extensions#comments</comments>
		<pubDate>Wed, 20 Aug 2008 04:43:57 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.blognol.com/top-10-free-joomla-extensions</guid>
		<description><![CDATA[Top 10 Free Joomla Extensions
1. JoomlaXplorer
This Joomla component is a robust file manager that works within Joomla. Sure, you can work a little more efficiently with an external FTP program (I recommend Filezilla), but for the feature list and price, nothing comes close to JoomlaXplorer. I would anticipate that this extension become fully integrated into [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Top 10 Free Joomla Extensions</strong></p>
<p><strong>1. JoomlaXplorer</strong></p>
<p>This Joomla component is a robust file manager that works within Joomla. Sure, you can work a little more efficiently with an external FTP program (I recommend Filezilla), but for the feature list and price, nothing comes close to JoomlaXplorer. I would anticipate that this extension become fully integrated into Joomla at some point since it works as well as it does. I&#8217;ve uploaded this one on many commercial sites and nearly blew my clients away. &#8220;Wow&#8221; best describes this component..</p>
<p><strong>2. sh404SEF</strong></p>
<p>This Joomla component helps you incorporate SEO and into your Joomla site. If you don&#8217;t know why you need SEO, please read this free Joomla SEO tutorial. What makes this particular SEO component better than most, is its support of most popular extensions and relatively ease of use. I think most will agree, this is the best Joomla SEO component.</p>
<p><strong>3. Fireboard</strong></p>
<p>Fireboard may be one of the most exciting Joomla components to hit the market in the last 6 months. Before this one came along, if you wanted a rock solid forum, you used SMF with a bridge which often caused problems (not to mention it was a bit of a hassle). If you wanted something that worked well with Joomla, you were forced to use Joomlaboard. Lucky us, now we have the best of both! Hand down, the best forum component for Joomla.</p>
<p><strong>4. Smoothgallery + Lightbox</strong></p>
<p>This Joomla mambot is worth its weight in gold! Believe me, I have used my fair share of Joomla galleries and slide shows - but this is the primary gallery extension I offer to my clients. It looks fabulous, works well and once setup, it works in a variety of custom situations. Note that this extension uses AJAX libraries and I have had issues with it in conjunction with other AJAX extensions installed on the same site - but there are workarounds for such issues. The benefits far outweight these minor issues.<br />
<span id="more-38"></span><br />
<strong>5. Community Builder</strong></p>
<p>This Joomla extension is a must for any type of social network, yet has uses beyond that purpose. Nothing comes close to the amount of features this one provides. There are some setup steps involved, so it does take some time to get setup..but once its going, nothing does with this free Joomla component does. There are also many various extensions specifically for Community Builder which extend it far past the basic setup.</p>
<p><strong>6. MiniFrontPage</strong></p>
<p>I recently discovered this free Joomla module and simply love it. I call this one the Cadillac of latest news modules, since it does an excellent job of displaying your latest content additions in a module position. Easily display a snippet of your latest content, with an auto-generated image + offers a customizable read more link. &#8212; even gives you links to related content! What more could you want?</p>
<p><strong>7. JoomlaStats</strong></p>
<p>This is an awesome Joomla component for tracking statistics. Its not nearly as thorough as something like Google Analytics, but for a fully Joomla integrated statistical component, this one cant be beat. Definitely worth using if your interested in tracking visitors and referrals.</p>
<p><strong>8. Jombackup</strong></p>
<p>This little database backup mambot does what its supposed to! Its basically a simple database backup bot that, once setup, will automatically backup your Joomla database and email it to you. What else can I say, it doesn&#8217;t get any easier than this!</p>
<p><strong>9. Virtuemart</strong></p>
<p>This set of free Joomla extensions makes you realize how great Joomla really is. If your selling anything and need a Joomla integrated shopping cart solution, you need to know about Virtuemart. Works out of the box, has some great documentation available on their site, and an overall great extension. While this component has its problems, I felt it was a notable addition to this list due to the fact that it is the best general purpose Joomla E-Commerce solution.</p>
<p><strong>10. Extended Menu</strong></p>
<p>This powerfull Joomla module allows you to display CSS dropdown menus (AKA Suckerfish). There are a handful of CSS drop down menus available to Joomla, I typically prefer this one over others due to its raw power and functionality. If you are somewhat of a Joomla novice, I do not recommend this module as it tends to be difficult to setup if you are unfamiliar with CSS. If you are a developer, this module will offer you a solid base in which to build a totally customizable menu system that fully integrates with existing Joomla menus.</p>
<p>Thanks joomlaport.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/top-10-free-joomla-extensions/feed</wfw:commentRss>
		</item>
		<item>
		<title>Embed More Advertisments</title>
		<link>http://www.blognol.com/embed-more-advertisments</link>
		<comments>http://www.blognol.com/embed-more-advertisments#comments</comments>
		<pubDate>Thu, 14 Aug 2008 14:39:35 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://www.blognol.com/embed-more-advertisments</guid>
		<description><![CDATA[Embed More Advertisments is a Wordpress plugin for managing video, image and text advertisement on your blog. Plugin which use to add videos and advertisements  into your blog . The Videos will shown in the home page  and the advertisement will shown in all posts. Also you can set advertisements that should shown below all [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Embed More Advertisments is a Wordpress plugin for managing video, image and text advertisement on your blog. Plugin which use to add videos and advertisements  into your blog . The Videos will shown in the home page  and the advertisement will shown in all posts. Also you can set advertisements that should shown below all the posts</strong></p>
<p><strong> How to Install Plugin</strong></p>
<p>1. Download the plugin archive and expand it (you&#8217;ve likely already done this).<br />
2. Put the uploadvideos folder into your wp-content/plugins/ directory.<br />
3. Go to the Plugins page in your WordPress Administration area and click &#8216;Activate&#8217; for Embed More Advertisements.<br />
4. Go to the  Upload Videos (Settings &gt; Upload Videos) to enter your codes and preferences.</p>
<p>Please send a mail to blognol08@gmail.com to get free download of Plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/embed-more-advertisments/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to change FeedBurner Reader Statistic Using PHP cURL</title>
		<link>http://www.blognol.com/how-to-change-feedburner-reader-statistic-using-php-curl</link>
		<comments>http://www.blognol.com/how-to-change-feedburner-reader-statistic-using-php-curl#comments</comments>
		<pubDate>Sun, 10 Aug 2008 07:23:10 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[PHP programming]]></category>

		<guid isPermaLink="false">http://www.blognol.com/how-to-change-feedburner-reader-statistic-using-php-curl</guid>
		<description><![CDATA[

  
If you want to change the traditional feedburner Â reader statistic image use the below program in your widgets which will fetch the readers feedburner .Everyone has one: Digg, Feedburner, Pownce, Flickr, Google Maps, etc. FeedBurner provides a sweet &#8220;Awareness API&#8221; that allows you to pull statistics from your FeedBurner account. Here&#8217;s how you [...]]]></description>
			<content:encoded><![CDATA[<p><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="ProgId" content="Word.Document" /><meta name="Generator" content="Microsoft Word 11" /><meta name="Originator" content="Microsoft Word 11" /></p>
<link href="file:///C:%5CDOCUME%7E1%5Csundhar%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List" /><!--[if gte mso 9]><xml>  <w:WordDocument>   <w:View>Normal</w:View>   <w:Zoom>0</w:Zoom>   <w:PunctuationKerning/>   <w:ValidateAgainstSchemas/>   <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>   <w:IgnoreMixedContent>false</w:IgnoreMixedContent>   <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>   <w:Compatibility>    <w:BreakWrappedTables/>    <w:SnapToGridInCell/>    <w:WrapTextWithPunct/>    <w:UseAsianBreakRules/>    <w:DontGrowAutofit/>   </w:Compatibility>   <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>  </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml>  <w:LatentStyles DefLockedState="false" LatentStyleCount="156">  </w:LatentStyles> </xml><![endif]--><br />
<style> <!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} p 	{mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} span.comment 	{mso-style-name:comment;} span.vars 	{mso-style-name:vars;} span.func 	{mso-style-name:func;} span.string 	{mso-style-name:string;} span.keyword 	{mso-style-name:keyword;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --> </style>
<p><!--[if gte mso 10]><br />
<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} </style>
<p> <![endif]-->If you want to change the traditional feedburner <span>Â </span>reader statistic image use the below program in your widgets which will fetch the readers feedburner .Everyone has one: Digg, Feedburner, Pownce, Flickr, Google Maps, etc. FeedBurner provides a sweet &#8220;Awareness API&#8221; that allows you to pull statistics from your FeedBurner account. Here&#8217;s how you do it using PHP cURL.</p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="comment">//openÂ connection</span>Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="vars">$ch</span>Â =Â <span class="func">curl_init</span>();Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="comment">//setÂ theÂ url,Â numberÂ ofÂ POSTÂ vars,Â POSTÂ data</span>Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="func">curl_setopt</span>(<span class="vars">$ch</span>,CURLOPT_URL,<span class="string">&#8216;http://api.feedburner.com/awareness/1.0/GetFeedData?id=#######&#8217;</span>);Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="func">curl_setopt</span>(<span class="vars">$ch</span>,CURLOPT_RETURNTRANSFER,1);Â Â Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="func">curl_setopt</span>(<span class="vars">$ch</span>,CURLOPT_CONNECTTIMEOUT,<span class="vars">$timeout</span>);Â Â <o:p></o:p></p>
<p class="MsoNormal"><span class="comment"><span>Â Â Â Â  </span>//executeÂ post</span>Â Â <o:p></o:p></p>
<p class="MsoNormal"><span class="vars"><span>Â Â Â Â  </span>$content</span>Â =Â <span class="func">curl_exec</span>(<span class="vars">$ch</span>);Â Â <o:p></o:p></p>
<p class="MsoNormal"><span class="vars"><span>Â Â Â Â  </span>$subscribers</span>Â =Â get_match(<span class="string">&#8216;/circulation=&#8221;(.*)&#8221;/isU&#8217;</span>,<span class="vars">$content</span>);Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="func">echo</span>Â <span class="string">&#8216;Subscribers:Â Â &#8217;</span>.<span class="vars">$subscribers</span>;Â Â <o:p></o:p></p>
<p class="MsoNormal"><span class="comment"><span>Â Â Â Â Â  </span>//closeÂ connection</span>Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="func">curl_close</span>(<span class="vars">$ch</span>);Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="comment">/*Â helper:Â doesÂ theÂ regexÂ */</span>Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="keyword">function</span>Â get_match(<span class="vars">$regex</span>,<span class="vars">$content</span>)Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in">{Â Â <o:p></o:p></p>
<p class="MsoNormal">Â Â <span>Â Â Â Â Â Â  </span>Â <span class="func">preg_match</span>(<span class="vars">$regex</span>,<span class="vars">$content</span>,<span class="vars">$matches</span>);Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in">Â Â Â Â <span class="keyword">return</span>Â <span class="vars">$matches</span>[1];Â Â <o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in">}Â Â <o:p></o:p></p>
<p class="MsoNormal"><o:p>Â </o:p></p>
<p class="MsoNormal">It&#8217;s that easy. What makes this even better is that I hate FeedBurner&#8217;s &#8220;badge&#8221; and I can manipulate the result of the above code any way I want. <span>Â </span>To learn more about FeedBurner&#8217;s Awareness API and the information you can pull about your feed view the below url http://code.google.com/apis/feedburner/awareness_api.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/how-to-change-feedburner-reader-statistic-using-php-curl/feed</wfw:commentRss>
		</item>
		<item>
		<title>Export data from MYSQL to EXCEL</title>
		<link>http://www.blognol.com/export-data-from-mysql-to-excel</link>
		<comments>http://www.blognol.com/export-data-from-mysql-to-excel#comments</comments>
		<pubDate>Sat, 02 Aug 2008 09:15:16 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[PHP programming]]></category>

		<guid isPermaLink="false">http://www.blognol.com/export-data-from-mysql-to-excel</guid>
		<description><![CDATA[Php script to export data from MYSQL to EXCEL. You can just upload this application and use. It no needs any database or any other external plugin. To get this web application just pay $6Â  (Click here to Pay) and just send your payment detail and mail id through the contact form.
]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">Php script to export data from MYSQL to EXCEL. <a href="http://www.blognol.com/wp-content/uploads/2008/08/export.jpg" title="export data from mysql to excel"><img src="http://www.blognol.com/wp-content/uploads/2008/08/export.jpg" title="export data from mysql to excel" alt="export data from mysql to excel" align="left" /></a>You can just upload this application and use. It no needs any database or any other external plugin. To get this web application just pay $6Â  <strong><a href="http://www.blognol.com/buy.php">(Click here to Pay)</a></strong> and just send your payment detail and mail id through the contact form.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/export-data-from-mysql-to-excel/feed</wfw:commentRss>
		</item>
		<item>
		<title>Smarty with htaccess</title>
		<link>http://www.blognol.com/smarty-with-htaccess</link>
		<comments>http://www.blognol.com/smarty-with-htaccess#comments</comments>
		<pubDate>Fri, 01 Aug 2008 12:18:50 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[HTACCESS]]></category>

		<category><![CDATA[PHP programming]]></category>

		<category><![CDATA[Smarty]]></category>

		<guid isPermaLink="false">http://www.blognol.com/smarty-with-htaccess</guid>
		<description><![CDATA[If you are using PHP with SMARTY Â and want to quickly convert your ugly URLs to pretty URLs, it is best to use a detailed ruleset for mod_rewrite to process. The alternative is to say â€œif the requested file does not exist, rewrite to a particular scriptâ€. This means that requests for images, CSS files, [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using PHP with SMARTY <span>Â </span>and want to quickly convert your ugly URLs to pretty URLs, it is best to use a detailed ruleset for mod_rewrite to process. The alternative is to say â€œif the requested file does <em>not</em> exist, rewrite to a particular scriptâ€. This means that requests for images, CSS files, etc. will still return the correct file. Everything else will be sent to the script to process where the requested URL will be available under the server REQUEST_URI variable. To use this method, you would need to create a .htaccess file in your domain root (or wherever you want the rewrite to apply) with the following inside:<o:p></o:p></p>
<pre>Options +FollowSymLinks<o:p></o:p></pre>
<pre>RewriteEngine On<o:p></o:p></pre>
<pre>RewriteCond %{SCRIPT_FILENAME} !-d<o:p></o:p></pre>
<pre>RewriteCond %{SCRIPT_FILENAME} !-f<o:p></o:p></pre>
<pre>RewriteRule .* index.php [L]<o:p></o:p></pre>
<p>Replace index.php with the name of whatever script you wish to use. Sticking with the PHP example, I could then create the index.php file as follows:<o:p></o:p></p>
<pre>&lt;?php<o:p></o:p></pre>
<pre>$requested = empty($_SERVER['REQUEST_URI']) ? false : $_SERVER['REQUEST_URI'];</pre>
<pre><o:p>Â </o:p></pre>
<pre>$smarty=new Smarty();<o:p></o:p></pre>
<pre><o:p>Â </o:p></pre>
<pre>switch ( $requested ) {<o:p></o:p></pre>
<pre><o:p>Â </o:p></pre>
<pre><span>Â Â Â Â Â Â Â  </span>case 'latest':<o:p></o:p></pre>
<pre><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>require_once 'latest_products.php';</pre>
<pre><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$content=$smarty-&gt;fetch(latest.tpl);<o:p></o:p></pre>
<pre><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>break;<o:p></o:p></pre>
<pre><o:p>Â </o:p></pre>
<pre><span>Â Â Â Â Â Â Â  </span>case 'listing':<o:p></o:p></pre>
<pre><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>require_once 'list_products.php';</pre>
<pre><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$content=$smarty-&gt;fetch(list_products.tpl);<o:p></o:p></pre>
<pre><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>break;<o:p></o:p></pre>
<pre><o:p>Â </o:p></pre>
<pre><span>Â Â Â Â Â Â Â  </span>default:<o:p></o:p></pre>
<pre><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>include 'default.php';</pre>
<pre><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$content=$smarty-&gt;fetch(default.tpl);<o:p></o:p></pre>
<pre>}</pre>
<pre><o:p>Â </o:p></pre>
<pre>$smarty-&gt;assign(â€˜headerâ€™,$smarty-&gt;fetch(header.tpl));</pre>
<pre>$smarty-&gt;assign(â€˜footerâ€™,$smarty-&gt;fetch(footer.tpl));</pre>
<pre>$smarty-&gt;assign(â€˜bodyContentâ€™,$content);</pre>
<pre>$smarty-&gt;display(main.tpl);<o:p></o:p></pre>
<pre><o:p>Â </o:p></pre>
<pre>?&gt;<o:p></o:p></pre>
<p class="MsoNormal"><o:p>Â </o:p><br />
<strong>main .tpl</strong></p>
<p class="MsoNormal"><o:p>Â </o:p>{$header}</p>
<p class="MsoNormal">{$bodyContent}</p>
<p class="MsoNormal">{$footer}</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">If you need any projects or customization in SMARTY and PHPÂ  , please send me an message via contact form</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/smarty-with-htaccess/feed</wfw:commentRss>
		</item>
		<item>
		<title>Create thumbnail using php</title>
		<link>http://www.blognol.com/create-thumbnail-using-php</link>
		<comments>http://www.blognol.com/create-thumbnail-using-php#comments</comments>
		<pubDate>Fri, 04 Jul 2008 04:37:39 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[PHP programming]]></category>

		<guid isPermaLink="false">http://www.blognol.com/create-thumbnail-using-php</guid>
		<description><![CDATA[One of most searches in php is how to create thumbnail images on the fly using PHP. Since this requires the GD library, you will need an installation of PHP with at least GD 2.0.1 enabled.
The code below creates a function namedÂ resizeImageÂ that will get three parameters. The first parameter is correspondingly the path to the [...]]]></description>
			<content:encoded><![CDATA[<p>One of most searches in php is how to create thumbnail images on the fly using PHP. Since this requires the GD library, you will need an installation of PHP with at least GD 2.0.1 enabled.</p>
<p>The code below creates a function namedÂ <em>resizeImage</em>Â that will get three parameters. The first parameter is correspondingly the path to the directory that contains original images. The second is the image extension The third and fourthÂ parameter is the width and height you want for the thumbnail images.</p>
<p>From the below method you can create thumb of JPG, PNG,GIF.</p>
<p class="MsoNormal">function resizeImage($remoteImage,$ext,$maxwidth,$maxheight)</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â  </span>{</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â  </span>$imagepath=$remoteImage;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â  </span>$imagedata=getimagesize($imagepath);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â  </span>$imgwidth=$imagedata[0];</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â  </span>$imgheight=$imagedata[1];</p>
<p class="MsoNormal"><span>Â Â Â Â Â  </span></p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â  </span>$shrink=1;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â  </span>if($imgwidth &gt; $maxwidth)</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>{</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$shrink=$maxwidth/$imgwidth;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>}</p>
<p class="MsoNormal"><span>Â Â Â Â Â  </span></p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â  </span>if($shrink!=1)</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>{</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$output_height=$shrink * $imgheight;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$output_width=$maxwidth;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>}else{</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$output_height=$imgheight;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$output_width=$imgwidth;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>}</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â  </span>if( $output_height &gt; $maxheight )</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>{</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$shrink = $maxheight / $output_height ;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span><span>Â Â Â Â </span>$output_width = $shrink * $output_width;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  </span>$output_height = $maxheight;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>}</p>
<p class="MsoNormal"><span>Â Â Â Â Â  </span></p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â  </span>switch($ext){</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â  </span>case &#8220;.gif&#8221;:</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>$src_image = @imagecreatefromgif($imagepath);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>$dest_image = @imagecreatetruecolor ($output_width, $output_height);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>imagecopyresampled($dest_image, $src_image, 0, 0, 0, 0, $output_width, $output_height, $imgwidth, $imgheight);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>imagegif($dest_image, $imagepath, 100);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>break;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â  </span>case &#8220;.jpg&#8221;:</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>$src_image = @imagecreatefromjpeg($imagepath);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>$dest_image = @imagecreatetruecolor ($output_width, $output_height);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>imagecopyresampled($dest_image, $src_image, 0, 0, 0, 0, $output_width, $output_height, $imgwidth, $imgheight);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>imagejpeg($dest_image, $imagepath, 100);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>break;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â  </span>case &#8220;.jpeg&#8221;:</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>$src_image = @imagecreatefromjpeg($imagepath);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>$dest_image = @imagecreatetruecolor ($output_width, $output_height);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â  </span><span>Â Â </span>imagecopyresampled($dest_image, $src_image, 0, 0, 0, 0, $output_width, $output_height, $imgwidth, $imgheight);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>imagejpeg($dest_image, $imagepath, 100);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>break;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â  </span>case &#8220;.png&#8221;:</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>$src_image = @imagecreatefrompng($imagepath);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>$dest_image = @imagecreatetruecolor ($output_width, $output_height);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>imagecopyresampled($dest_image, $src_image, 0, 0, 0, 0, $output_width, $output_height, $imgwidth, $imgheight);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>imagepng($dest_image, $imagepath, 100);</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â Â Â  </span>break;</p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â Â Â  </span>}</p>
<p class="MsoNormal"><span>Â Â Â Â Â  </span></p>
<p class="MsoNormal"><span>Â Â Â Â Â Â Â  </span>}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/create-thumbnail-using-php/feed</wfw:commentRss>
		</item>
		<item>
		<title>Regular Expressions in php</title>
		<link>http://www.blognol.com/regular-expressions-in-php</link>
		<comments>http://www.blognol.com/regular-expressions-in-php#comments</comments>
		<pubDate>Wed, 02 Jul 2008 12:50:08 +0000</pubDate>
		<dc:creator>Mart</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[PHP programming]]></category>

		<guid isPermaLink="false">http://www.blognol.com/regular-expressions-in-php</guid>
		<description><![CDATA[Master in Regular Expressions.
Regular expression can be explained as a pattern that can match various text strings. Using regular expressions you can find (and replace) certain text patterns, for example &#8220;all the words that begin with the letter A&#8221; or &#8220;find only telephone numbers&#8221;. Regular expressions are often used in validation classes, because they are [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-size: 12pt; font-family: 'Times New Roman'">Master in Regular Expressions.</span></strong></p>
<p><span style="font-size: 12pt; font-family: 'Times New Roman'">Regular expression can be explained as a pattern that can match various text strings. Using regular expressions you can find (and replace) certain text patterns, for example &#8220;all the words that begin with the letter A&#8221; or &#8220;find only telephone numbers&#8221;. Regular expressions are often used in validation classes, because they are a really powerful tool to verify e-mail addresses, telephone numbers, street addresses, zip codes, and more.</span></p>
<p>In this tutorial I will show you how regular expressions work in PHP, and give you a short introduction on writing your own regular expressions. I will also give you several example regular expressions that are often used.Regular Expressions in PHP<br />
Using regex (regular expressions) is really easy in PHP, and there are several functions that exist to do regex finding and replacing. Let&#8217;s start with a simple regex find.</p>
<p>&lt;?php</p>
<pre>// Example string

$str = "Let's find the stuff &lt;here&gt;in between&lt;/here&gt; these two previous brackets";

// Let's perform the regex

$do = preg_match("/&lt;here&gt;(.*)&lt;/here&gt;/", $str, $matches);

// Check if regex was successful

if ($do = true) {

// Matched something, show the matched string

echo htmlentities($matches['0']);

// Also how the text in between the tags

echo '&lt;br /&gt;' . $matches['1'];

} else {

// No Match

echo "Couldn't find a match";

}

?&gt;</pre>
<p>More expressions</p>
<pre>//Credit card: All major cards
'^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6011[0-9]{12}|3(?:0[0-5]|[68][0-9])[0-9]{11}|3[47][0-9]{13})$'

//Credit card: American Express
'^3[47][0-9]{13}$'

//Credit card: Diners Club
'^3(?:0[0-5]|[68][0-9])[0-9]{11}$'

//Credit card: Discover
'^6011[0-9]{12}$'

//Credit card: MasterCard
'^5[1-5][0-9]{14}$'

//Credit card: Visa
'^4[0-9]{12}(?:[0-9]{3})?$'

//Credit card: remove non-digits
'/[^0-9]+/'</pre>
<pre>//Email address
//Use this version to seek out email addresses in random documents and texts.
//Does not match email addresses using an IP address instead of a domain name.
//Does not match email addresses on new-fangled top-level domains with more than 4 letters such as .museum.
//Including these increases the risk of false positives when applying the regex to random documents.
'\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b'

//Email address (anchored)
//Use this anchored version to check if a valid email address was entered.
//Does not match email addresses using an IP address instead of a domain name.
//Does not match email addresses on new-fangled top-level domains with more than 4 letters such as .museum.
//Requires the "case insensitive" option to be ON.
'^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$'

//Email address (anchored; no consecutive dots)
//Use this anchored version to check if a valid email address was entered.
//Improves on the original email address regex by excluding addresses with consecutive dots such as john@aol...com
//Does not match email addresses using an IP address instead of a domain name.
//Does not match email addresses on new-fangled top-level domains with more than 4 letters such as .museum.
//Including these increases the risk of false positives when applying the regex to random documents.
'^[A-Z0-9._%-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}$'

//Email address (no consecutive dots)
//Use this version to seek out email addresses in random documents and texts.
//Improves on the original email address regex by excluding addresses with consecutive dots such as john@aol...com
//Does not match email addresses using an IP address instead of a domain name.
//Does not match email addresses on new-fangled top-level domains with more than 4 letters such as .museum.
//Including these increases the risk of false positives when applying the regex to random documents.
'\b[A-Z0-9._%-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}\b'

//Email address (specific TLDs)
//Does not match email addresses using an IP address instead of a domain name.
//Matches all country code top level domains, and specific common top level domains.
'^[A-Z0-9._%-]+@[A-Z0-9.-]+\.(?:[A-Z]{2}|com|org|net|biz|info|name|aero|biz|info|jobs|museum|name)$'

//Email address: Replace with HTML link
'\b(?:mailto:)?([A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4})\b'</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.blognol.com/regular-expressions-in-php/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
