<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>CodeBee</title>
	<atom:link href="http://ahmsaiful.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ahmsaiful.wordpress.com</link>
	<description>CodeBee, a PHP Bee</description>
	<lastBuildDate>Fri, 02 Dec 2011 11:23:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ahmsaiful.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/ffe8b3bd692c1e7f085b24e44594526c?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>CodeBee</title>
		<link>http://ahmsaiful.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ahmsaiful.wordpress.com/osd.xml" title="CodeBee" />
	<atom:link rel='hub' href='http://ahmsaiful.wordpress.com/?pushpress=hub'/>
		<item>
		<title>OpenCart config url,dir path problem and htaccess issue</title>
		<link>http://ahmsaiful.wordpress.com/2011/12/02/opencart-config-urldir-path-problem-and-htaccess-issue/</link>
		<comments>http://ahmsaiful.wordpress.com/2011/12/02/opencart-config-urldir-path-problem-and-htaccess-issue/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 04:57:08 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[OpenCart]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[htaccess issue]]></category>
		<category><![CDATA[opencart config]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=226</guid>
		<description><![CDATA[Opencart is another easy, robust and handy e-commerce CMS. For beginner, there are some common problem related to URL, Directory path and .htaccess issues. Following issues need to keep in mind during installation, moving to another server or installation on windows: Use trailing slash after the url like define(&#8216;HTTP_SERVER&#8217;, &#8216;localhost/myproject/&#8217;) otherwise it may not load all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=226&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="OpenCart" href="http://www.opencart.com/" target="_blank">Opencart</a> is another easy, robust and handy e-commerce CMS. For beginner, there are some common problem related to URL, Directory path and .htaccess issues.</p>
<p>Following issues need to keep in mind during installation, moving to another server or installation on windows:</p>
<ul>
<li>Use trailing slash after the url like <span style="color:#008080;">define(&#8216;HTTP_SERVER&#8217;, &#8216;localhost/myproject/&#8217;)</span> otherwise it may not load all css, images and js files.</li>
<li>For windows, use path like <span style="color:#008080;">define(&#8216;DIR_APPLICATION&#8217;, &#8216;F:\wamp\www\myproject/catalog/&#8217;);</span> as well as for other settings. It may be ok in normal way like <span style="color:#008080;">define(&#8216;DIR_APPLICATION&#8217;, &#8216;F:/wamp/www/myproject/admin/&#8217;);</span></li>
<li>For htaccess, if your store/project is in your document root which is generally public_html on cpanel servers that is ok for for default RewriteBase, but if it&#8217;s in a subfolder you will need to edit the file and change the<span style="color:#008080;"> &#8216;RewriteBase /&#8217;</span> to<span style="color:#008080;"> &#8216;RewriteBase /subfoldername/&#8217;</span></li>
</ul>
<p>That&#8217;s all for some common issue. Have fun with open source <a title="OpenCart" href="http://www.opencart.com/" target="_blank">opencart</a> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=226&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2011/12/02/opencart-config-urldir-path-problem-and-htaccess-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>
	</item>
		<item>
		<title>isset() use techniques in php</title>
		<link>http://ahmsaiful.wordpress.com/2011/06/14/isset-use-techniques-in-php/</link>
		<comments>http://ahmsaiful.wordpress.com/2011/06/14/isset-use-techniques-in-php/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 12:15:15 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=214</guid>
		<description><![CDATA[isset() is the most commonly used php construct as well as a good friend of  a programmer. we frequently use it to check whether a variable has been set or not. it returns true if the variable has been set otherwise false&#8230; also return false if the variable has been set to null. isset() is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=214&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#0000ff;"><a href="http://ahmsaiful.files.wordpress.com/2011/06/isset_rgb.png"><img class="alignnone size-full wp-image-218" title="ISSET_rgb" src="http://ahmsaiful.files.wordpress.com/2011/06/isset_rgb.png?w=632" alt="isset"   /></a></span></p>
<p><span style="color:#0000ff;">isset()</span> is the most commonly used php construct as well as a good friend of  a programmer. we frequently use it to check whether a variable has been set or not. it returns <span style="color:#993300;">true</span> if the variable has been set otherwise <span style="color:#993300;">false</span>&#8230; also return <span style="color:#993300;">false</span> if the variable has been set to <span style="color:#0000ff;">null</span>.</p>
<p><span style="color:#0000ff;"> isset()</span> is the only one of the three language constructs that accepts an arbitrary amount of parameters. Its accurate prototype is as follows:</p>
<p><span style="color:#800000;"><em>&lt;?php</em></span><br />
<span style="color:#800000;"><em> isset($var1, $var2, $var3, &#8230;);</em></span><br />
<span style="color:#800000;"><em> ?&gt;</em></span><br />
It only returns true, if all the variables have been defined; otherwise, it returns false. This is useful when you want to check if the required input variables for your script have really been sent by the client, saving you a series of single <span style="color:#0000ff;">isset()</span> checks.</p>
<p>So writing it with arbitrary parameters can be interesting upon your need! cheers!</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/214/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=214&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2011/06/14/isset-use-techniques-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>

		<media:content url="http://ahmsaiful.files.wordpress.com/2011/06/isset_rgb.png" medium="image">
			<media:title type="html">ISSET_rgb</media:title>
		</media:content>
	</item>
		<item>
		<title>Get website favicon by single line</title>
		<link>http://ahmsaiful.wordpress.com/2011/06/06/get-site-favicon-by-single-line/</link>
		<comments>http://ahmsaiful.wordpress.com/2011/06/06/get-site-favicon-by-single-line/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 13:53:08 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=210</guid>
		<description><![CDATA[Getting website favicon is more easy now. Google gave us many things till now to do and share web info, development and so on. Google gave a nice shared stuff to get any site&#8217;s favicon by a sigle line : http://www.google.com/s2/favicons?domain=yahoo.com So check out this for Yahoo&#8217;s favicon. By changing the desired site&#8217;s url, u [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=210&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ahmsaiful.files.wordpress.com/2011/06/google.png"><img class="alignnone size-thumbnail wp-image-220" title="google" src="http://ahmsaiful.files.wordpress.com/2011/06/google.png?w=150&#038;h=150" alt="" width="150" height="150" /></a></p>
<p>Getting website favicon is more easy now. Google gave us many things till now to do and share web info, development and so on. Google gave a nice shared stuff to get any site&#8217;s favicon by a sigle line :</p>
<pre><span style="color:#333399;"><em><a href="http://www.google.com/s2/favicons?domain=yahoo.com" rel="nofollow">http://www.google.com/s2/favicons?domain=yahoo.com</a></em></span></pre>
<p>So check out this for Yahoo&#8217;s favicon. By changing the desired site&#8217;s url, u can get any site&#8217;s favicon as well. Have fun and cheers!</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=210&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2011/06/06/get-site-favicon-by-single-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>

		<media:content url="http://ahmsaiful.files.wordpress.com/2011/06/google.png?w=150" medium="image">
			<media:title type="html">google</media:title>
		</media:content>
	</item>
		<item>
		<title>Interview question set for a advanced PHP Programmer</title>
		<link>http://ahmsaiful.wordpress.com/2011/03/15/interview-question-set-for-a-advanced-php-programmer/</link>
		<comments>http://ahmsaiful.wordpress.com/2011/03/15/interview-question-set-for-a-advanced-php-programmer/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 09:48:31 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[question]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=186</guid>
		<description><![CDATA[Recently, I got a chance to face some questions which make sense for a PHP Programmer, who can rethink all about web development what he has been learned yet. I thought i can share those among yourselves just for sharing that what could be the questions for a advanced PHP Programmer. Questions are as follows. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=186&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ahmsaiful.files.wordpress.com/2011/03/main.jpg"><img class="alignnone size-full wp-image-196" src="http://ahmsaiful.files.wordpress.com/2011/03/main.jpg?w=632" alt=""   /></a></p>
<p>Recently, I got a chance to face some questions which make sense for a PHP Programmer, who can rethink all about web development what he has been learned yet. I thought i can share those among yourselves just for sharing that what could be the questions for a advanced PHP Programmer.</p>
<p>Questions are as follows. I will try to give answers here and discussion about these time to time. Looking forward to hear from you guys about any question listed below.</p>
<ul>
<li><strong>Question</strong>: You are committing a file with bug fixes to the SVN, there is an issue with a conflict in the file what does this mean? How do you solve it?</li>
<li><strong>Question</strong>: How would you find out what files were out of date within SVN and commit those specific files into a revision with a log message via the command line?</li>
<li><strong>Question</strong>: How do you use memcached to optimize mysql queries?</li>
<li><strong>Question</strong>: How do you iterate an array in smarty?</li>
<li><strong>Question</strong>: PHP errors are not displaying on the page you are developing. You only have SFTP Access to change files. How do you display the errors?</li>
<li><strong>Question</strong>: What is better and more efficient in development time for a large scale enterprise PHP / MySQL application. Using packages and open source classes or developing your own solutions?<strong><em><br />
</em></strong></li>
<li><strong>Question</strong>: What are the risks of using user inputted data in SQL queries and how to eliminate this risk ?<strong><em><br />
</em></strong></li>
<li><strong>Question</strong>: You have been given a specification and been briefed on a project. The specification included work that was already completed for the project but there are many bugs and you did not write this code. What do you do?</li>
<li><strong>Question</strong>: There is a bug in your code, what do you do?</li>
<li><strong>Question</strong>: Recently users are complaining they are being logged out of the site. The site uses sessions and php. Also recently a new webserver was added, bringing the total to 2. What could be causing this and how would it be solved?</li>
<li><strong>Question</strong>: You need to create a search function for a website with over 30.000 searches per hour on a record set of 1.000.000 text records. How would you do this using MySQL?</li>
<li><strong>Question</strong>: You need to integrate an external website&#8217;s data that does not have a API &#8211; describe this process.</li>
<li><strong>Question</strong>: You&#8217;ve written a news service in PHP that needs to used by many external websites. How would you allow those websites to use your functions to display the news on their site ?</li>
<li><strong>Question</strong>: You want to create an AJAX suggestion box that displays in real time suggestions related to the content of the search textfield. Describe how this process would work.</li>
</ul>
<p>I think, some questions are really good and every PHP Programmer should know about those terms.</p>
<p><strong><em> </em></strong></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=186&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2011/03/15/interview-question-set-for-a-advanced-php-programmer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>

		<media:content url="http://ahmsaiful.files.wordpress.com/2011/03/main.jpg" medium="image" />
	</item>
		<item>
		<title>Magento Admin Panel Login Problem</title>
		<link>http://ahmsaiful.wordpress.com/2011/03/09/magento-admin-panel-login-problem/</link>
		<comments>http://ahmsaiful.wordpress.com/2011/03/09/magento-admin-panel-login-problem/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 08:05:14 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[admin login]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=181</guid>
		<description><![CDATA[Magento! : ECOMMERCE PLATFORM FOR GROWTH &#8230;. recent days, Magento became most popular CMS for ecommerce.Recently when i started work with magento, fallen in problem regarding login to admin panel. There are several issues to consider : Using 127.0.0.1 in place of localhost for your base url when going to setup in localhost. Best way [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=181&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ahmsaiful.files.wordpress.com/2011/03/avatar_1.jpg"><img class="alignnone size-full wp-image-192" src="http://ahmsaiful.files.wordpress.com/2011/03/avatar_1.jpg?w=632" alt=""   /></a></p>
<p>Magento! : ECOMMERCE PLATFORM FOR GROWTH &#8230;. recent days, Magento became most popular CMS for ecommerce.Recently when i started work with magento, fallen in problem regarding login to admin panel.</p>
<p>There are several issues to consider :</p>
<ul>
<li>Using 127.0.0.1 in place of localhost for your base url when going to setup in localhost.</li>
<li>Best way is using IP, like your PC IP address or default 127.0.0.1.</li>
<li>Use 127.0.0.1 instead of localhost while db configuration in installation (may fix the problem)</li>
<li>For cookie related issue, please properly enable your browser cookie settings.</li>
<li>Finally check out for both &#8216;mod rewrite option&#8217; and &#8216;base url validation option&#8217; during installation.</li>
</ul>
<p><span style="color:#800000;">**</span> Recently I got another useful solution during installation of magento in another PC. The solution is to modify the core Magento code.</p>
<p>&gt; Open <span style="color:#008000;">app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.</span></p>
<p>&gt; Comment out the lines 80 to 83. The line number may vary in different magento version. But these lines exist near to line 80.  You need to comment the comma (,) in line:: <span style="color:#008000;">$this-&gt;getCookie()-&gt;getPath()//,</span></p>
<p><a href="http://ahmsaiful.files.wordpress.com/2011/03/untitled1.jpg"><img class="alignnone size-full wp-image-191" src="http://ahmsaiful.files.wordpress.com/2011/03/untitled1.jpg?w=632" alt=""   /></a></p>
<p><strong>For Magento 1.4 or greater than 1.4 :<br />
</strong></p>
<p>you have to comment code from line 86 to 98 in <span style="color:#008000;">app/code/core/Mage/Core/Model/Session/Abstract/Varien.php</span>. Like this:-</p>
<p><a href="http://ahmsaiful.files.wordpress.com/2011/03/untitled3.jpg"><img class="alignnone size-full wp-image-194" src="http://ahmsaiful.files.wordpress.com/2011/03/untitled3.jpg?w=632" alt=""   /></a></p>
<p>This may be helpful for beginners who are gonna to start magento.</p>
<p>Cheers!</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=181&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2011/03/09/magento-admin-panel-login-problem/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>

		<media:content url="http://ahmsaiful.files.wordpress.com/2011/03/avatar_1.jpg" medium="image" />

		<media:content url="http://ahmsaiful.files.wordpress.com/2011/03/untitled1.jpg" medium="image" />

		<media:content url="http://ahmsaiful.files.wordpress.com/2011/03/untitled3.jpg" medium="image" />
	</item>
		<item>
		<title>A Turning Year 2010 and Wishlist for 2011</title>
		<link>http://ahmsaiful.wordpress.com/2010/12/28/a-turning-year-2010-and-wishlist-for-2011/</link>
		<comments>http://ahmsaiful.wordpress.com/2010/12/28/a-turning-year-2010-and-wishlist-for-2011/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 19:54:23 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[wishlist]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=167</guid>
		<description><![CDATA[just ending 2010 and going to start 2011! I&#8217;m wondering how time passed away! 2010 was really a turning year for me and also 2009. Have some plan and idea for 2011. Remembering 2010: Joined bGlobal, got some awesome colleagues as well as friend, realized a great working environment. Learned Cakephp, Zend Framework, EE. Bought [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=167&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ahmsaiful.files.wordpress.com/2010/12/istockphoto_9750932-july-2010-calendar-series.jpg"><img class="alignnone size-thumbnail wp-image-201" src="http://ahmsaiful.files.wordpress.com/2010/12/istockphoto_9750932-july-2010-calendar-series.jpg?w=150&#038;h=150" alt="" width="150" height="150" /></a></p>
<p>just ending 2010 and going to start 2011! I&#8217;m wondering how time passed away! 2010 was really a turning year for me and also 2009. Have some plan and idea for 2011.</p>
<p><strong>Remembering 2010:</strong></p>
<ul>
<li> Joined <a title="bGlobal Sourcing LLC" href="http://www.bglobalsourcing.com/" target="_blank">bGlobal</a>, got some awesome colleagues as well as friend, realized a great working environment.</li>
<li>Learned <a title="CakePhp" href="http://cakephp.org/" target="_blank">Cakephp</a>, <a title="Zend Framework" href="http://framework.zend.com/" target="_blank">Zend Framework</a>, <a title="Expression Engine" href="http://expressionengine.com/" target="_blank">EE</a>.</li>
<li>Bought my Laptop (<a title="ACER ASPIRE 4745" href="http://www.acer-ee.com/acer/product.do?LanguageISOCtxParam=en&amp;rcond5e.c2att92=74&amp;inu49e.current.c2att92=74&amp;link=ln314e&amp;CountryISOCtxParam=EE&amp;kcond47e.c2att92=74&amp;rcond159e.att21k=1&amp;kcond48e.c2att101=76361&amp;rcond190e.att21k=1&amp;acond23=EE&amp;rcond4e.att21k=1&amp;sp=page17e&amp;rcond157e.c2att92=74&amp;var9e=793&amp;ctx1g.c2att92=74&amp;rcond42e.att21k=1&amp;kcond50e.c2att92=74&amp;rcond45e.att21k=1&amp;rcond158e.c2att1=6&amp;ctx2.c2att1=6&amp;inu53e.current.c2att92=74&amp;rcond38e.c2att1=6&amp;var13e=EE&amp;rcond44e.c2att1=6&amp;rcond186e.c2att92=74&amp;rcond3e.c2att1=6&amp;rcond28e.attN2B2F2EEF=3265&amp;rcond189e.c2att1=6&amp;ctx1.att21k=1&amp;CRC=249940563" target="_blank">ACER ASPIRE 4745</a>).</li>
<li>Worked on some tremendous website and web application.</li>
<li>Reviewed a jquery animation book by Packt Pub.</li>
<li>Became 27 years old <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p><strong>Wishlist for 2011:</strong></p>
<ul>
<li> To be the Cakephp NINJA</li>
<li> Do something advance with CI.</li>
<li> will learn <a title="Magento" href="http://www.magentocommerce.com/" target="_blank">Magento </a>and <a title="Zencart" href="http://www.zen-cart.com/" target="_blank">Zen cart</a> soon</li>
<li> To be a TRUE BLOGGER and <a title="Wordpress" href="http://wordpress.org/" target="_blank">WordPress </a>geek (have plan to create some WP Plugin)</li>
<li> Jquery! Wanna rid of this!</li>
<li> Wish to have a  MACBOOK/MACBOOK PRO and also a iPHONE.</li>
<li>Will buy a Acoustic Guitar soon (even once upon a time i had a dream of a BAND <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</li>
<li> To be a ZCE (it was also in 2009 wish list <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</li>
<li> To be more faster.</li>
</ul>
<p>Finally, well wishes for everyone, for every friendz, colleagues. Pray for me!<br />
Have a nice year!</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=167&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2010/12/28/a-turning-year-2010-and-wishlist-for-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>

		<media:content url="http://ahmsaiful.files.wordpress.com/2010/12/istockphoto_9750932-july-2010-calendar-series.jpg?w=150" medium="image" />
	</item>
		<item>
		<title>Simple PHP Security in CodeIgniter</title>
		<link>http://ahmsaiful.wordpress.com/2010/02/16/simple-php-security-in-codeigniter/</link>
		<comments>http://ahmsaiful.wordpress.com/2010/02/16/simple-php-security-in-codeigniter/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 19:39:53 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Security]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=126</guid>
		<description><![CDATA[As web is now the part of our life and we can&#8217;t think our daily works without www. For both users and developers, security is a key question. I would like to share some simple security points in this post, which are common. Cross Site Scripting(or XSS) is one of the most common application-layer web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=126&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ahmsaiful.files.wordpress.com/2010/02/codeigniter-lg-299x300.gif"><img class="alignnone size-thumbnail wp-image-199" src="http://ahmsaiful.files.wordpress.com/2010/02/codeigniter-lg-299x300.gif?w=150&#038;h=150" alt="" width="150" height="150" /></a></p>
<p>As web is now the part of our life and we can&#8217;t think our daily works without www. For both users and developers, security is a key question. I would like to share some simple security points in this post, which are common.</p>
<ul>
<li> <strong>Cross Site Scripting</strong>(or <strong>XSS</strong>) is one of the most common application-layer web attacks. XSS commonly targets scripts embedded in a page which are executed on the client-side (in the user’s web browser) rather than on the server-side. An example of XSS may be as from user input. Suppose you put &lt;textarea&gt; on your site to get user input. But malicious user give input like this :<code>&lt;script type="text/javascript"&gt;<br />
window.locaton('<a href="http://example.com" rel="nofollow">http://example.com</a>');<br />
&lt;/script&gt;</code></p>
<p>or it may be a unwanted alert message in javascript, which is not expected.So you definitely want to prevent this type of attack. I&#8217;m going to show the solution here in CodeIgniter. CodeIgniter has its built in input class.The example is below:<br />
<code><br />
$data= $this-&gt;input-&gt;post('UserInput');<br />
$data_xss = $this-&gt;input-&gt;xss_clean($data);</code></p>
<p>At first, you get user input by post method and now just pass that value to the function. if you print the final value, you will see the javascript code will be replaced by others like <strong>[removed]</strong>.Now you can pass the value to database query or do anything with that value.</li>
<li> Use<strong> htmlentities( )</strong> for user input . It will convert all applicable characters to HTML entities like below.<br />
<code><br />
</code><span style="color:#0000bb;">$str </span><span style="color:#007700;">= </span><span style="color:#dd0000;">&#8220;A &#8216;quote&#8217; is  &lt;b&gt;bold&lt;/b&gt;&#8221;</span><span style="color:#007700;">;</span><code><br />
</code><span style="color:#ff8000;">// Outputs: A &#8216;quote&#8217; is  &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt;</span><br />
<span style="color:#007700;">echo </span><span style="color:#0000bb;">htmlentities</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$str</span><span style="color:#007700;">);</span></li>
</ul>
<p>Some useful links for best practices and security:</p>
<ul>
<li><a href="http://bit.ly/5W1yoi" rel="nofollow">http://bit.ly/5W1yoi</a></li>
<li><a href="http://bit.ly/c3KxsL" rel="nofollow">http://bit.ly/c3KxsL</a></li>
<li><a href="http://bit.ly/7I4A" rel="nofollow">http://bit.ly/7I4A</a></li>
</ul>
<p>Cheers and practice with best approach. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=126&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2010/02/16/simple-php-security-in-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>

		<media:content url="http://ahmsaiful.files.wordpress.com/2010/02/codeigniter-lg-299x300.gif?w=150" medium="image" />
	</item>
		<item>
		<title>Execute PHP code within a html/htm file</title>
		<link>http://ahmsaiful.wordpress.com/2010/02/03/execute-php-code-within-a-htmlhtm-file/</link>
		<comments>http://ahmsaiful.wordpress.com/2010/02/03/execute-php-code-within-a-htmlhtm-file/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 10:52:52 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php in html]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=114</guid>
		<description><![CDATA[When a web page is call, the server checks two thongs, whether it is a html/htm file or a php/asp(etc) file. The key point is file extension or file type.If it is a normal .html/.htm file, server sends it direct to the rowser. And if it is a php/asp(etc), server than execute the appropriate code before sending it to the browser.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=114&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When a web page is call, the server checks two thongs, whether it is a html/htm file or a php/asp(etc) file. The key point is file extension or file type.If it is a normal .html/.htm file, server sends it direct to the browser. And if it is a php/asp(etc), server than execute the appropriate code before sending it to the browser.</p>
<p><strong>Come to the point: </strong>Now you need to add some php code within your existing html file,then what is the process?<br />
There are two ways, what i ever know and want to share with you,<br />
<strong>1.</strong>Rename the html file to php file (the easiest way),<br />
<strong>2.</strong>Using .htaccess file to allow php within html file.</p>
<p>if you follow the first one, it&#8217;s easy. but you may have incoming links or search engine ranking or if u change the file type, you need to change many code within your application.so in this situation, come to the second solution. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>The way is:</strong><br />
You need to add some command in your .htaccess file like below:<br />
<strong>For html file :</strong><br />
<code>AddType application/x-httpd-php .html</code></p>
<p><strong>Or for .htm</strong><br />
<code>AddType application/x-httpd-php .htm</code></p>
<p>If you only plan on including the PHP on one page, it is better to setup this way:<code><br />
&lt;Files myhome.html&gt; AddType application/x-httpd-php .html &lt;/Files&gt;</code></p>
<p><strong>Example:</strong><br />
Now you can put php script like below in your html file :<br />
<code><br />
&lt;p id='php_cont'&gt;&lt;?php echo "hi all"; ?&gt;&lt;/p&gt;</code></p>
<p><strong>N.B.</strong> Always be careful about your .htaccess file. if you have already one, just add the above command to the file, don&#8217;t replace all. and for beginner, the .htaccess file will be in your root folder, where your application or project exists (i.e. <a href="http://localhost/myapp" rel="nofollow">http://localhost/myapp</a>)</p>
<p>That&#8217;s all. For very beginners it may be helpful and i think this is a common question for them that  &#8216;How to use php in html file?&#8217;. cheers <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=114&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2010/02/03/execute-php-code-within-a-htmlhtm-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>
	</item>
		<item>
		<title>Go to a URL/link from drop down list/menu in html+javascript</title>
		<link>http://ahmsaiful.wordpress.com/2010/01/12/go-to-a-urllink-from-drop-down-listmenu-in-htmljavascript/</link>
		<comments>http://ahmsaiful.wordpress.com/2010/01/12/go-to-a-urllink-from-drop-down-listmenu-in-htmljavascript/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 08:49:37 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[drop down list url]]></category>
		<category><![CDATA[onChange go url]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=89</guid>
		<description><![CDATA[In many web application, we see some kind of drop down list to go to a URL only by clicking on the list item, no need to click on any button. For the users, this is a nice experience that they don&#8217;t have to click on submit button. I have described here in details the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=89&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In many web application, we see some kind of drop down list to go to a URL only by clicking on the list item, no need to click on any button. For the users, this is a nice experience that they don&#8217;t have to click on submit button.<br />
I have described here in details the tutorial especially for beginners. Let we have a form like below:</p>
<p style="padding-left:30px;"><code><br />
&lt;form method="post" action="http://www.example.com/submit.php"&gt;<br />
&lt;input type="submit" name="submit_button" value="Go"&gt;<br />
&lt;select name="url_list" &gt;<br />
&lt;option value="http://www.example.com/index.html"&gt;list 1&lt;/option&gt;<br />
&lt;option value="http://www.example.com/about.html"&gt;list 2&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;/form&gt;<br />
</code></p>
<p>we can improve the form performance by combining it with a simple javascript and it has below advantages:</p>
<p>1.It makes your page more efficient, because if JavaScript is enabled, the web browser can jump to the destination webpage itself without having to run the script. Also it is nicer for users because they do not need to select the &#8220;go&#8221; button.</p>
<p>2.The form will also continue to work with web browsers that do not have JavaScript available.</p>
<p>Now, the following example displays a drop down list with a js function. Include the js in your &lt;head&gt;&lt;/head&gt; of the file :</p>
<p style="padding-left:0;"><code><br />
&lt;SCRIPT LANGUAGE="JavaScript"&gt;<br />
&lt;!-- Begin gotosite<br />
function gotosite()<br />
{<br />
var URL = 				  document.gotoform.url_list.options[document.gotoform.url_list.selectedIndex].value; 				  window.location.href = URL;<br />
}<br />
// End gotosite --&gt;<br />
&lt;/script&gt;<br />
</code></p>
<p>and now try the form like this :</p>
<p style="padding-left:30px;"><code><br />
&lt;form name="gotoform" method="post" action="http://www.example.com/submit.php"&gt;<br />
&lt;noscript&gt;<br />
&lt;!-- use noscript to only show this if no javascript is available --&gt;<br />
&lt;input type="submit" name="submit_button" value="Go"&gt;<br />
&lt;/noscript&gt;<br />
&lt;select name="url_list" size="1" onChange="gotosite()"&gt;<br />
&lt;-- Value of first option is default, usually current page --&gt;<br />
&lt;option value="http://www.example.com/submit.php"&gt; Select a Site...&lt;/option&gt;<br />
&lt;option value="http://www.example.com/index.html"&gt;list 1&lt;/option&gt;<br />
&lt;option value="http://www.example.com/about.html"&gt;list 2&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;/form&gt;<br />
</code></p>
<p>we call &#8216;gotosite()&#8217;  function on &#8216;onChange&#8217; of &lt;select&gt;, and this will help to jump to the url for each list.<br />
Hope this will help the beginners for more reliable user experience.</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=89&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2010/01/12/go-to-a-urllink-from-drop-down-listmenu-in-htmljavascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>
	</item>
		<item>
		<title>insert string with single quote(&#8216;) or double quote(&#8220;) in mysql</title>
		<link>http://ahmsaiful.wordpress.com/2009/12/20/insert-string-with-single-quote-or-double-quote-in-mysql/</link>
		<comments>http://ahmsaiful.wordpress.com/2009/12/20/insert-string-with-single-quote-or-double-quote-in-mysql/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 18:28:46 +0000</pubDate>
		<dc:creator>saif</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[insert string with quote]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://ahmsaiful.wordpress.com/?p=80</guid>
		<description><![CDATA[In developing web application, we write insert query for inserting data into database. Hence i use mysql query and PHP functions for inserting string with single quote(&#8216;) or double quote. let we know two useful PHP function : 1.  addslashes &#8211; Quote string with slashes. Returns a string with backslashes before characters that need to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=80&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In developing web application, we write insert query for inserting data into database. Hence i use mysql query and PHP functions for inserting string with single quote(&#8216;) or double quote.</p>
<p>let we know two useful PHP function :</p>
<p>1.  <strong>addslashes </strong>&#8211; Quote string with slashes. Returns a string with backslashes before characters that need to be quoted in  database queries etc. These characters are single quote (<tt>'</tt>), double quote (<tt>"</tt>), backslash (<tt>\</tt>) and NUL (the <tt><strong>NULL</strong></tt> byte).</p>
<p><code><span style="color:#000000;"><span style="color:#0000bb;">&lt;?php<br />
$str </span><span style="color:#007700;">= </span><span style="color:#dd0000;">"Is your name O'reilly?"</span><span style="color:#007700;">;<br />
</span><span style="color:#ff8000;">// Outputs: Is your name  O\'reilly?<br />
</span><span style="color:#007700;">echo </span><span style="color:#0000bb;">addslashes</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$str</span><span style="color:#007700;">);<br />
</span><span style="color:#0000bb;">?&gt;</span></span></code></p>
<p><span style="color:#000000;"><span style="color:#0000bb;"><span style="color:#333333;">2.</span> </span></span><strong>stripslashes</strong> &#8211;  Un-quote string quoted with <strong>addslashes()</strong>. Returns a string with backslashes stripped off. (<tt>\'</tt> becomes <tt>'</tt> and so on.) Double backslashes (<tt>\\</tt>) are made into a single backslash (<tt>\</tt>).</p>
<p><code><span style="color:#000000;"><span style="color:#0000bb;">&lt;?php<br />
$str </span><span style="color:#007700;">= </span><span style="color:#dd0000;">"Is your name O\'reilly?"</span><span style="color:#007700;">;</span></span></code><br />
<span style="color:#ff8000;">// Outputs: Is your name  O&#8217;reilly?<br />
</span><span style="color:#007700;">echo </span><span style="color:#0000bb;">stripslashes</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$str</span><span style="color:#007700;">);<br />
</span><span style="color:#0000bb;">?&gt;</span></p>
<p><span style="color:#000000;"><span style="color:#0000bb;"><span style="color:#333333;">Now come to the point&#8230;..if we insert string into database with single or double quote like this :</span></span></span><br />
<span style="color:#000000;"><span style="color:#0000bb;"><span style="color:#333333;"><span style="color:#333399;">&lt;?php</span></span></span></span><br />
<span style="color:#0000bb;">$str </span><span style="color:#007700;">= </span><span style="color:#dd0000;">&#8220;Is your name  O&#8217;reilly?&#8221;</span><span style="color:#007700;">;</span><br />
$query = <span style="color:#993366;">&#8220;INSERT INTO tbl (description) VALUES ( &#8216;$str&#8217;)&#8221;</span>;<br />
<span style="color:#333399;">?&gt;</span><br />
<span style="color:#333333;">This will occur error.</span></p>
<p><span style="color:#333333;">but if we use <strong>addslashes($str)</strong> function like below and then insert into database, then no error will be occurred.</span><br />
<span style="color:#333399;">&lt;?php</span><br />
<span style="color:#333399;">$str =</span> <span style="color:#993300;">&#8220;Is your name  O&#8217;reilly?&#8221;</span>;<br />
<span style="color:#333399;">$desc_str =</span> <span style="color:#333399;">addslashes</span>($str);<br />
<span style="color:#333399;">$query =</span> <span style="color:#993300;">&#8220;INSERT INTO tbl (description) VALUES ( &#8216;$desc_str&#8217;)&#8221;</span>;<br />
<span style="color:#333399;">?&gt;</span></p>
<p><span style="color:#333333;">similarly we can use <strong>stripslashes($str)</strong> to print that table field value like this : </span><br />
<span style="color:#333399;">&lt;?php</span><br />
<span style="color:#007700;">echo </span><span style="color:#0000bb;">stripslashes</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$str</span><span style="color:#007700;">);</span><br />
<span style="color:#007700;"><span style="color:#333399;">?&gt;</span></span></p>
<p><span style="color:#007700;"><span style="color:#333399;"><span style="color:#333333;">cheers <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span><br />
</span></span></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahmsaiful.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahmsaiful.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahmsaiful.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahmsaiful.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ahmsaiful.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ahmsaiful.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ahmsaiful.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ahmsaiful.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahmsaiful.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahmsaiful.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahmsaiful.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahmsaiful.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahmsaiful.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahmsaiful.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahmsaiful.wordpress.com&amp;blog=10897526&amp;post=80&amp;subd=ahmsaiful&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ahmsaiful.wordpress.com/2009/12/20/insert-string-with-single-quote-or-double-quote-in-mysql/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d8b403dea0a38d8e3ad6cad9e6be660?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saif</media:title>
		</media:content>
	</item>
	</channel>
</rss>
