<?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>My PHP</title>
	<atom:link href="http://patelraj.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://patelraj.wordpress.com</link>
	<description>Everything matters, but some things matter more than others</description>
	<lastBuildDate>Thu, 14 Jul 2011 10:58:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='patelraj.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My PHP</title>
		<link>http://patelraj.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://patelraj.wordpress.com/osd.xml" title="My PHP" />
	<atom:link rel='hub' href='http://patelraj.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Product image change on attribute selection</title>
		<link>http://patelraj.wordpress.com/2011/05/17/product-image-change-on-attribute-selection/</link>
		<comments>http://patelraj.wordpress.com/2011/05/17/product-image-change-on-attribute-selection/#comments</comments>
		<pubDate>Tue, 17 May 2011 02:06:07 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=81</guid>
		<description><![CDATA[we can change product main image on selection of attribute. below are steps. step1. -open template/catalog/product/view/type/options/configurable.phtml -add var mainProductImgSrc = document.getElementById(&#8220;image&#8221;).src;//added on bottom of page after spConfig step2. -open template/catalog/produict/view.phtml - add this after var optionsPrice = new Product.OptionsPrice(&#60;?php echo $this-&#62;getJsonConfig() ?&#62;); //added var assocIMG = &#60;?php if ($_product-&#62;getTypeId() == &#8220;configurable&#8221;) { echo &#8220;{&#8220;; $associated_products [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=81&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>we can change product main image on selection of attribute. below are steps.</p>
<p>step1.<br />
-open template/catalog/product/view/type/options/configurable.phtml<br />
-add<br />
var mainProductImgSrc = document.getElementById(&#8220;image&#8221;).src;//added<br />
on bottom of page after spConfig<br />
step2.<br />
-open template/catalog/produict/view.phtml<br />
- add this after<br />
var optionsPrice = new Product.OptionsPrice(&lt;?php echo $this-&gt;getJsonConfig() ?&gt;);</p>
<p>//added</p>
<p>var assocIMG =</p>
<p>&lt;?php<br />
if ($_product-&gt;getTypeId() == &#8220;configurable&#8221;) {<br />
echo &#8220;{&#8220;;<br />
$associated_products = $_product-&gt;loadByAttribute(&#8216;sku&#8217;, $_product-&gt;getSku())-&gt;getTypeInstance()-&gt;getUsedProducts();<br />
foreach ($associated_products as $assoc)<br />
$dados[] = $assoc-&gt;getId().&#8221;:&#8217;&#8221;.($assoc-&gt;image == &#8220;no_selection&#8221; || $assoc-&gt;image == &#8220;&#8221; ? $this-&gt;helper(&#8216;catalog/image&#8217;)-&gt;init($_product, &#8216;image&#8217;, $_product-&gt;image)-&gt;resize(365,400) : $this-&gt;helper(&#8216;catalog/image&#8217;)-&gt;init($assoc, &#8216;image&#8217;, $assoc-&gt;image)-&gt;resize(365,400)).&#8221;&#8216;&#8221;;<br />
} else {<br />
$dados[] = &#8220;&#8221;&#8221;;<br />
}<br />
echo implode(&#8216;,&#8217;, $dados );<br />
if ($_product-&gt;getTypeId() == &#8220;configurable&#8221;) {<br />
echo &#8220;}&#8221;;<br />
}<br />
?&gt;<br />
//added</p>
<p>step3.<br />
- open js/varien/product.js<br />
-add<br />
//added<br />
settings = $$(&#8216;.super-attribute-select&#8217;);<br />
imgSrc = mainProductImgSrc;<br />
settings.each(function(element)<br />
{<br />
attributeId = element.attributeId;<br />
if(element.options[element.selectedIndex].config)<br />
imgSrc = assocIMG[element.options[element.selectedIndex].config.products];<br />
$(&#8216;image&#8217;).src = imgSrc;<br />
} );<br />
//added end<br />
Before<br />
}.bind(this));<br />
},<br />
formatPrice: function(price) {<br />
return formatCurrency(price, this.priceFormat);<br />
}<br />
around line : 715</p>
<p>=== By this way when attribute will change then its image also change.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=81&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2011/05/17/product-image-change-on-attribute-selection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Attribute Display in alphabetical order</title>
		<link>http://patelraj.wordpress.com/2011/03/28/attribute-display-in-alphabetical-order/</link>
		<comments>http://patelraj.wordpress.com/2011/03/28/attribute-display-in-alphabetical-order/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 08:38:58 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=76</guid>
		<description><![CDATA[This module displayes attrribute in fron side on separate link in alphabets order. Want this , tell here&#8230; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=76&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This module displayes attrribute in fron side on separate link in alphabets order.</p>
<p>Want this , tell here&#8230;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=76&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2011/03/28/attribute-display-in-alphabetical-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Attribute Meta</title>
		<link>http://patelraj.wordpress.com/2011/03/28/a-attribute-meta/</link>
		<comments>http://patelraj.wordpress.com/2011/03/28/a-attribute-meta/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 08:27:48 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=72</guid>
		<description><![CDATA[Attribute meta for all the category. You have to first create attribute set crate category with name as like attribute set. create products on that sets and assign that category. in front side display that category with that attr  set. by this way you can use this module via category?atributename=optionvalue This module is very useful [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=72&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Attribute meta for all the category.</p>
<p>You have to first create attribute set</p>
<p>crate category with name as like attribute set.</p>
<p>create products on that sets and assign that category.</p>
<p>in front side display that category with that attr  set.</p>
<p>by this way you can use this module via category?atributename=optionvalue</p>
<p>This module is very useful for Meta for various attributes.</p>
<p>Want this , reply here&#8230;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=72&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2011/03/28/a-attribute-meta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>full text search-  spped up searching</title>
		<link>http://patelraj.wordpress.com/2011/03/26/full-text-search-spped-up-searching/</link>
		<comments>http://patelraj.wordpress.com/2011/03/26/full-text-search-spped-up-searching/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 08:26:05 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=68</guid>
		<description><![CDATA[add fulltext search to speed up the searching in php ALTER TABLE  $tablename ADD FULLTEXT(body, title); $query = &#8220;SELECT * FROM $tablename WHERE MATCH(title, body) AGAINST (&#8216;PHP&#8217;)  &#8220;; This is uefull in very large data. &#160; Only supperted by MyIsAM type.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=68&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>add fulltext search to speed up the searching in php</p>
<p>ALTER TABLE  $tablename ADD FULLTEXT(body, title);</p>
<p>$query = &#8220;SELECT * FROM $tablename WHERE MATCH(title, body) AGAINST (&#8216;PHP&#8217;)  &#8220;;</p>
<p>This is uefull in very large data.</p>
<p>&nbsp;</p>
<p>Only supperted by MyIsAM type.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=68&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2011/03/26/full-text-search-spped-up-searching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Use EVAL() for php code replace within string</title>
		<link>http://patelraj.wordpress.com/2011/03/25/use-eval-for-php-code-replace-within-string/</link>
		<comments>http://patelraj.wordpress.com/2011/03/25/use-eval-for-php-code-replace-within-string/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 09:16:20 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=64</guid>
		<description><![CDATA[Use EVAL () for replacing php var from given string. For email template : instead of str_replace… We  can use this for email template , cms pages for php varibale &#8230; This speeds up the execution. &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=64&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Use EVAL () for replacing php var from given string.</p>
<p>For email template : instead of str_replace…</p>
<p>We  can use this for email template , cms pages for php varibale &#8230;</p>
<p>This speeds up the execution.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=64&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2011/03/25/use-eval-for-php-code-replace-within-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Get multiple records with limit clouse</title>
		<link>http://patelraj.wordpress.com/2011/03/25/get-multiple-records-with-limit-clouse/</link>
		<comments>http://patelraj.wordpress.com/2011/03/25/get-multiple-records-with-limit-clouse/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 09:12:44 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=61</guid>
		<description><![CDATA[SELECT SQL_CALC_FOUND_ROWS * FROM &#60;tablename&#62; limit 0,10; SELECT FOUND_ROWS(); $row = mysql_fetch_row(mysql_query(“SELECT FOUND_ROWS()”)); $total = $row[0]; We can get totat records by using above query. This is for very large records. This speeds up the query and page execution.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=61&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SELECT SQL_CALC_FOUND_ROWS * FROM &lt;tablename&gt; limit 0,10;<br />
SELECT FOUND_ROWS();</p>
<p>$row = mysql_fetch_row(mysql_query(“SELECT FOUND_ROWS()”));<br />
$total = $row[0];</p>
<p>We can get totat records by using above query.</p>
<p>This is for very large records.</p>
<p>This speeds up the query and page execution.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=61&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2011/03/25/get-multiple-records-with-limit-clouse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create a new page in the zencart?</title>
		<link>http://patelraj.wordpress.com/2009/02/05/how-to-create-a-new-page-in-the-zencart/</link>
		<comments>http://patelraj.wordpress.com/2009/02/05/how-to-create-a-new-page-in-the-zencart/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 03:40:37 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[zencart]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=51</guid>
		<description><![CDATA[For creating a page in zencart we use this instructions: 1. From admin side goto ezpages and create new page with link . 2. create a page  named this \includes\templates\template_default\templates\tpl_mypage_default.php in this page copy the content from other page in same directory. 3.  write define(&#8216;FILENAME_DEFINE_MYPAGE&#8217;, &#8216;define_mypage&#8217;); in the \includes\filenames.php 4. create a page in this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=51&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For creating a page in zencart we use this instructions:</p>
<p>1. From admin side goto ezpages and create new page with link .</p>
<p>2. create a page  named this</p>
<p>\includes\templates\template_default\templates\tpl_mypage_default.php</p>
<p>in this page copy the content from other page in same directory.</p>
<p>3.  write define(&#8216;FILENAME_DEFINE_MYPAGE&#8217;, &#8216;define_mypage&#8217;); in the<br />
\includes\filenames.php</p>
<p>4. create a page in this directory</p>
<p>\includes\languages\english\mypage.php</p>
<p>5. create a page in this directory<br />
\includes\languages\english\html_includes\define_mypage.php</p>
<p>6. create a folder and page in this directory</p>
<p>\includes\modules\pages\mypage\header.php</p>
<p>Please copy the content from particular page in same directory.</p>
<p>7. go to define editor section from Tools menu in admin side. then select that page define_mypage and here you can insert description for that page.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=51&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2009/02/05/how-to-create-a-new-page-in-the-zencart/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Overriding layout for 1.5 series</title>
		<link>http://patelraj.wordpress.com/2008/10/02/overriding-layout-for-15-series/</link>
		<comments>http://patelraj.wordpress.com/2008/10/02/overriding-layout-for-15-series/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 06:04:37 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=48</guid>
		<description><![CDATA[There are html folder in particular template folder Customise the Component Output for joomla 1.5 series To override a component layout (for example the default layout in the article view), copy: /components/com_content/views/article/tmpl/default.php to: /templates/rhuk_milkyway/html/com_content/article/default.php Customise the Module Output To override a module layout (for example the Latest News module ), copy: /components/mod_latest_news/default.php to: /templates/rhuk_milkyway/html/mod_latest_news/default.php Add [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=48&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4>There are html folder in particular template folder</h4>
<h4>Customise the Component Output for joomla 1.5 series</h4>
<p>To override a component layout (for example the default layout in the article view), copy:</p>
<p><code>/components/com_content/views/article/tmpl/default.php</code></p>
<p>to:</p>
<p><code>/</code><code>templates/rhuk_milkyway/html</code><code>/com_content/article/default.php</code></p>
<h4>Customise the Module Output</h4>
<p>To override a module layout (for example the Latest News module ), copy:</p>
<p><code>/components/mod_latest_news/default.php</code></p>
<p>to:</p>
<p><code>/</code><code>templates/rhuk_milkyway/html</code><code>/mod_latest_news/default.php</code></p>
<h4>Add New Module Styles</h4>
<p>To add new module styles (chrome), add them to the following file:</p>
<p><code>/templates/rhuk_milkyway/html/modules.php</code></p>
<h4>Customise the Pagination Links</h4>
<p>To customise the way the items-per-page selector and pagination links display, edit the 	following file:</p>
<p><code>/templates/rhuk_milkyway/html/pagination.php</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=48&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/10/02/overriding-layout-for-15-series/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>first Rails Aplication</title>
		<link>http://patelraj.wordpress.com/2008/09/09/first-rails-aplication/</link>
		<comments>http://patelraj.wordpress.com/2008/09/09/first-rails-aplication/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 07:08:31 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[ROR]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=44</guid>
		<description><![CDATA[Ror First application on rails 2.0 1. rails &#8211;database mysql hello or rails -d mysql hello 2. create manually database on mysql or rake db:create:all 3. ruby script/generate controller say hello 4. ruby script/server 5. type on http://localhost:3000/say/hello for cearting table script/generate scaffold Post title:string body:text rake db:migrate Steps - rails -d mysql test -cd [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=44&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ror First application on rails 2.0<br />
1. rails &#8211;database mysql hello<br />
or rails -d mysql hello<br />
2. create manually database on mysql<br />
or rake db:create:all<br />
3. ruby script/generate controller say hello</p>
<p>4. ruby script/server<br />
5. type on http://localhost:3000/say/hello</p>
<p>for cearting table<br />
script/generate scaffold Post title:string body:text<br />
rake db:migrate</p>
<p>Steps<br />
- rails -d mysql test<br />
-cd test<br />
&#8212;-manuially set the dtabase usernamr and pwd in database.yml file<br />
-rake db:create:all<br />
-ruby script/server (starting the server)<br />
-ruby script/generate scaffold Movie title:string (for table cration)<br />
-rake db:migrate</p>
<p>==for mongrel server<br />
service mongrel_cluster restart<br />
script/server &#8211;help<br />
service nginx start</p>
<p>for including file<br />
rendre:partial &#8220;path&#8221;;<br />
render(:partial =&gt; &#8216;/controls/footer&#8217;)</p>
<p>for mongrel server steps</p>
<p>==start<br />
1. copy mongrel_cluster.yml into config<br />
changes that<br />
2. insert some code in etc/ngix/*.conf<br />
in that<br />
upstream hello.rajesh {<br />
server 127.0.0.1:8005;<br />
}<br />
and<br />
server {<br />
listen       81;<br />
server_name  hello.rajesh;</p>
<p>root /sites/hello/public;</p>
<p>#charset koi8-r;</p>
<p>access_log  /var/log/nginx/hello.access.log  main;</p>
<p>location ~ ^/$ {<br />
if (-f /index.html){<br />
rewrite (.*) /index.html last;<br />
}<br />
proxy_pass  http://hello.rajesh;<br />
}</p>
<p>location / {<br />
if (!-f $request_filename.html) {<br />
proxy_pass  http://hello.rajesh;<br />
}<br />
rewrite (.*) $1.html last;<br />
}</p>
<p>location ~ .html {<br />
root /sites/hello/public;<br />
}</p>
<p>location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov)$ {<br />
root /sites/hello/public;<br />
}</p>
<p>location / {<br />
proxy_pass  http://hello.rajesh;<br />
proxy_redirect     off;<br />
proxy_set_header   Host             $host;<br />
proxy_set_header   X-Real-IP        $remote_addr;<br />
proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;<br />
}</p>
<p>}</p>
<p>3. ln -s /sites/hello/config/mongrel_cluster.yml /etc/mongrel_cluster/hello.yml<br />
4. chown -R mongrel:mongrel /sites/hello<br />
==end<br />
for creating only model and table<br />
ruby script/generate model images_imagecategories image_id:integer imagecategories_id:integer<br />
ruby script/generate model imagecategories_images images_id:integer imagecategories_id:integer</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=44&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/09/first-rails-aplication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Ajax Uploading image, How to get image width and height for uploaded image, how to make validation for image width and height, how to call php function in javascript?</title>
		<link>http://patelraj.wordpress.com/2008/09/09/ajax-uploading-image-how-to-get-image-width-and-height-for-uploaded-image-how-to-make-validation-for-image-width-and-height/</link>
		<comments>http://patelraj.wordpress.com/2008/09/09/ajax-uploading-image-how-to-get-image-width-and-height-for-uploaded-image-how-to-make-validation-for-image-width-and-height/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 06:44:11 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=35</guid>
		<description><![CDATA[For that use following code for uplaoding image, there are 3 files to make this clear. 1.index.php &#60;!&#8211; /* This scipt uses webtoolkit.js for Frame and aJAx style upload */ &#8211;&#62; &#60;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&#62; &#60;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221; xml:lang=&#8221;en-US&#8221; lang=&#8221;en-US&#8221;&#62; &#60;head&#62; &#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&#62; &#60;title&#62;Iframe Ajax for Upload&#60;/title&#62; &#60;script type=&#8221;text/javascript&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=35&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For that use following code for uplaoding image, there are 3 files to make this clear.</p>
<p>1.index.php</p>
<p>&lt;!&#8211;<br />
/* This scipt uses webtoolkit.js for Frame and aJAx style upload */<br />
&#8211;&gt;<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221; xml:lang=&#8221;en-US&#8221; lang=&#8221;en-US&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&gt;<br />
&lt;title&gt;Iframe Ajax for Upload&lt;/title&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;webtoolkit.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function startCallback() {<br />
// make something useful before submit (onStart)<br />
return true;<br />
}<br />
function completeCallback(response) {<br />
// make something useful after (onComplete)<br />
var src_path =response;<br />
//alert(response);<br />
var img_obj  =document.getElementById(&#8216;img_div&#8217;);<br />
var newimg=document.createElement(&#8216;img&#8217;);<br />
img_obj.appendChild(newimg);<br />
newimg.src = src_path;<br />
newimg.onload=function()<br />
{ // get an image width and hieght<br />
new_w = img_obj.getElementsByTagName(&#8216;img&#8217;)[0].width;<br />
new_h =img_obj.getElementsByTagName(&#8216;img&#8217;)[0].height;</p>
<p>if(new_w&gt;100) //make neccessary validation depends on width adn hight<br />
{<br />
var ret = &#8220;&lt;?php posting1(&#8216;&#8221;+response+&#8221;&#8216;);?&gt;&#8221;;<br />
alert(ret);<br />
}<br />
//remove the image from disp location here<br />
img_obj.removeChild(newimg);<br />
}<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;</p>
<p>&lt;form action=&#8221;my_upload.php&#8221; method=&#8221;post&#8221; onsubmit=&#8221;return AIM.submit(this, {&#8216;onStart&#8217; : startCallback, &#8216;onComplete&#8217; : completeCallback})&#8221; enctype=&#8221;multipart/form-data&#8221;&gt;<br />
&lt;div&gt;&lt;label&gt;Name:&lt;/label&gt; &lt;input type=&#8221;text&#8221; name=&#8221;form[name]&#8221; /&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;label&gt;File:&lt;/label&gt; &lt;input type=&#8221;file&#8221; name=&#8221;form[file]&#8221; /&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;input type=&#8221;submit&#8221; value=&#8221;SUBMIT&#8221; /&gt;&lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;hr/&gt;<br />
&lt;div id=&#8221;img_div&#8221;&gt;&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&lt;?php<br />
function posting1($ret)<br />
{<br />
echo &#8220;code for update database and remove image for the same&#8221;.$ret;<br />
}</p>
<p>?&gt;</p>
<hr />2.my_upload.php</p>
<p>&lt;!&#8211;<br />
/* In this page we can make upload logic by using php code */<br />
&#8211;&gt;<br />
&lt;?php<br />
$fname =  $_FILES['form']['name']['file'];<br />
$uploaded_path = &#8220;&#8221;.$fname;        ///var/www/html/demo/test/my_upload/<br />
$ftname =  $_FILES['form']['tmp_name']['file'];</p>
<p>if(move_uploaded_file($ftname,$uploaded_path))<br />
$ret = $uploaded_path;<br />
else $ret =  $uploaded_path;<br />
//$ret =&#8221;http://localhost:100/demo/test/&#8221;.$fname;<br />
$disp_path =$fname;<br />
echo $disp_path;<br />
?&gt;</p>
<hr />
3.webtoolkit.js<br />
/**<br />
*<br />
*  AJAX IFRAME METHOD (AIM)<br />
*  http://www.webtoolkit.info/<br />
**/</p>
<p>AIM = {</p>
<p>frame : function(c) {</p>
<p>var n = &#8216;f&#8217; + Math.floor(Math.random() * 99999);<br />
var d = document.createElement(&#8216;DIV&#8217;);<br />
d.innerHTML = &#8216;&lt;iframe style=&#8221;display:none&#8221; src=&#8221;about:blank&#8221; id=&#8221;&#8216;+n+&#8217;&#8221; name=&#8221;&#8216;+n+&#8217;&#8221; onload=&#8221;AIM.loaded(\&#8221;+n+&#8217;\')&#8221;&gt;&lt;/iframe&gt;&#8217;;<br />
document.body.appendChild(d);</p>
<p>var i = document.getElementById(n);<br />
if (c &amp;&amp; typeof(c.onComplete) == &#8216;function&#8217;) {<br />
i.onComplete = c.onComplete;<br />
}</p>
<p>return n;<br />
},</p>
<p>form : function(f, name) {<br />
f.setAttribute(&#8216;target&#8217;, name);<br />
},</p>
<p>submit : function(f, c) {<br />
AIM.form(f, AIM.frame(c));<br />
if (c &amp;&amp; typeof(c.onStart) == &#8216;function&#8217;) {<br />
return c.onStart();<br />
} else {<br />
return true;<br />
}<br />
},</p>
<p>loaded : function(id) {<br />
var i = document.getElementById(id);<br />
if (i.contentDocument) {<br />
var d = i.contentDocument;<br />
} else if (i.contentWindow) {<br />
var d = i.contentWindow.document;<br />
} else {<br />
var d = window.frames[id].document;<br />
}<br />
if (d.location.href == &#8220;about:blank&#8221;) {<br />
return;<br />
}</p>
<p>if (typeof(i.onComplete) == &#8216;function&#8217;) {<br />
i.onComplete(d.body.innerHTML);<br />
}<br />
}</p>
<p>}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&amp;blog=4066247&amp;post=35&amp;subd=patelraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/09/ajax-uploading-image-how-to-get-image-width-and-height-for-uploaded-image-how-to-make-validation-for-image-width-and-height/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
	</channel>
</rss>
