<?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>Nilesh - LAMP</title>
	<atom:link href="http://prajapatinilesh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://prajapatinilesh.wordpress.com</link>
	<description>Welcome to my site ..... (Kem Chho Bhai ?)</description>
	<lastBuildDate>Mon, 08 Aug 2011 10:50:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='prajapatinilesh.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Nilesh - LAMP</title>
		<link>http://prajapatinilesh.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://prajapatinilesh.wordpress.com/osd.xml" title="Nilesh - LAMP" />
	<atom:link rel='hub' href='http://prajapatinilesh.wordpress.com/?pushpress=hub'/>
		<item>
		<title>JAIN SONGS LYRICS &#8211; tu mane bhagwan ek vardaan aapi de !!</title>
		<link>http://prajapatinilesh.wordpress.com/2011/08/08/jain-songs-lyrics-tu-mane-bhagwan-ek-vardaan-aapi-de/</link>
		<comments>http://prajapatinilesh.wordpress.com/2011/08/08/jain-songs-lyrics-tu-mane-bhagwan-ek-vardaan-aapi-de/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 10:31:36 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[other]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=245</guid>
		<description><![CDATA[I like this song very much.  so, adding its lyrics here. [tu mane bhagwan ek vardaan aapi de jya vase che tu mane tya sthaan aapi de]&#8230;(2) [hu jivu chu ae jagat ma jya nathi jeevan zindagi nu naam che bas boj ne bandhan]&#8230;(2) [aakhri avtaar nu mandaan bandhi de jya vase che tu mane [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=245&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>I like this song very much.  so, adding its lyrics here.</div>
<p></p>
<div>[tu mane bhagwan ek vardaan aapi de</div>
<div>jya vase che tu mane tya sthaan aapi de]&#8230;(2)</div>
<p></p>
<div>[hu jivu chu ae jagat ma jya nathi jeevan</div>
<div>zindagi nu naam che bas boj ne bandhan]&#8230;(2)</div>
<p></p>
<div>[aakhri avtaar nu mandaan bandhi de</div>
<div>jya vase che tu mane tya sthaan aapi de]&#8230;(2)</div>
<p></p>
<div>[tu mane bhagwan ek vardan aapi de</div>
<div>jya vase che tu mane tya sthaan aapi de]&#8230;(1)</div>
<p></p>
<div>[aa bhoomi ma khoob gaaje paap na padgham</div>
<div>besuri thai jayi amari punya ni sargam]&#8230;(2)</div>
<p></p>
<div>[dil rubana taar nu bhangan saandhi de</div>
<div>jya vase che tu mane tya sthaan aapi de]&#8230;(2)</div>
<p></p>
<div>[tu mane bhagwan ek vardaan aapi de</div>
<div>jya vase che tu mane tya sthaan aapi de]&#8230;(1)</div>
<p></p>
<div>[jo vatan ma jya Lagi che sau kare shoshan</div>
<div>jom a jata koi ahiya na kare poshan]&#8230;(2)</div>
<p></p>
<div>[matlabi sansar nu jo daan kaapi de</div>
<div>jya vaseche tu mane tya sthaan aapi de]&#8230;.(4)</div>
<p></p>
<div>tu mane bhagwan ek vardaan aapi de</div>
<div>[jya vaseche tu mane tya staan aapi de]&#8230;(4)</div>
<div>Thanks,</div>
<div>Nilesh Prajapati.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/245/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=245&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2011/08/08/jain-songs-lyrics-tu-mane-bhagwan-ek-vardaan-aapi-de/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP Date ( Archived date list )</title>
		<link>http://prajapatinilesh.wordpress.com/2011/01/07/php-date-archived-date-list/</link>
		<comments>http://prajapatinilesh.wordpress.com/2011/01/07/php-date-archived-date-list/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 07:17:55 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=237</guid>
		<description><![CDATA[&#60;?php $stDtTimeVar = &#8217;12/30/2010 09:00 PM&#8217;; $endDtTimeVar = &#8217;12/30/2010 09:00 AM&#8217;; echo &#8216;start date:&#8211; &#8216;.$stDtTimeVar; echo &#8220;&#60;br /&#62; &#60;br /&#62;&#8221;; echo &#8216;end date:&#8211; &#8216;.$endDtTimeVar; echo &#8220;&#60;br /&#62; &#60;br /&#62;&#8221;; if(strtotime($stDtTimeVar) &#62;= strtotime($endDtTimeVar)) { echo &#8216;start date is greater.&#8217;; } else { echo &#8216;end date is greater.&#8217;; } echo &#8220;&#60;br /&#62; &#60;br /&#62;&#8221;; $url = $_SERVER['PHP_SELF']; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=237&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&lt;?php<br />
$stDtTimeVar = &#8217;12/30/2010 09:00 PM&#8217;;<br />
$endDtTimeVar = &#8217;12/30/2010 09:00 AM&#8217;;<br />
echo &#8216;start date:&#8211; &#8216;.$stDtTimeVar;<br />
echo &#8220;&lt;br /&gt; &lt;br /&gt;&#8221;;<br />
echo &#8216;end date:&#8211; &#8216;.$endDtTimeVar;<br />
echo &#8220;&lt;br /&gt; &lt;br /&gt;&#8221;;</p>
<p>if(strtotime($stDtTimeVar) &gt;= strtotime($endDtTimeVar)) {<br />
echo &#8216;start date is greater.&#8217;;<br />
}<br />
else {<br />
echo &#8216;end date is greater.&#8217;;<br />
}</p>
<p>echo &#8220;&lt;br /&gt; &lt;br /&gt;&#8221;;</p>
<p>$url = $_SERVER['PHP_SELF'];<br />
$i=1;<br />
$monthLimit=12;</p>
<p>$currentdate = date(&#8220;Y-m&#8221;, mktime(0,0,0,date(&#8220;m&#8221;),1,date(&#8220;Y&#8221;)));<br />
$currentdate1 = str_replace  ( &#8220;-&#8221;  , &#8220;_&#8221;  , $currentdate);</p>
<p>$currentdateDisp=date(&#8220;F Y&#8221;, mktime(0,0,0,date(&#8220;m&#8221;),1,date(&#8220;Y&#8221;)));<br />
echo &#8220;&lt;a href=&#8217;$url?date=$currentdate1&#8242;&gt;&#8221;.$currentdateDisp.&#8221;&lt;/a&gt;&#8221;.&#8221;&lt;br&gt;&#8221;;</p>
<p>while($monthLimit &gt; 0) {</p>
<p>$monthVal = date(&#8220;m&#8221;)-$i;</p>
<p>$dateDisp = date(&#8220;Y-m&#8221;, mktime(0,0,0,$monthVal,1,date(&#8220;Y&#8221;)));<br />
$dateDisp1 = str_replace  ( &#8220;-&#8221;  , &#8220;_&#8221;  , $dateDisp);</p>
<p>$dateDisp2 = date(&#8220;F Y&#8221;, mktime(0,0,0,$monthVal,1,date(&#8220;Y&#8221;)));<br />
?&gt;<br />
&lt;a href=&#8217;&lt;?=$url?&gt;?date=&lt;?=$dateDisp1?&gt;&#8217;&gt;&lt;?=$dateDisp2?&gt;&lt;/a&gt;&lt;br&gt;<br />
&lt;?php<br />
$monthLimit&#8211;;<br />
$i=$i+1;<br />
}<br />
?&gt;</p>
<p>Thanks,</p>
<p>Nilesh Prajapati</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/237/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=237&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2011/01/07/php-date-archived-date-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Marge 2 field Sybase query</title>
		<link>http://prajapatinilesh.wordpress.com/2011/01/07/marge-2-field-sybase-query/</link>
		<comments>http://prajapatinilesh.wordpress.com/2011/01/07/marge-2-field-sybase-query/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 07:00:29 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=234</guid>
		<description><![CDATA[TableName: ScheduledHomepage Fields: startDate (datetime) , startHour (time) select startDate,startHour from ScheduledHomepage startDate                  startHour &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212; NULL            NULL May 15 2010 12:00AM         10:00AM Mar 11 2010 12:00AM          9:00AM //Trancate time value from full date time value. select left(startDate,11) as startDate from ScheduledHomepage startDate &#8212;&#8212;&#8212;&#8211; NULL May 15 2010 Mar 11 2010 //Combine 2 field value [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=234&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>TableName: ScheduledHomepage<br />
Fields: startDate (datetime) , startHour (time)</p>
<p>select startDate,startHour from ScheduledHomepage<br />
startDate                  startHour<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;<br />
NULL            NULL<br />
May 15 2010 12:00AM         10:00AM<br />
Mar 11 2010 12:00AM          9:00AM</p>
<p>//Trancate time value from full date time value.<br />
select left(startDate,11) as startDate from ScheduledHomepage</p>
<p>startDate<br />
&#8212;&#8212;&#8212;&#8211;<br />
NULL<br />
May 15 2010<br />
Mar 11 2010</p>
<p>//Combine 2 field value<br />
select left(startDate,11) +&#8221; &#8220;+ convert(varchar(8), startHour) as startDateTime from ScheduledHomepage</p>
<p>startDateTime<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>May 15 2010 10:00AM<br />
Mar 11 2010  9:00AM</p>
<p>Other sample examples:</p>
<p>select convert(nvarchar,getdate(),101)<br />
select convert(INT,convert(varchar,getdate(),112))<br />
SELECT LEFT(DateTimeField, 11) FROM Table<br />
SELECT CONVERT(VARCHAR(20), DateTimeField, 101) FROM YourTable</p>
<p>Thanks,</p>
<p>Nilesh Prajapati</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=234&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2011/01/07/marge-2-field-sybase-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript + Array sort on Key</title>
		<link>http://prajapatinilesh.wordpress.com/2010/06/10/javascript-array-sort-on-key-2/</link>
		<comments>http://prajapatinilesh.wordpress.com/2010/06/10/javascript-array-sort-on-key-2/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 08:52:00 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=231</guid>
		<description><![CDATA[&#60;HTML&#62; &#60;HEAD&#62; &#60;TITLE&#62; array key sort &#60;/TITLE&#62; &#60;script language=&#8221;javascript&#8221;&#62; jsArray = new Array(); jsArray['A'] = &#8216;Test1&#8242;; jsArray['Z'] = &#8216;Test3&#8242;; jsArray['P'] = &#8216;Test4&#8242;; jsArray['U'] = &#8216;Test2&#8242;; jsArray['B'] = &#8216;Test5&#8242;; array = jsArray; var keys = new Array(); for(k in array) { keys.push(k); } keys.sort( function (a, b){return (a &#62; b) &#8211; (a &#60; b);} ); for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=231&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&lt;HTML&gt;<br />
&lt;HEAD&gt;<br />
&lt;TITLE&gt; array key sort &lt;/TITLE&gt;<br />
&lt;script language=&#8221;javascript&#8221;&gt;<br />
jsArray = new Array();<br />
jsArray['A'] = &#8216;Test1&#8242;;<br />
jsArray['Z'] = &#8216;Test3&#8242;;<br />
jsArray['P'] = &#8216;Test4&#8242;;<br />
jsArray['U'] = &#8216;Test2&#8242;;<br />
jsArray['B'] = &#8216;Test5&#8242;;</p>
<p>array = jsArray;<br />
var keys = new Array();<br />
for(k in array)<br />
{<br />
keys.push(k);<br />
}</p>
<p>keys.sort( function (a, b){return (a &gt; b) &#8211; (a &lt; b);} );</p>
<p>for (var i = 0; i &lt; keys.length; i++)<br />
{<br />
alert(keys[i] + &#8221; , &#8221; + array[keys[i]]);<br />
}<br />
&lt;/script&gt;<br />
&lt;/HEAD&gt;</p>
<p>&lt;BODY&gt;<br />
Javascript + Array sort on Key<br />
&lt;/BODY&gt;<br />
&lt;/HTML&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=231&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2010/06/10/javascript-array-sort-on-key-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
		<item>
		<title>MSSql:convert dd/mm/yyyy (’21/05/2010′) to MMM/dd/YYYY (‘May/21/2010′)?</title>
		<link>http://prajapatinilesh.wordpress.com/2010/06/10/mssqlconvert-ddmmyyyy-%e2%80%9921052010%e2%80%b2-to-mmmddyyyy-%e2%80%98may212010%e2%80%b2/</link>
		<comments>http://prajapatinilesh.wordpress.com/2010/06/10/mssqlconvert-ddmmyyyy-%e2%80%9921052010%e2%80%b2-to-mmmddyyyy-%e2%80%98may212010%e2%80%b2/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 08:49:03 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=228</guid>
		<description><![CDATA[SELECT REPLACE(convert(varchar(11), getdate(), 109),’ ‘,’/&#8217;)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=228&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><em>SELECT REPLACE(convert(varchar(11), getdate(), 109),’ ‘,’/&#8217;) </em></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=228&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2010/06/10/mssqlconvert-ddmmyyyy-%e2%80%9921052010%e2%80%b2-to-mmmddyyyy-%e2%80%98may212010%e2%80%b2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
		<item>
		<title>.htaccess &#8211; some security on site.</title>
		<link>http://prajapatinilesh.wordpress.com/2010/04/06/htaccess-some-security-on-site/</link>
		<comments>http://prajapatinilesh.wordpress.com/2010/04/06/htaccess-some-security-on-site/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 12:46:43 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[Web server]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=224</guid>
		<description><![CDATA[File Name:   .htaccess  &#8211; put this on root directory of htdocs folder. #order deny,allow #deny from all #allow from 127.0.0.1 #Options +Indexes # enables Directory listing #Options –Indexes # disables directory listing #just create an empty directory list IndexIgnore * #to skip all gif, zip and txt files from the directory list #IndexIgnore *.gif *.zip [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=224&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>File Name:   .htaccess  &#8211; put this on root directory of htdocs folder.</p>
<p>#order deny,allow<br />
#deny from all<br />
#allow from 127.0.0.1</p>
<p>#Options +Indexes # enables Directory listing<br />
#Options –Indexes # disables directory listing</p>
<p>#just create an empty directory list<br />
IndexIgnore *</p>
<p>#to skip all gif, zip and txt files from the directory list<br />
#IndexIgnore *.gif *.zip *.txt</p>
<p>#ErrorDocument 404 /notfound.html<br />
ErrorDocument 404 http://localhost/Nilesh/notfound.html</p>
<p>Thanks,  Nilesh</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/224/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=224&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2010/04/06/htaccess-some-security-on-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
		<item>
		<title>php – Cannot modify header information – headers already sent by (php header already sent error)</title>
		<link>http://prajapatinilesh.wordpress.com/2010/02/12/php-%e2%80%93-cannot-modify-header-information-%e2%80%93-headers-already-sent-by-php-header-already-sent-error/</link>
		<comments>http://prajapatinilesh.wordpress.com/2010/02/12/php-%e2%80%93-cannot-modify-header-information-%e2%80%93-headers-already-sent-by-php-header-already-sent-error/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 11:05:17 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=218</guid>
		<description><![CDATA[This error comes when you print any thing before php hreader command or sometime single spaces allowed before any file starting place or printing or getting values from $_COOKIE or $_SESSION or set cookie or set session etc&#8230; Example Error Code: &#60;?php print “text”; header(‘Location: http://www.example.com/’); ?&#62; Solution : &#60;?php function JSRedirection($url) {?&#62; &#60;script type=”text/javascript”&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=218&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This error comes when you print any thing before php hreader command or sometime single spaces allowed before any file starting place or printing or getting values from $_COOKIE or $_SESSION or set cookie or set session etc&#8230;</p>
<p><strong> Example Error Code:</strong><br />
&lt;?php<br />
print “text”;<br />
header(‘Location: http://www.example.com/’);<br />
?&gt;</p>
<p><strong>Solution :</strong></p>
<p>&lt;?php<br />
function JSRedirection($url)<br />
{?&gt;<br />
&lt;script type=”text/javascript”&gt;<br />
&lt;!–<br />
window.location = “&lt;?=$url?&gt;”<br />
//–&gt;<br />
&lt;/script&gt;<br />
&lt;?}<br />
print “test”;<br />
JSRedirection(“http://www.example.com/”);</p>
<p>?&gt;</p>
<p>Above is by use of js redirect function. But we can solved it by php functions only.</p>
<p>Example 1:</p>
<p><code>&lt;?php<br />
header("location: 1.html");<br />
header("location: 2.html"); //replaces 1.html<br />
?&gt;</code></p>
<p><code>This redirects to 2.html since the second header replaces the first.</code></p>
<p>Example 2:</p>
<p><code>&lt;?php<br />
header("location: 1.html");<br />
echo "send data";<br />
header("location: 2.html"); //1.html already sent<br />
?&gt;</code></p>
<p><code>This redirects to 1.html since the header is sent as soon as the echo happens. You also won't see any "headers already sent" errors because the browser follows the redirect before it can display the error.</code></p>
<p>Example 3:</p>
<p><code>&lt;?php<br />
ob_start();<br />
header("location: 1.html");<br />
echo "send data";<br />
header("location: 2.html"); //replaces 1.html<br />
ob_end_flush(); //now the headers are sent<br />
?&gt;</code></p>
<p><code>Wrapping the previous example in an output buffer actually changes the behavior of the script! This is because headers aren't sent until the output buffer is flushed.</code></p>
<p>OR</p>
<p>Need to write &lt;?php ob_start(); ?&gt; at first line of html part when you main body is common for all pages.</p>
<p>like:</p>
<p>&lt;?php ob_start(); ?&gt;</p>
<p>&lt;html&gt; &#8230;&#8230;  &lt;?php include_once &#8220;&lt;included part of files &gt;&#8221;;  ?&gt;  &#8230;&#8230; &lt;/html&gt;</p>
<p>Thanks,</p>
<p>Nilesh Prajapati.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/218/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=218&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2010/02/12/php-%e2%80%93-cannot-modify-header-information-%e2%80%93-headers-already-sent-by-php-header-already-sent-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript + Array sort on Key</title>
		<link>http://prajapatinilesh.wordpress.com/2009/06/25/javascript-array-sort-on-key/</link>
		<comments>http://prajapatinilesh.wordpress.com/2009/06/25/javascript-array-sort-on-key/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 09:08:09 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=215</guid>
		<description><![CDATA[Hi, Please follow following example to understand the problem. &#60;script&#62; function keySort(array, flag) { var keys = new Array(); for(k in array) { keys.push(k); } keys.sort( function (a, b) { if (flag &#38;&#38; flag != &#8216;undefined&#8217;) { if(flag == &#8216;integer&#8217;) { a = parseInt(a); b = parseInt(b); } } return (a &#62; b) &#8211; (a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=215&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Please follow following example to understand the problem.</p>
<p>&lt;script&gt;<br />
function keySort(array, flag) {<br />
var keys = new Array();</p>
<p>for(k in array) {<br />
keys.push(k);<br />
}</p>
<p>keys.sort( function (a, b) {<br />
if (flag &amp;&amp; flag != &#8216;undefined&#8217;) {<br />
if(flag == &#8216;integer&#8217;) {<br />
a = parseInt(a);<br />
b = parseInt(b);<br />
}<br />
}<br />
return (a &gt; b) &#8211; (a &lt; b);<br />
} );</p>
<p>return keys;<br />
}//End of function keySort</p>
<p>/*jsArray = new Array();<br />
jsArray['A'] = &#8216;Test1&#8242;;<br />
jsArray['Z'] = &#8216;Test3&#8242;;<br />
jsArray['P'] = &#8216;Test4&#8242;;<br />
jsArray['U'] = &#8216;Test2&#8242;;<br />
jsArray['B'] = &#8216;Test5&#8242;;*/</p>
<p>jsArray = new Array();<br />
jsKeyArray = new Array();</p>
<p>jsArray[80] = &#8216;nil1&#8242;;<br />
jsArray[120] = &#8216;nil2&#8242;;<br />
jsArray[160] = &#8216;nil3&#8242;;</p>
<p>for (x in jsArray) {<br />
alert(x + &#8216; &#8211;&gt; &#8216; + jsArray[x]);<br />
}</p>
<p>jsKeyArray = keySort(jsArray);</p>
<p>/*for (x in jsKeyArray) {<br />
alert(x + &#8216; &#8211;&gt; &#8216; + jsKeyArray[x]);<br />
}*/</p>
<p>//It will display wrong result&#8230;.<br />
for (var i = 0; i &lt; jsKeyArray.length; i++) {<br />
alert(jsKeyArray[i] + &#8216; &#8211;&gt; &#8216; + jsArray[jsKeyArray[i]]);<br />
}</p>
<p>jsKeyArray = keySort(jsArray, &#8216;integer&#8217;);</p>
<p>//correct result&#8230;.<br />
for (var i = 0; i &lt; jsKeyArray.length; i++) {<br />
alert(jsKeyArray[i] + &#8216; (integer) &#8211;&gt; &#8216; + jsArray[jsKeyArray[i]]);<br />
}</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>//Value integer sorting&#8230;..</p>
<p>function sortASC(a, b){ return (a-b); }<br />
function sortDESC(a, b){ return (b-a); }</p>
<p>integerArray = new Array(1,545,1435,3453,342,441,90);</p>
<p>integerArray.sort( sortASC );<br />
document.write(&#8216; &lt;br /&gt; Ascending : &#8216; + integerArray);</p>
<p>integerArray.sort( sortDESC );<br />
document.write(&#8216; &lt;br /&gt; Descending : &#8216; + integerArray );</p>
<p>&lt;/script&gt;</p>
<p>Thanks,</p>
<p>Nilesh Prajapati</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=215&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2009/06/25/javascript-array-sort-on-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
		<item>
		<title>How to refresh the parent window on closing the child window ?</title>
		<link>http://prajapatinilesh.wordpress.com/2009/05/17/how-to-refresh-the-parent-window-on-closing-the-child-window/</link>
		<comments>http://prajapatinilesh.wordpress.com/2009/05/17/how-to-refresh-the-parent-window-on-closing-the-child-window/#comments</comments>
		<pubDate>Sun, 17 May 2009 18:25:04 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=210</guid>
		<description><![CDATA[Hi, Demo Example: 1) parent.php &#60;html&#62; &#60;head&#62; &#60;title&#62;Parent Window&#60;/title&#62; &#60;script language=&#8221;javascript&#8221;&#62; window.name = &#8216;parentWindow&#8217;; var newPopupWindow; function popupLinkOption(url,width,height) { newPopupWindow=window.open(url,&#8221;childWindow&#8221;,&#8221;height=&#8221;+height+&#8221;,width=&#8221;+width+&#8221;,left=100,top=100,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no,location=no&#8221;); } &#60;/script&#62; &#60;/head&#62; &#60;body&#62; Parent File &#60;br /&#62; &#60;a href=&#8221;#&#8221; onclick=&#8221;popupLinkOption(&#8216;child.php&#8217;,200,200);&#8221;&#62; Popup &#60;/a&#62; &#60;?php if ($_GET['rId']) { echo &#8220;&#60;br /&#62;Rendom Id &#8211;&#62;&#8221;.$_GET['rId']; } ?&#62; &#60;/body&#62; &#60;/html&#62; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 2) child.php &#60;html&#62; &#60;head&#62; &#60;title&#62;Child Window&#60;/title&#62; &#60;script language=&#8221;javascript&#8221;&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=210&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Demo Example:</p>
<p>1) parent.php</p>
<p>&lt;html&gt;<br />
&lt;head&gt; &lt;title&gt;Parent Window&lt;/title&gt;<br />
&lt;script language=&#8221;javascript&#8221;&gt;<br />
window.name = &#8216;parentWindow&#8217;;<br />
var newPopupWindow;<br />
function popupLinkOption(url,width,height) {<br />
newPopupWindow=window.open(url,&#8221;childWindow&#8221;,&#8221;height=&#8221;+height+&#8221;,width=&#8221;+width+&#8221;,left=100,top=100,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no,location=no&#8221;);<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
Parent File &lt;br /&gt;<br />
&lt;a href=&#8221;#&#8221; onclick=&#8221;popupLinkOption(&#8216;child.php&#8217;,200,200);&#8221;&gt; Popup &lt;/a&gt;<br />
&lt;?php<br />
if ($_GET['rId']) {<br />
echo &#8220;&lt;br /&gt;Rendom Id &#8211;&gt;&#8221;.$_GET['rId'];<br />
}<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>2) child.php</p>
<p>&lt;html&gt;<br />
&lt;head&gt; &lt;title&gt;Child Window&lt;/title&gt;<br />
&lt;script language=&#8221;javascript&#8221;&gt;<br />
function refreshParent() {<br />
//here window.opener is the parent window from which child window opened.<br />
parentURL = window.opener.location.href;<br />
if (parentURL &amp;&amp; parentURL != &#8216;undefined&#8217;) {<br />
//alert(window.opener.location.href + &#8216; &#8212; &#8216; + window.opener.location);<br />
//alert(window.opener.name);<br />
parentURLArr = parentURL.split(&#8216;#&#8217;);</p>
<p>//find last characters from the string means # as we have href=&#8217;#&#8217; in parent window link<br />
//newStr = parentURL.substring(0, parentURL.length-1);<br />
//alert(newStr);</p>
<p>parentURLArr1 = parentURLArr[0].split(&#8216;?rId=&#8217;);<br />
//alert(parentURLArr1[0]);</p>
<p>qStr = &#8216;?rId=&#8217;+Math.random(); //random Id added here becuase it will not take page from the browser cache.. sometimes required for some browser.</p>
<p>window.opener.location.href = parentURLArr1[0] + qStr;</p>
<p>//window.opener.location.href = window.opener.location.href; //this also used to refresh the parent window.<br />
//window.opener.location.reload(); //this also we can add to reload the parent window.<br />
//window.opener.close(); //parent open closing<br />
}<br />
}</p>
<p>function closeChild() {<br />
window.close();<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body onunload=&#8221;refreshParent();&#8221; &gt;<br />
Child File &lt;br /&gt;<br />
&lt;a href=&#8221;#&#8221; onclick=&#8221;closeChild();&#8221;&gt; Close Child&lt;/a&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>This is just demo with alert and other things. so, can check in your local pc.. and you can modified code as per your requirements. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Run parent.php file to check this exmple.</p>
<p>Thanks,</p>
<p>Nilesh Prajapati.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=210&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2009/05/17/how-to-refresh-the-parent-window-on-closing-the-child-window/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript function to get particular querystring value from URL.</title>
		<link>http://prajapatinilesh.wordpress.com/2009/05/11/javascript-function-to-get-particular-querystring-value-from-url/</link>
		<comments>http://prajapatinilesh.wordpress.com/2009/05/11/javascript-function-to-get-particular-querystring-value-from-url/#comments</comments>
		<pubDate>Mon, 11 May 2009 10:44:56 +0000</pubDate>
		<dc:creator>prajapatinilesh</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://prajapatinilesh.wordpress.com/?p=205</guid>
		<description><![CDATA[Hi, function getQueryStrVal(url,name) { name = name.replace(/[\[]/,&#8221;\\\[").replace(/[\]]/,&#8221;\\\]&#8221;); var regexS = &#8220;[\\?&#38;]&#8220;+name+&#8221;=([^&#38;#]*)&#8221;; var regex = new RegExp( regexS ); var results = null; if (url &#38;&#38; url != &#8216;undefined&#8217;) { results = regex.exec( url ); } else { results = regex.exec( window.location.href ); } if( results == null ) return &#8220;&#8221;; else return results[1]; } How [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=205&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>function getQueryStrVal(url,name) {<br />
name = name.replace(/[\[]/,&#8221;\\\[").replace(/[\]]/,&#8221;\\\]&#8221;);<br />
var regexS = &#8220;[\\?&amp;]&#8220;+name+&#8221;=([^&amp;#]*)&#8221;;<br />
var regex = new RegExp( regexS );<br />
var results = null;<br />
if (url &amp;&amp; url != &#8216;undefined&#8217;) {<br />
results = regex.exec( url );<br />
}<br />
else {<br />
results = regex.exec( window.location.href );<br />
}<br />
if( results == null )<br />
return &#8220;&#8221;;<br />
else<br />
return results[1];<br />
}</p>
<p>How to use:</p>
<p>here url is your js variable in which your whole url is defined.</p>
<p>if(url.indexOf(&#8216;prefixVal&#8217;) != -1) {</p>
<p>prefixVal = getQueryStrVal(url, &#8216;prefixVal&#8217;);</p>
<p>alert(prefixVal);</p>
<p>}</p>
<p>Thanks,</p>
<p>Nilesh prajapati.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajapatinilesh.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajapatinilesh.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajapatinilesh.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajapatinilesh.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajapatinilesh.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajapatinilesh.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajapatinilesh.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajapatinilesh.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajapatinilesh.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajapatinilesh.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajapatinilesh.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajapatinilesh.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajapatinilesh.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajapatinilesh.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajapatinilesh.wordpress.com&amp;blog=1033097&amp;post=205&amp;subd=prajapatinilesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajapatinilesh.wordpress.com/2009/05/11/javascript-function-to-get-particular-querystring-value-from-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4162a7c9609bb4dcde5bd2f421f8ccf8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prajapatinilesh</media:title>
		</media:content>
	</item>
	</channel>
</rss>
