<?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>PHP,PERL, MYSQL, SYMFONY, JAVASCRIPT, AJAX, HTML,Zip Codes of India..</title>
	<atom:link href="http://vinodkram.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinodkram.wordpress.com</link>
	<description>This blog is for the web developer , who work on PHP , Perl , MYSQL ,Linux, Apache ,Javascript, Ajax, Symfony frame work, HTML</description>
	<lastBuildDate>Wed, 19 Aug 2009 10:46:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vinodkram.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>PHP,PERL, MYSQL, SYMFONY, JAVASCRIPT, AJAX, HTML,Zip Codes of India..</title>
		<link>http://vinodkram.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vinodkram.wordpress.com/osd.xml" title="PHP,PERL, MYSQL, SYMFONY, JAVASCRIPT, AJAX, HTML,Zip Codes of India.." />
	<atom:link rel='hub' href='http://vinodkram.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to establish oracle database connection in php</title>
		<link>http://vinodkram.wordpress.com/2009/06/03/how-to-establish-oracle-database-connection-in-php/</link>
		<comments>http://vinodkram.wordpress.com/2009/06/03/how-to-establish-oracle-database-connection-in-php/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 06:36:07 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[ORACLE]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=65</guid>
		<description><![CDATA[First of all you need to check whether &#8220;oci8&#8243; support is enabled or not, if not you have to enable that you can check this in your phpinfo file. Once this is done. Now in you test.php file You have to explicitly set the ORACLE_HOME and LD_LIBRARY_PATH path. This information will be available in you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=65&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First of all you need to check whether &#8220;oci8&#8243; support is enabled or not, if not you have to enable that you can check this in your phpinfo file.</p>
<p>Once this is done.</p>
<p>Now in you test.php file</p>
<p>You have to explicitly set the ORACLE_HOME and LD_LIBRARY_PATH path.<br />
This information will be available in you phpinfo file.</p>
<p>The &#8220;$dbstr&#8221; variable information you can find it from your &#8220;tnsnames.ora&#8221;  file .</p>
<p>Test.php start</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;&#8211;</p>
<p>if (!ini_get(&#8216;display_errors&#8217;)) {<br />
ini_set(&#8216;display_errors&#8217;, 1);<br />
}<br />
PutEnv(&#8220;ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/&#8221;);<br />
PutEnv(&#8220;LD_LIBRARY_PATH=-Wl,-rpath,/usr/lib/oracle/xe/app/oracle/product/10.2.0/server//lib -L/usr/lib/oracle/xe/app/oracle/product/10.2.0/server//lib -lclntsh&#8221;);</p>
<p>$dbstr =&#8221;(DESCRIPTION =<br />
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.XX)(PORT = 1521))<br />
(CONNECT_DATA =<br />
(SERVER = DEDICATED)<br />
(SERVICE_NAME = YOURDATABASENAME)<br />
)<br />
)&#8221;;</p>
<p>if(!@($conn = oci_connect(&#8216;DBUSERNAME&#8217;,'DBPASSWORD&#8217;,$dbstr)))<br />
{<br />
print_r(ocierror());</p>
<p>}<br />
else<br />
{<br />
echo &#8220;connected succesfully&#8221;;<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Thanks</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=65&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/06/03/how-to-establish-oracle-database-connection-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
		<item>
		<title>How to import data into mysql db from sql file</title>
		<link>http://vinodkram.wordpress.com/2009/05/26/how-to-import-data-into-mysql-db-from-sql-file/</link>
		<comments>http://vinodkram.wordpress.com/2009/05/26/how-to-import-data-into-mysql-db-from-sql-file/#comments</comments>
		<pubDate>Tue, 26 May 2009 10:15:50 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=63</guid>
		<description><![CDATA[Open your shell prompt navigate to the mysql directory (default is /var/lib/mysql) cd /pathToYourMysqlDirectory/ then type the below command $ mysql -u mysqlUserName -p Password -h HostName DatabaseName &#60; /loactionOfYourSqlFile/yourSqlFileName.sql Where mysqlUserName = Mysql User Name Password = Mysql User Password HostName = Mysql Host Name (This could be local host or some remote IP [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=63&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Open your shell prompt</p>
<p>navigate to the mysql directory (default is /var/lib/mysql)<br />
cd  /pathToYourMysqlDirectory/</p>
<p>then type the below command</p>
<p>$ mysql -u mysqlUserName -p Password -h HostName DatabaseName &lt; /loactionOfYourSqlFile/yourSqlFileName.sql </p>
<p>Where<br />
mysqlUserName = Mysql User Name<br />
Password            = Mysql User Password<br />
HostName          = Mysql Host Name (This could be local host or some remote IP where you want to import the database)<br />
DatabaseName = Mysql Database Name<br />
/loactionOfYourSqlFile/yourSqlFileName.sql  = This is the location of your sql file  </p>
<p>Note : This is work only in Linux system</p>
<p>Thanks</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=63&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/05/26/how-to-import-data-into-mysql-db-from-sql-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
		<item>
		<title>How to copy file from local machine to remote server in linux</title>
		<link>http://vinodkram.wordpress.com/2009/05/22/how-to-copy-file-from-local-machine-to-remote-server-in-linux/</link>
		<comments>http://vinodkram.wordpress.com/2009/05/22/how-to-copy-file-from-local-machine-to-remote-server-in-linux/#comments</comments>
		<pubDate>Fri, 22 May 2009 14:02:33 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=61</guid>
		<description><![CDATA[scp fileName userName@remoteServerIP:remoteServerFolderPath Example : &#62;scp abc.txt root@XXX.XXX.XXX.XXX:/home/xyzFolder/ once you type this command, system will ask for the remote server login password.once password is verified , file get copied to remote server.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=61&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> scp fileName userName@remoteServerIP:remoteServerFolderPath</p>
<p>Example :<br />
&gt;scp abc.txt root@XXX.XXX.XXX.XXX:/home/xyzFolder/</p>
<p>once you type this command, system will ask for the remote server login password.once password is verified , file get copied to remote server.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=61&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/05/22/how-to-copy-file-from-local-machine-to-remote-server-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
		<item>
		<title>check whether any of the checkbox are checked or not</title>
		<link>http://vinodkram.wordpress.com/2009/05/04/check-whether-all-the-checkbox-are-checked-or-not/</link>
		<comments>http://vinodkram.wordpress.com/2009/05/04/check-whether-all-the-checkbox-are-checked-or-not/#comments</comments>
		<pubDate>Mon, 04 May 2009 12:14:39 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=58</guid>
		<description><![CDATA[function isChecked(url) { f=document.frmName var checkFound = false; for (var counter=0; counter &#60; f.length; counter++) { if ((f.elements[counter].name == &#8216;checkBoxId[]&#8216;) &#38;&#38; (f.elements[counter].checked == true)) { checkFound = true; } } if (checkFound != true) { alert(&#8216;Please check at least one checkbox.&#8217;); return false; } else { //do something } }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=58&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>function isChecked(url)<br />
	{<br />
		f=document.frmName<br />
		var checkFound = false;<br />
		for (var counter=0; counter &lt; f.length; counter++)<br />
		{<br />
			if ((f.elements[counter].name == &#8216;checkBoxId[]&#8216;) &amp;&amp; (f.elements[counter].checked == true))<br />
			{<br />
				checkFound = true;<br />
			}<br />
		}<br />
		if (checkFound != true)<br />
		{<br />
			alert(&#8216;Please check at least one checkbox.&#8217;);<br />
			return false;<br />
		}<br />
		else<br />
		{<br />
					//do something<br />
		}</p>
<p>	}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=58&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/05/04/check-whether-all-the-checkbox-are-checked-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
		<item>
		<title>Check or uncheck multiple checkbox at a time in javascript</title>
		<link>http://vinodkram.wordpress.com/2009/05/04/check-or-uncheck-multiple-checkbox-at-a-time-in-javascript/</link>
		<comments>http://vinodkram.wordpress.com/2009/05/04/check-or-uncheck-multiple-checkbox-at-a-time-in-javascript/#comments</comments>
		<pubDate>Mon, 04 May 2009 12:10:02 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=56</guid>
		<description><![CDATA[function checkUncheckAllCheckbox() { f=document.frmName if(f.mainCheckBox.checked) { f.checkBoxName.checked=true; for(i=0;i&#60;f.checkBoxName.length;i++) f.checkBoxName[i].checked=true; } else if(!f.mainCheckBox.checked) { f.checkBoxName.checked=false; for(i=0;i&#60;f.checkBoxName.length;i++) f.checkBoxName[i].checked=false; } }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=56&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>function checkUncheckAllCheckbox()<br />
{<br />
    f=document.frmName<br />
   if(f.mainCheckBox.checked)<br />
  {<br />
        f.checkBoxName.checked=true;<br />
        for(i=0;i&lt;f.checkBoxName.length;i++)<br />
            f.checkBoxName[i].checked=true;<br />
  }<br />
  else if(!f.mainCheckBox.checked)<br />
 {<br />
        f.checkBoxName.checked=false;<br />
        for(i=0;i&lt;f.checkBoxName.length;i++)<br />
        f.checkBoxName[i].checked=false;<br />
 }<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=56&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/05/04/check-or-uncheck-multiple-checkbox-at-a-time-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
		<item>
		<title>How to add or condition in mysql query in symfony</title>
		<link>http://vinodkram.wordpress.com/2009/04/25/how-to-add-or-condition-in-mysql-query-in-symfony/</link>
		<comments>http://vinodkram.wordpress.com/2009/04/25/how-to-add-or-condition-in-mysql-query-in-symfony/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 05:46:37 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/2009/04/25/how-to-add-or-condition-in-mysql-query-in-symfony/</guid>
		<description><![CDATA[$c-&#62;add(TblUsersPeer::USR_TYPE,array(2,3,6),Criteria::IN); $c1 = $c-&#62;getNewCriterion(TblUsersPeer::USR_PARENTID,$this-&#62;getUser()-&#62;getAttribute(&#8216;userid&#8217;),Criteria::EQUAL); $c2 = $c-&#62;getNewCriterion(TblUsersPeer::USR_PARENTID,null, Criteria::ISNULL); $c1-&#62;addOr($c2); $c-&#62;add($c1);<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=54&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>$c-&gt;add(TblUsersPeer::USR_TYPE,array(2,3,6),Criteria::IN);<br />
			$c1 = $c-&gt;getNewCriterion(TblUsersPeer::USR_PARENTID,$this-&gt;getUser()-&gt;getAttribute(&#8216;userid&#8217;),Criteria::EQUAL);<br />
			$c2 = $c-&gt;getNewCriterion(TblUsersPeer::USR_PARENTID,null, Criteria::ISNULL);<br />
			$c1-&gt;addOr($c2);<br />
 	        	$c-&gt;add($c1);</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=54&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/04/25/how-to-add-or-condition-in-mysql-query-in-symfony/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
		<item>
		<title>How to configure the symfony project directory</title>
		<link>http://vinodkram.wordpress.com/2009/04/22/how-to-configure-the-symfony-project-directory/</link>
		<comments>http://vinodkram.wordpress.com/2009/04/22/how-to-configure-the-symfony-project-directory/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 07:27:48 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=50</guid>
		<description><![CDATA[Your symfony project derectory is &#8220;/var/www/html/sf_sandbox&#8221; so in the browser you can acess this by this URL : &#8220;http://localhost/sf_sandbox/web/frontend.php/&#8221; So if you want to map the symfony project directoy to your web root directory ie i mean to say you just want to acess it my using the URL :&#8221;http://localhost/&#8221; then you have to add [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=50&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Your symfony project derectory is &#8220;/var/www/html/sf_sandbox&#8221; so in the browser you can acess this by this URL : &#8220;http://localhost/sf_sandbox/web/frontend.php/&#8221;</p>
<p>So if you want to map the symfony project directoy to your web root directory ie i mean to say you just want to acess it my using the URL :&#8221;http://localhost/&#8221; then you have to add the below line in the httpd.conf file and then restart your apache server.After that you can directly acess the symfony project from localhost url.</p>
<p>&lt;VirtualHost *:80&gt;<br />
ServerName http://localhost/<br />
DocumentRoot &#8220;/var/www/html/sf_sandbox/web&#8221;<br />
DirectoryIndex index.php<br />
&lt;Directory &#8220;/var/www/html/sf_sandbox/web&#8221;&gt;<br />
AllowOverride All<br />
Allow from All<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
<p>Rest of the things will be handled by symfony itself.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=50&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/04/22/how-to-configure-the-symfony-project-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
		<item>
		<title>How to redirect domain to other directory on the same domain</title>
		<link>http://vinodkram.wordpress.com/2009/04/17/how-to-redirect-domain-to-other-directory-on-the-same-domain/</link>
		<comments>http://vinodkram.wordpress.com/2009/04/17/how-to-redirect-domain-to-other-directory-on-the-same-domain/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 07:00:44 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[rewrite rule]]></category>
		<category><![CDATA[URL rewrite rule]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=45</guid>
		<description><![CDATA[Open the .htaccess file of your root directory of your project and add the following line. RewriteEngine On RewriteCond %{HTTP_HOST} !^http://someDomainName.com [NC] RewriteCond %{HTTP_HOST} !^http://www.someDomainName.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteCond %{REQUEST_URI} !^/someOtherDirectory/ RewriteRule ^(.*)$ /someOtherDirectory/$1 Then restart your apache Usage : Suppose your project is placed in some other directory other than the default web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=45&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>Open the .htaccess file of your root directory
of your project and add the following line.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^http://someDomainName.com [NC]
RewriteCond %{HTTP_HOST} !^http://www.someDomainName.com [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteCond %{REQUEST_URI} !^/someOtherDirectory/
RewriteRule ^(.*)$ /someOtherDirectory/$1 

Then restart your apache

Usage :
Suppose your project is placed in some other directory
other than the default web directory then you can redirect
your request to that directory for example

Your actual project URL is
"http://someDomaiName/someDirectory/fileName"
and you want that your URL should resemble like
"http://someDomaiName/fileName"
then the above .htaccess rule will do the same.</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=45&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/04/17/how-to-redirect-domain-to-other-directory-on-the-same-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
		<item>
		<title>integrate window media player in your website</title>
		<link>http://vinodkram.wordpress.com/2009/02/04/integrate-window-media-player-in-your-website/</link>
		<comments>http://vinodkram.wordpress.com/2009/02/04/integrate-window-media-player-in-your-website/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 10:31:32 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/2009/02/04/integrate-window-media-player-in-your-website/</guid>
		<description><![CDATA[&#60;html&#62; &#60;head&#62;&#60;/head&#62; &#60;body leftmargin=&#8221;0&#8243; topmargin=&#8221;0&#8243;&#62; &#60;table cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; border=&#8221;0&#8243;&#62; &#60;tr height=&#8221;350&#8243;&#62;&#60;td align=&#8221;center&#8221;&#62; &#60;table cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; border=1 bordercolor=&#8221;black&#8221;&#62; &#60;tr&#62; &#60;td valign=&#8221;top&#8221;&#62; &#60;OBJECT ID=&#8221;MediaPlayer&#8221; WIDTH=&#8221;320&#8243; HEIGHT=&#8221;290&#8243; CLASSID=&#8221;CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95&#8243; STANDBY=&#8221;Loading Windows Media Player components&#8230;&#8221; TYPE=&#8221;application/x-oleobject&#8221;&#62; &#60;PARAM NAME=&#8221;URL&#8221; VALUE=&#8217;http://localhost/vinod/meeting_with_the_boss.wmv&#8217; /&#62; &#60;param name=&#8221;AudioStream&#8221; value=&#8221;0&#8243; /&#62; &#60;param name=&#8221;AutoSize&#8221; value=&#8221;1&#8243; /&#62; &#60;param name=&#8221;AutoStart&#8221; value=&#8221;-1&#8243; /&#62; &#60;param name=&#8221;AnimationAtStart&#8221; value=&#8221;1&#8243; /&#62; &#60;param name=&#8221;AllowScan&#8221; value=&#8221;-1&#8243; /&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=44&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&lt;html&gt;</p>
<p>&lt;head&gt;&lt;/head&gt;<br />
&lt;body leftmargin=&#8221;0&#8243; topmargin=&#8221;0&#8243;&gt;<br />
&lt;table cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; border=&#8221;0&#8243;&gt;<br />
&lt;tr height=&#8221;350&#8243;&gt;&lt;td align=&#8221;center&#8221;&gt;<br />
&lt;table cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; border=1 bordercolor=&#8221;black&#8221;&gt;<br />
&lt;tr&gt;<br />
&lt;td valign=&#8221;top&#8221;&gt;<br />
&lt;OBJECT ID=&#8221;MediaPlayer&#8221; WIDTH=&#8221;320&#8243; HEIGHT=&#8221;290&#8243; CLASSID=&#8221;CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95&#8243; STANDBY=&#8221;Loading Windows Media Player components&#8230;&#8221; TYPE=&#8221;application/x-oleobject&#8221;&gt;<br />
&lt;PARAM NAME=&#8221;URL&#8221; VALUE=&#8217;http://localhost/vinod/meeting_with_the_boss.wmv&#8217; /&gt;<br />
&lt;param name=&#8221;AudioStream&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;AutoSize&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;AutoStart&#8221; value=&#8221;-1&#8243; /&gt;<br />
&lt;param name=&#8221;AnimationAtStart&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;AllowScan&#8221; value=&#8221;-1&#8243; /&gt;<br />
&lt;param name=&#8221;AllowChangeDisplaySize&#8221; value=&#8221;-1&#8243; /&gt;<br />
&lt;param name=&#8221;AutoRewind&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;Balance&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;BufferingTime&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;ClickToPlay&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;CursorType&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;CurrentPosition&#8221; value=&#8221;-1&#8243; /&gt;<br />
&lt;param name=&#8221;CurrentMarker&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;DisplayBackColor&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;DisplayForeColor&#8221; value=&#8221;16777215&#8243; /&gt;<br />
&lt;param name=&#8221;DisplayMode&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;DisplaySize&#8221; value=&#8221;4&#8243; /&gt;<br />
&lt;param name=&#8221;Enabled&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;EnableContextMenu&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;EnableFullScreenControls&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;EnableTracker&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;Filename&#8221; VALUE=&#8217;http://localhost/vinod/meeting_with_the_boss.wmv&#8217;&gt;&lt;param name=&#8221;Mute&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;PlayCount&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;PreviewMode&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;SelectionStart&#8221; value=&#8221;-1&#8243; /&gt;<br />
&lt;param name=&#8221;SelectionEnd&#8221; value=&#8221;-1&#8243; /&gt;<br />
&lt;param name=&#8221;SendKeyboardEvents&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;SendMouseClickEvents&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;SendMouseMoveEvents&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;SendPlayStateChangeEvents&#8221; value=&#8221;-1&#8243; /&gt;<br />
&lt;param name=&#8221;ShowCaptioning&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;ShowAudioControls&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;ShowDisplay&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;ShowGotoBar&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;ShowPositionControls&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;ShowTracker&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;param name=&#8221;VideoBorderWidth&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;VideoBorderColor&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;VideoBorder3D&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;Volume&#8221; value=&#8221;-1&#8243; /&gt;<br />
&lt;param name=&#8221;WindowlessVideo&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;param name=&#8221;ShowStatusBar&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;PARAM name=&#8221;ShowControls&#8221; VALUE=&#8221;1&#8243; /&gt;<br />
&lt;PARAM name=&#8221;ShowControls&#8221; VALUE=&#8221;true&#8221; /&gt;<br />
&lt;param name=&#8221;ShowStatusBar&#8221; value=&#8221;true&#8221; /&gt;<br />
&lt;PARAM name=&#8221;ShowDisplay&#8221; VALUE=&#8221;false&#8221; /&gt;<br />
&lt;EMBED TYPE=&#8221;application/x-mplayer2&#8243; SRC=&#8217;http://localhost/vinod/meeting_with_the_boss.wmv&#8217; NAME=&#8221;MediaPlayer&#8221; WIDTH=&#8221;320&#8243; HEIGHT=&#8221;290&#8243; ShowControls=&#8221;1&#8243; ShowStatusBar=&#8221;1&#8243; ShowDisplay=&#8221;0&#8243; autostart=&#8221;1&#8243;&gt; &lt;/EMBED&gt;&lt;/OBJECT&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=44&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/02/04/integrate-window-media-player-in-your-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
		<item>
		<title>Calculate no of years,month,days,hours,minutes and seconds past since given date</title>
		<link>http://vinodkram.wordpress.com/2009/01/10/calculate-no-of-yearsmonthdayshoursminutes-and-seconds-past-since-given-date/</link>
		<comments>http://vinodkram.wordpress.com/2009/01/10/calculate-no-of-yearsmonthdayshoursminutes-and-seconds-past-since-given-date/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 19:59:54 +0000</pubDate>
		<dc:creator>vinodkram</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[date]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=41</guid>
		<description><![CDATA[public function getYMDHMSPastFromTime($timestamp) { $years = &#8221;; $Month = &#8221;; $Days = &#8221;; $Hrs = &#8221;; $Mins = &#8221;; $totalSecs = &#8221;; $timePastArr = array(); $date1 = time(); $date2 = $timestamp; $dateDiff = $date1 &#8211; $date2; $totalYears = $dateDiff/(365*24*60*60); $years = floor($totalYears); $timeRemaining = ($dateDiff &#8211; ($years*365*24*60*60)); $totalMonth = $timeRemaining/(30*24*60*60); $Month = floor($totalMonth); $timeRemaining = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=41&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>public function getYMDHMSPastFromTime($timestamp)<br />
{<br />
$years = &#8221;;<br />
$Month = &#8221;;<br />
$Days = &#8221;;<br />
$Hrs = &#8221;;<br />
$Mins = &#8221;;<br />
$totalSecs = &#8221;;<br />
$timePastArr = array();<br />
$date1 = time();<br />
$date2 = $timestamp;<br />
$dateDiff = $date1 &#8211; $date2;<br />
$totalYears = $dateDiff/(365*24*60*60);<br />
$years = floor($totalYears);<br />
$timeRemaining = ($dateDiff &#8211; ($years*365*24*60*60));<br />
$totalMonth = $timeRemaining/(30*24*60*60);<br />
$Month = floor($totalMonth);<br />
$timeRemaining = $timeRemaining &#8211; $Month*30*24*60*60;<br />
$totalDays = $timeRemaining/(24*60*60);<br />
$Days = floor($totalDays);<br />
$timeRemaining = $timeRemaining-$Days*60*60*24;<br />
$totalHrs = $timeRemaining/(60*60);<br />
$Hrs = floor($totalHrs);<br />
$timeRemaining = $timeRemaining-$Hrs*60*60;<br />
$totalMins = $timeRemaining/60;<br />
$Mins = floor($totalMins);<br />
$timeRemaining = $timeRemaining-$Mins*60;<br />
$totalSecs = floor($timeRemaining);</p>
<p>return  $timePastArr = array($years,$Month,$Days,$Hrs,$Mins,$totalSecs);</p>
<p>}</p>
<p>IMPLEMENTATION</p>
<p>Given Date :Suppose $userBirthDate =  2007-12-25 23:25:12;</p>
<p>Convert the date string to unixtampstamp</p>
<p>$tempDate = strtotime($userBirthDate);<br />
$daysPastArr = $userObj-&gt;getYMDHMSPastFromTime($tempDate);</p>
<p>OUTPUT :</p>
<p>print_r($daysPastArr);</p>
<pre>Array
(
    [0] =&gt; 1   &gt; Year
    [1] =&gt; 11  &gt; Month
    [2] =&gt; 12  &gt; Days
    [3] =&gt; 2   &gt; Hours
    [4] =&gt; 2   &gt; Mins
    [5] =&gt; 23  &gt; Seconds
)</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinodkram.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinodkram.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinodkram.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinodkram.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinodkram.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinodkram.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinodkram.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinodkram.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinodkram.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinodkram.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinodkram.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinodkram.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinodkram.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinodkram.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinodkram.wordpress.com&amp;blog=2430207&amp;post=41&amp;subd=vinodkram&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinodkram.wordpress.com/2009/01/10/calculate-no-of-yearsmonthdayshoursminutes-and-seconds-past-since-given-date/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/73f6de35332ddb5e5e32e02e99ecffd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinod</media:title>
		</media:content>
	</item>
	</channel>
</rss>
