<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4070060750772584121</id><updated>2011-11-03T23:33:40.290-07:00</updated><category term='PHP - String Funcitons'/><category term='PHP Types of methods'/><category term='PHP - Loops'/><category term='PHP - Array Functions'/><category term='PHP - XML DOM Document'/><category term='.htaccess tutorial'/><category term='PHP - Interview Questions'/><category term='Reason for virus attack'/><category term='PHP Filesystems'/><category term='MySql Tutorial Mysql Example'/><category term='PHP - Header files'/><title type='text'>PHP Interview questions, PHP Examples, Mysql Examples</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-3474021503451724713</id><published>2009-03-02T22:53:00.000-08:00</published><updated>2009-03-02T23:35:22.430-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reason for virus attack'/><title type='text'>What is the reason for virus attack in the site?</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold;"&gt;Reason for virus attack&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;---------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nowadays most of the sites are attacked by the virus which result to be the terrible cause for the owners. By means of E-commerce site and shopping cart site it will result in huge loss to the owners. So, most of the people would be thinking that what might be the reason for the virus attack. There might be some of the reasons for the virus attack below are some of the points specified for the cause of the virus attack. Check your site whether it escapes from these sequence.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;Is there any open source is added in your site?&lt;/li&gt;&lt;li&gt;Is comment posting is enabled in your site?&lt;/li&gt;&lt;li&gt;Is there any iframe in your site?&lt;/li&gt;&lt;li&gt;Is there any third party site link is in your site?&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;If you have any one of the above said points please review the remedy for it.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;If your site have included the open source then disable it.&lt;/li&gt;&lt;li&gt;Is there any option for comment posting, disable it&lt;/li&gt;&lt;li&gt;If you are using the iframe then remove it.&lt;/li&gt;&lt;li&gt;If any third party links are added in your site remove it. Because that third party site might be spreading the virus in your site. So be cautious while adding the third party link to your site.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-3474021503451724713?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/3474021503451724713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=3474021503451724713&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3474021503451724713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3474021503451724713'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2009/03/what-is-reason-for-virus-attack-in-site.html' title='What is the reason for virus attack in the site?'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-859961962730655308</id><published>2008-11-14T22:41:00.001-08:00</published><updated>2008-11-14T22:41:34.852-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.htaccess tutorial'/><title type='text'>.htaccess tutorial</title><content type='html'>AuthUserFile /home/yourdomain/www/.htpasswd&lt;br /&gt;AuthType Basic&lt;br /&gt;AuthName "yourUsername"&lt;br /&gt;Require valid-user&lt;br /&gt;&lt;br /&gt;note: The password will be stored in .htpasswd file which is in root directory of the site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-859961962730655308?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/859961962730655308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=859961962730655308&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/859961962730655308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/859961962730655308'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/11/htaccess-tutorial.html' title='.htaccess tutorial'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-1047348546843229979</id><published>2008-09-13T13:03:00.000-07:00</published><updated>2008-09-13T13:07:50.694-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - XML DOM Document'/><title type='text'>PHP XML foreach loop</title><content type='html'>&amp;lt;?php&lt;br /&gt;$xmlDoc = new DOMDocument();&lt;br /&gt;$xmlDoc-&gt;load("checkbox array.xml");&lt;br /&gt;&lt;br /&gt;$x = $xmlDoc-&gt;documentElement;&lt;br /&gt;foreach ($x-&gt;childNodes AS $item)&lt;br /&gt;  {&lt;br /&gt;  echo $item-&gt;nodeName . " = " . $item-&gt;nodeValue . "&lt;br /&gt;";&lt;br /&gt;  }&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-1047348546843229979?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/1047348546843229979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=1047348546843229979&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/1047348546843229979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/1047348546843229979'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/09/php-xml-foreach-loop.html' title='PHP XML foreach loop'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-5632727125342998633</id><published>2008-09-13T12:57:00.000-07:00</published><updated>2008-09-13T13:00:14.581-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - XML DOM Document'/><title type='text'>Load XML and Save XML - PHP</title><content type='html'>&amp;lt;?php&lt;br /&gt;$xmlDom = new DOMDocument();&lt;br /&gt;$xmlDom-&gt;load("enthiran.xml");&lt;br /&gt;&lt;br /&gt;print $xmlDom-&gt;saveXML();&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-5632727125342998633?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/5632727125342998633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=5632727125342998633&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/5632727125342998633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/5632727125342998633'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/09/load-xml-and-save-xml-php.html' title='Load XML and Save XML - PHP'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-7777611843431515856</id><published>2008-09-04T15:56:00.000-07:00</published><updated>2008-09-04T15:57:19.210-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Array Functions'/><title type='text'>PHP array shift</title><content type='html'>&amp;lt;?php&lt;br /&gt;$stack = array("ajax", "php", "javascript", "mysql");&lt;br /&gt;$fruit = array_shift($stack);&lt;br /&gt;print_r($stack); // first value of the array off&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-7777611843431515856?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/7777611843431515856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=7777611843431515856&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7777611843431515856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7777611843431515856'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/09/php-array-shift.html' title='PHP array shift'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-8263756353875613605</id><published>2008-09-04T15:46:00.000-07:00</published><updated>2008-09-04T15:53:14.952-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Array Functions'/><title type='text'>PHP array difference</title><content type='html'>&amp;lt;?php    &lt;br /&gt;$array1 = array("a" =&gt; "php", "string", "array", "PHP");   &lt;br /&gt;$array2 = array("b" =&gt; "php", "PHP", "string");    &lt;br /&gt;$result = array_diff($array1, $array2);   &lt;br /&gt;print_r($result);&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-8263756353875613605?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/8263756353875613605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=8263756353875613605&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/8263756353875613605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/8263756353875613605'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/09/php-array-difference.html' title='PHP array difference'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-482017235896797182</id><published>2008-08-30T15:23:00.000-07:00</published><updated>2008-08-30T15:26:41.708-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql Tutorial Mysql Example'/><title type='text'>Export datas to mysql tables</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Export CSV datas to mysql tables&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;LOAD DATA INFILE 'data.csv' INTO TABLE tbl_name&lt;br /&gt; FIELDS TERMINATED BY ',' ENCLOSED BY '"'&lt;br /&gt; LINES TERMINATED BY '\n';&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Export Excel sheet datas to mysql tables&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;LOAD DATA INFILE 'data.csv' INTO TABLE tbl_name&lt;br /&gt; FIELDS TERMINATED BY ',' ENCLOSED BY '"'&lt;br /&gt; LINES TERMINATED BY '\n';&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Export XML spread sheet datas to mysql tables&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;LOAD DATA INFILE 'data.csv' INTO TABLE tbl_name&lt;br /&gt; FIELDS TERMINATED BY ',' ENCLOSED BY '"'&lt;br /&gt; LINES TERMINATED BY '\n';&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-482017235896797182?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/482017235896797182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=482017235896797182&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/482017235896797182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/482017235896797182'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/08/export-datas-to-mysql-tables.html' title='Export datas to mysql tables'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-7504107860316572118</id><published>2008-08-30T15:19:00.000-07:00</published><updated>2008-08-30T15:22:27.642-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql Tutorial Mysql Example'/><title type='text'>Load Data Infile Syntax</title><content type='html'>&lt;pre class="programlisting"&gt;LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE '&lt;em class="replaceable"&gt;&lt;code&gt;file_name&lt;/code&gt;&lt;/em&gt;'&lt;br /&gt;   [REPLACE | IGNORE]&lt;br /&gt;   INTO TABLE &lt;em class="replaceable"&gt;&lt;code&gt;tbl_name&lt;/code&gt;&lt;/em&gt;&lt;br /&gt;   [CHARACTER SET &lt;em class="replaceable"&gt;&lt;code&gt;charset_name&lt;/code&gt;&lt;/em&gt;]&lt;br /&gt;   [{FIELDS | COLUMNS}&lt;br /&gt;       [TERMINATED BY '&lt;em class="replaceable"&gt;&lt;code&gt;string&lt;/code&gt;&lt;/em&gt;']&lt;br /&gt;       [[OPTIONALLY] ENCLOSED BY '&lt;em class="replaceable"&gt;&lt;code&gt;char&lt;/code&gt;&lt;/em&gt;']&lt;br /&gt;       [ESCAPED BY '&lt;em class="replaceable"&gt;&lt;code&gt;char&lt;/code&gt;&lt;/em&gt;']&lt;br /&gt;   ]&lt;br /&gt;   [LINES&lt;br /&gt;       [STARTING BY '&lt;em class="replaceable"&gt;&lt;code&gt;string&lt;/code&gt;&lt;/em&gt;']&lt;br /&gt;       [TERMINATED BY '&lt;em class="replaceable"&gt;&lt;code&gt;string&lt;/code&gt;&lt;/em&gt;']&lt;br /&gt;   ]&lt;br /&gt;   [IGNORE &lt;em class="replaceable"&gt;&lt;code&gt;number&lt;/code&gt;&lt;/em&gt; LINES]&lt;br /&gt;   [(&lt;em class="replaceable"&gt;&lt;code&gt;col_name_or_user_var&lt;/code&gt;&lt;/em&gt;,...)]&lt;br /&gt;   [SET &lt;em class="replaceable"&gt;&lt;code&gt;col_name&lt;/code&gt;&lt;/em&gt; = &lt;em class="replaceable"&gt;&lt;code&gt;expr&lt;/code&gt;&lt;/em&gt;,...]&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-7504107860316572118?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/7504107860316572118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=7504107860316572118&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7504107860316572118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7504107860316572118'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/08/load-data-infile-syntax.html' title='Load Data Infile Syntax'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-6558703531285337256</id><published>2008-08-20T13:48:00.000-07:00</published><updated>2008-08-20T14:05:45.146-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Array Functions'/><title type='text'>PHP checkbox array checked</title><content type='html'>&amp;lt;form action="checkbox_array_checked.php" method="post"&amp;gt;&lt;br /&gt;&amp;lt;input  type="checkbox"  name="check[]"  value="sakkarakati" &amp;lt;? if (in_array('sakkarakati', $_POST['check'])) { ?&amp;gt; checked="checked" &amp;lt;? }?&amp;gt;/&amp;gt;  Sakkarakati&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;input type="checkbox" name="check[]" value="kuselan" &amp;lt;? if (in_array('kuselan', $_POST['check'])) { ?&amp;gt; checked="checked"&amp;lt;? }?&amp;gt; /&amp;gt; Kuselan&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;input type="checkbox" name="check[]" value="villu" &amp;lt;? if (in_array('villu', $_POST['check'])) { ?&amp;gt; checked="checked"&amp;lt;? }?&amp;gt; /&amp;gt; Villu&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-6558703531285337256?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/6558703531285337256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=6558703531285337256&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/6558703531285337256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/6558703531285337256'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/08/php-checkbox-array-checked.html' title='PHP checkbox array checked'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-1188928030203186252</id><published>2008-08-09T15:23:00.001-07:00</published><updated>2008-08-09T15:23:43.990-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Header files'/><title type='text'>PHP file download using header functions</title><content type='html'>header("Cache-Control: public");&lt;br /&gt;header("Content-Description: File Transfer");&lt;br /&gt;header('Content-disposition: attachment; filename='.basename($filename));&lt;br /&gt;header("Content-Type: application/pdf");&lt;br /&gt;header("Content-Transfer-Encoding: binary");&lt;br /&gt;header('Content-Length: '. filesize($filename));&lt;br /&gt;readfile($filename);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-1188928030203186252?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/1188928030203186252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=1188928030203186252&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/1188928030203186252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/1188928030203186252'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/08/php-file-download-using-header.html' title='PHP file download using header functions'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-3744472060478907022</id><published>2008-08-09T15:19:00.000-07:00</published><updated>2008-08-09T15:22:54.783-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Header files'/><title type='text'>PHP header file types</title><content type='html'>header('Content-type: application/pdf');&lt;br /&gt;header('Location: http://ashokseenivas.blogspot.com/');&lt;br /&gt;header("HTTP/1.0 404 Not Found");&lt;br /&gt;header("Cache-Control: no-cache, must-revalidate");&lt;br /&gt;header("Expires: Sun, 10 Aug 2008 05:00:00 GMT");&lt;br /&gt;header('Content-type: text/xml');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-3744472060478907022?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/3744472060478907022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=3744472060478907022&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3744472060478907022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3744472060478907022'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/08/php-header-file-types.html' title='PHP header file types'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-931702983684206785</id><published>2008-08-04T16:43:00.000-07:00</published><updated>2008-08-04T16:47:33.198-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Filesystems'/><title type='text'>PHP Filesystem - fopen, fread, fputs or fwrite, filesize</title><content type='html'>&amp;lt;?&lt;br /&gt;if (isset($_POST['Submit']))&lt;br /&gt;{&lt;br /&gt;       $file = '\rajini-kuselan.php';&lt;br /&gt;       $filecontent = $_POST['filecontent'];&lt;br /&gt;       if ($fp = fopen ($file, 'w'))&lt;br /&gt;       {&lt;br /&gt;           fputs( $fp, stripslashes( $filecontent ) );&lt;br /&gt;           fclose( $fp );&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;       $file = '\rajini-kuselan.php';&lt;br /&gt;       $fp = fopen( $file, 'r' );&lt;br /&gt;       $content = fread( $fp, filesize( $file ) );&lt;br /&gt;       $content = htmlspecialchars( $content );&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;form name="kuselan.php" method="post"&amp;gt;&lt;br /&gt;&amp;lt;textarea style="width:100%;height:500px" cols="110" rows="25" name="filecontent"&amp;gt;&amp;lt;? echo $content;?&amp;gt;&amp;lt;/textarea&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" name="Submit" value="Submit" /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-931702983684206785?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/931702983684206785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=931702983684206785&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/931702983684206785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/931702983684206785'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/08/php-filesystem-fopen-fread-fputs-or.html' title='PHP Filesystem - fopen, fread, fputs or fwrite, filesize'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-1838042392913770794</id><published>2008-07-26T12:26:00.000-07:00</published><updated>2008-07-26T12:28:22.013-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Filesystems'/><title type='text'>PHP Filesystems - fgets, feof, fclose</title><content type='html'>&amp;lt;?&lt;br /&gt;$phpfilesystem = fopen("php latest technologies.txt", "r");//read only&lt;br /&gt;&lt;br /&gt;if ($phpfilesystem) {&lt;br /&gt;   while (!feof($phpfilesystem)) {&lt;br /&gt;       $buffer = fgets($phpfilesystem, 4096);&lt;br /&gt;       echo $buffer;&lt;br /&gt;   }&lt;br /&gt;   fclose($phpfilesystem);&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-1838042392913770794?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/1838042392913770794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=1838042392913770794&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/1838042392913770794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/1838042392913770794'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/07/php-filesystems-fgets-feof-fclose.html' title='PHP Filesystems - fgets, feof, fclose'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-4323324381147226594</id><published>2008-07-26T12:20:00.000-07:00</published><updated>2008-07-26T12:23:34.414-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Filesystems'/><title type='text'>PHP Filesystem - fopen</title><content type='html'>&amp;lt;?&lt;br /&gt;$phpfilesystem = fopen("kuselan movie.txt", "r");  //read only&lt;br /&gt;$phpfiles = fopen("rajini robo.txt", "w");  //write only file pointer at beginning&lt;br /&gt;$phpexamples = fopen("rajini robo.txt", "a");  //write only file pointer at end&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-4323324381147226594?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/4323324381147226594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=4323324381147226594&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/4323324381147226594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/4323324381147226594'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/07/php-filesystem-fopen.html' title='PHP Filesystem - fopen'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-3826965225426575654</id><published>2008-07-17T16:11:00.000-07:00</published><updated>2008-07-17T16:13:25.855-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Loops'/><title type='text'>PHP - WHILE LOOP</title><content type='html'>&lt;pre class="code"&gt;$counter = 1;&lt;br /&gt;while ( $counter &lt;= 10 ) {&lt;br /&gt;echo "Hello world";&lt;br /&gt;$counter = $counter + 1;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-3826965225426575654?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/3826965225426575654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=3826965225426575654&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3826965225426575654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3826965225426575654'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/07/php-while-loop.html' title='PHP - WHILE LOOP'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-3264711559076981128</id><published>2008-07-17T16:03:00.000-07:00</published><updated>2008-07-17T16:06:50.292-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Loops'/><title type='text'>PHP - FOR LOOP</title><content type='html'>for ( $counter = 0; $counter &lt;= 10; $counter += 1) {     &lt;br /&gt;echo "Hello world";&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-3264711559076981128?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/3264711559076981128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=3264711559076981128&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3264711559076981128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3264711559076981128'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/07/php-for-loop.html' title='PHP - FOR LOOP'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-7703261384909811654</id><published>2008-07-15T12:37:00.000-07:00</published><updated>2008-07-15T12:39:36.540-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Array Functions'/><title type='text'>PHP Radio button array example</title><content type='html'>HTML Code:&lt;br /&gt;1 &amp;lt;input type="radio" name="Seenivasagaperumal" value="1"/&amp;gt;&lt;br /&gt;2 &amp;lt;input type="radio" name="Seenivasagaperumal" value="2"/&amp;gt;&lt;br /&gt;3 &amp;lt;input type="radio" name="Seenivasagaperumal" value="3"/&amp;gt;&lt;br /&gt;4 &amp;lt;input type="radio" name="Seenivasagaperumal" value="4"/&amp;gt;&lt;br /&gt;&lt;br /&gt;PHP code:&lt;br /&gt;if(isset($_POST['Submit'])){&lt;br /&gt; $eric = $_POST['Seenivasagaperumal'];&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-7703261384909811654?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/7703261384909811654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=7703261384909811654&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7703261384909811654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7703261384909811654'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/07/php-radio-button-array-example.html' title='PHP Radio button array example'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-7355445793473603744</id><published>2008-07-03T16:33:00.000-07:00</published><updated>2008-07-03T16:36:33.797-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Array Functions'/><title type='text'>PHP array selected item delete</title><content type='html'>&amp;lt;?&lt;br /&gt;$tagCollection = array("AJAX", "Analytics", "CSS", "Javascript", "JoshSchumacher.com", "PHP", "Prototype", "Web 2.0");&lt;br /&gt;function strMatch($val)&lt;br /&gt;{&lt;br /&gt; $query = isset($_REQUEST['sel']) ? $_REQUEST['sel'] : '';&lt;br /&gt; return (stripos($val, $query) !== false);&lt;br /&gt;}&lt;br /&gt;$tags = array_filter($tagCollection, "strMatch");&lt;br /&gt;$key = key($tags);&lt;br /&gt;unset($tagCollection[$key]);&lt;br /&gt;print_r($tagCollection);&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-7355445793473603744?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/7355445793473603744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=7355445793473603744&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7355445793473603744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7355445793473603744'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/07/php-array-selected-item-delete.html' title='PHP array selected item delete'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-92651044366373449</id><published>2008-06-30T16:34:00.000-07:00</published><updated>2008-06-30T16:37:20.031-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySql Tutorial Mysql Example'/><title type='text'>MySql Connect</title><content type='html'>$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');&lt;br /&gt;if (!$link) {&lt;br /&gt;  die('Could not connect: ' . mysql_error());&lt;br /&gt;}&lt;br /&gt;echo 'Connected successfully';&lt;br /&gt;mysql_close($link);&lt;br /&gt;&lt;br /&gt;mysql_close($link);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-92651044366373449?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/92651044366373449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=92651044366373449&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/92651044366373449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/92651044366373449'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/06/mysql-connect.html' title='MySql Connect'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-3884285281296969343</id><published>2008-06-28T16:20:00.000-07:00</published><updated>2008-06-28T16:21:26.669-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Interview Questions'/><title type='text'>Bulk email sending using sleep function</title><content type='html'>&lt;pre&gt;$between_delay = 10;&lt;br /&gt;$send_delay = 1;&lt;br /&gt;&lt;br /&gt;for ( $sent=0; $row = mysql_fetch_array($result); $sent++ ) {&lt;br /&gt;&lt;br /&gt;if ( ($sent % $between_delay) == 0 )&lt;br /&gt;  sleep( $send_delay );&lt;br /&gt;&lt;br /&gt;$emailall = $row[0];&lt;br /&gt;$message = stripslashes($message);&lt;br /&gt;mail("$emailall", "$subject", "$message", "From: $email");&lt;br /&gt;} &lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-3884285281296969343?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/3884285281296969343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=3884285281296969343&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3884285281296969343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3884285281296969343'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/06/bulk-email-sending-using-sleep-function.html' title='Bulk email sending using sleep function'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-3132314500766701615</id><published>2008-06-27T14:46:00.000-07:00</published><updated>2008-06-27T14:55:02.880-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Types of methods'/><title type='text'>PHP Get and Post method Example</title><content type='html'>&amp;lt;form action="php manual.php" method="post"&amp;gt;&lt;br /&gt;Enter your name: &amp;lt;input name="name" type="text"&amp;gt;&lt;br /&gt;Enter your age: &amp;lt;input name="age" type="text"&amp;gt;&lt;br /&gt;&amp;lt;input type="submit"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php echo $_POST["name"]; ?&amp;gt;&lt;br /&gt;&amp;lt;?php echo $_POST["age"]; ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;form action="php tutorial.php" method="get"&amp;gt;&lt;br /&gt;Name: &amp;lt;input type="text" name="name" /&amp;gt;&lt;br /&gt;Age: &amp;lt;input type="text" name="age" /&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php echo $_GET["name"]; ?&amp;gt;&lt;br /&gt;&amp;lt;?php echo $_GET["age"]; ?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-3132314500766701615?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/3132314500766701615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=3132314500766701615&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3132314500766701615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/3132314500766701615'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/06/php-get-and-post-method-example.html' title='PHP Get and Post method Example'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-6077888995294061287</id><published>2008-06-26T13:03:00.000-07:00</published><updated>2008-06-26T13:04:00.999-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - String Funcitons'/><title type='text'>PHP String Functions Part II</title><content type='html'>$str = "My name is O\'Billa?";&lt;br /&gt;echo stripslashes($str);// Outputs: My name is O'Billa?&lt;br /&gt;&lt;br /&gt;$str = "My name is O'Billa?";&lt;br /&gt;echo stripslashes($str);// Outputs: My name is O\'Billa?&lt;br /&gt;&lt;br /&gt;$str = "Vijay's next film Villu";&lt;br /&gt;$str = strtoupper($str);&lt;br /&gt;echo $str; // Prints VIJAY'S NEXT FILM VILLU&lt;br /&gt;&lt;br /&gt;$str = "AJITH'S NEXT FILM AEGAN";&lt;br /&gt;$str = strtoupper($str);&lt;br /&gt;echo $str; // Prints ajith's next film aegan&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-6077888995294061287?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/6077888995294061287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=6077888995294061287&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/6077888995294061287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/6077888995294061287'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/06/php-string-functions-part-ii.html' title='PHP String Functions Part II'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-5717401199830983709</id><published>2008-06-25T12:40:00.000-07:00</published><updated>2008-06-25T12:56:18.518-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - String Funcitons'/><title type='text'>PHP String Funcitons</title><content type='html'>$txt="PHP MYSQL";&lt;br /&gt;echo $txt; // Returns PHP MYSQL (Print the text)&lt;br /&gt;&lt;br /&gt;echo strlen("My first coding in PHP"); // Returns 22 (Print the string length)&lt;br /&gt;&lt;br /&gt;echo strpos("Hello world","l"); // Returns 2 (Print the string position)&lt;br /&gt;&lt;br /&gt;$email  = 'ashokseenivas50@gmail.com';&lt;br /&gt;$domain = strstr($email, '@');&lt;br /&gt;echo $domain; // prints @gmail.com&lt;br /&gt;&lt;br /&gt;$user = strstr($email, '@', true);&lt;br /&gt;echo $user; // prints ashokseenivas50&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-5717401199830983709?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/5717401199830983709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=5717401199830983709&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/5717401199830983709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/5717401199830983709'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/06/php-string-funcitons.html' title='PHP String Funcitons'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-5759897984418141645</id><published>2008-06-18T15:39:00.000-07:00</published><updated>2008-06-25T12:57:53.060-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Array Functions'/><title type='text'>PHP Array Functions</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Array Merge&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$array1 = array("fruits" =&gt; "apple", 2, 4);&lt;br /&gt;$array2 = array("a", "b", "fruits" =&gt; "orange", "shape" =&gt; "rectangle", 4);&lt;br /&gt;$result = array_merge($array1, $array2);&lt;br /&gt;print_r($result);&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Array Combine&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;&lt;/span&gt;$a = array('a', 'b', 'c');&lt;br /&gt;$b = array('d', 'e', 'f');&lt;br /&gt;$c = array_combine($a, $b);&lt;br /&gt;print_r($c);&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Array Push&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;$stack = array("a", "b");&lt;br /&gt;array_push($stack, "c", "d");&lt;br /&gt;print_r($stack);&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Array Pop&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;$stack = array("a", "b", "c", "d");&lt;br /&gt;$fruit = array_pop($stack);&lt;br /&gt;print_r($stack);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-5759897984418141645?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/5759897984418141645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=5759897984418141645&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/5759897984418141645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/5759897984418141645'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/06/php-array-functions.html' title='PHP Array Functions'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-6270638675154965049</id><published>2008-06-12T14:24:00.000-07:00</published><updated>2008-11-14T14:48:53.649-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.htaccess tutorial'/><title type='text'>.htaccess tutorial</title><content type='html'>&lt;span style="font-weight: bold;"&gt;1) Password Protected Directory&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;AuthUserFile &lt;i&gt;/your/directory/here/.htpasswd&lt;/i&gt;&lt;br /&gt;              AuthGroupFile /dev/null&lt;br /&gt;              AuthName "Secure Document"&lt;br /&gt;              AuthType Basic&lt;br /&gt;             &lt;limit&gt;require user &lt;i&gt;username&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;2) Password Protectection for a file&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/limit&gt; &lt;filesmatch&gt;&lt;br /&gt;AuthName "Restricted File"&lt;br /&gt;AuthType Basic&lt;br /&gt;AuthUserFile /user/home/www/directory/.htpasswd&lt;br /&gt;require valid-user&lt;br /&gt;&lt;/filesmatch&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3) Protecting the file types&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;filesmatch&gt;&lt;br /&gt;AuthName "Restricted"&lt;br /&gt;AuthType Basic&lt;br /&gt;AuthUserFile /user/home/www/directory/.htpasswd&lt;br /&gt;require valid-user&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4) Error Documents&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/filesmatch&gt; ErrorDocument 400 /error/badrequest.htm&lt;br /&gt;ErrorDocument 401 /error/authorisereqd.htm&lt;br /&gt;ErrorDocument 403 /error/forbidden.htm&lt;br /&gt;ErrorDocument 404 /error/filenotfound.htm&lt;br /&gt;ErrorDocument 500 /error/servererror.htm&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5) Redirecting Pages&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Redirect /old-directory/oldpage.htm http://domain.com/new-directory/newpage.htm&lt;br /&gt;&lt;br /&gt;Redirect /old-directory http://domain.com/new-directory/&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6) Default page&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DirectoryIndex default.htm&lt;br /&gt;&lt;br /&gt;DirectoryIndex default.htm home.cgi sadass.pl otherfile.html&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7) Add types and Add handler&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;AddType text/html .html&lt;br /&gt;           AddHandler server-parsed .html&lt;br /&gt;           AddHandler server-parsed .htm&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8) Block Users by using IP&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;limit&gt;&lt;br /&gt;           order deny,allow&lt;br /&gt;           deny from 123.456.789.000&lt;br /&gt;deny from .domain.com&lt;br /&gt;           allow from all&lt;br /&gt;         &lt;/limit&gt;&lt;br /&gt;&lt;b&gt;&lt;limit&gt;                    &lt;/limit&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-6270638675154965049?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/6270638675154965049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=6270638675154965049&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/6270638675154965049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/6270638675154965049'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/06/htaccess-tutorial.html' title='.htaccess tutorial'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-6849945764055208563</id><published>2008-06-09T15:45:00.000-07:00</published><updated>2008-06-09T15:49:25.501-07:00</updated><title type='text'>PHP Secure mail example</title><content type='html'>$to  = 'ashokseenivas50@gmail.com' ;&lt;br /&gt;$subject = 'PHP Technical Questions';&lt;br /&gt;$message = '&lt;br /&gt;  Upload Your Resumes: PHP FAQ,&lt;br /&gt;  PHP interview questions,&lt;br /&gt;  PHP Frequently Asked Questions,&lt;br /&gt;  Earn More money from google,&lt;br /&gt;  Cricket Updates,&lt;br /&gt;  Cinema gossips,&lt;br /&gt;  Dating.&lt;br /&gt;';&lt;br /&gt;$headers  = 'MIME-Version: 1.0' . "\r\n";&lt;br /&gt;$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";&lt;br /&gt;$headers .= 'To: Mary &lt;mary@example.com&gt;, Kelly &lt;kelly@example.com&gt;' . "\r\n";&lt;br /&gt;$headers .= 'From: Blog Creation &lt;seenivasagaperumal@yahoo.com&gt;' . "\r\n";&lt;br /&gt;$headers .= 'Cc: seenivasagaperumal@yahoo.com' . "\r\n";&lt;br /&gt;$headers .= 'Bcc: seenivasagaperumal@yahoo.com' . "\r\n";&lt;br /&gt;mail($to, $subject, $message, $headers);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-6849945764055208563?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/6849945764055208563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=6849945764055208563&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/6849945764055208563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/6849945764055208563'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/06/php-secure-mail-example.html' title='PHP Secure mail example'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-7565767874005818275</id><published>2008-05-26T15:12:00.001-07:00</published><updated>2008-06-25T12:58:21.869-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Array Functions'/><title type='text'>PHP checkbox array example</title><content type='html'>if (isset($_POST['submit'])) {&lt;br /&gt;&lt;br /&gt;       $fruit = $_REQUEST["fruit"];&lt;br /&gt;&lt;br /&gt;       echo("Fruits chosen: " . count($fruit));&lt;br /&gt;&lt;br /&gt;       for ($i=0; $i&amp;lt;count($fruit); $i++) {&lt;br /&gt;               echo( ($i+1) . ") " . $fruit[$i]);&lt;br /&gt;       }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-7565767874005818275?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/7565767874005818275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=7565767874005818275&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7565767874005818275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7565767874005818275'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/05/php-checkbox-array-example.html' title='PHP checkbox array example'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-5515625829928642120</id><published>2008-05-21T13:21:00.000-07:00</published><updated>2008-05-21T13:42:05.467-07:00</updated><title type='text'>PDF Generation Using PHP</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;PDF Generation Using PHP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$pdf=new FPDF();&lt;br /&gt;$pdf-&gt;AddFont('Calligrapher','','calligra.php');&lt;br /&gt;$pdf-&gt;AddPage();&lt;br /&gt;$pdf-&gt;SetFont('Calligrapher','',35);&lt;br /&gt;$pdf-&gt;Cell(0,10,'Enjoy new fonts with FPDF!');&lt;br /&gt;$pdf-&gt;Output();&lt;br /&gt;&lt;br /&gt;More Examples:&lt;br /&gt;&lt;a href="http://phpexamples.43i.net/pdf/linebreakpdfgeneration.html" target="_blank"&gt;PDF Generation using line breaks&lt;/a&gt;&lt;br /&gt;&lt;a href="http://phpexamples.43i.net/pdf/headerfooterpdfgeneration.html" target="_blank"&gt;PDF Generation using header footer&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-5515625829928642120?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/5515625829928642120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=5515625829928642120&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/5515625829928642120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/5515625829928642120'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/05/pdf-generation-using-php.html' title='PDF Generation Using PHP'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-8179004672849450637</id><published>2008-01-11T04:09:00.000-08:00</published><updated>2008-06-25T12:59:22.747-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Interview Questions'/><title type='text'>FAQ - PHP</title><content type='html'>&lt;strong&gt;1) How can we extract string ‘rajinirobo.com ‘ from a string ‘http://info@&lt;/strong&gt;&lt;strong&gt;rajinirobo&lt;/strong&gt;&lt;strong&gt;.com’ &lt;/strong&gt;&lt;strong&gt; using regular expression of PHP?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;preg_match(”/^http:\/\/.+@(.+)$/”,’http://info@&lt;strong style="font-weight: normal;"&gt;rajinirobo&lt;/strong&gt;.com’,$found);&lt;br /&gt;echo $found[1];&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2) In how many ways we can retrieve the data in the result set of &lt;/strong&gt;&lt;strong&gt; MySQL using PHP?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;1. mysql_fetch_row.&lt;br /&gt;2. mysql_fetch_array&lt;br /&gt;3. mysql_fetch_object&lt;br /&gt;4. mysql_fetch_assoc&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3) What are the different types of table in mysql?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;5 types of tables we can create&lt;br /&gt;1. MyISAM&lt;br /&gt;2. Heap&lt;br /&gt;3. Merge&lt;br /&gt;4. INNO DB&lt;br /&gt;5. ISAM&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4) Difference between MSSQL server &amp;amp; MYSQL?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;MS SQL Server 2005&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt; SQL Server is a full-fledged database system developed specifically for large enterprise databases. All advanced features of a relational database are fully implemented. Once you purchase the product, you are only limited to the Sybase-derived engine.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;MySQL 5.x&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;The latest release of MySQL, the 5.X offering, has rounded up on features that lagged commercial equivalents such as SQL Server. Triggers, stored procedures, Views, Information Schema, Serverside Cursors, and Precision Math are features that are implemented but not yet stabilised.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5) What is the difference between echo and print statement?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Print is a function whereas echo is a language construct.&lt;br /&gt;&lt;br /&gt;You can use something link $a = print $b while you cant use $a = echo $b.&lt;br /&gt;&lt;br /&gt;Print return true or false value on printing. Echo doesn't&lt;br /&gt;&lt;br /&gt;Print cannot have multiple expression whereas Echo can have Multiple Expression statement to echo the value.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6) &lt;/span&gt;&lt;b&gt;What is the difference between echo and print statement&lt;/b&gt;&lt;b&gt;?&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;p&gt;echo() can take multiple expressions,Print cannot take multiple expressions.&lt;/p&gt;&lt;p&gt;echo has the slight performance advantage because it doesn't have a return value.&lt;/p&gt;&lt;p&gt;True, echo is a little bit faster.&lt;/p&gt;Print is a function whereas echo is a language construct.&lt;br /&gt;&lt;br /&gt;You can use something link $a = print $b while you cant use $a = echo $b.&lt;br /&gt;&lt;p style="font-weight: bold;"&gt;&lt;span class="tdvamseebig"&gt;7) What do you need to do to improve the performance for the script you have written?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Use &lt;strong&gt;EXPLAIN &lt;/strong&gt;to monitor the amount of records retrieved for each query. You can use &lt;strong&gt;UNIQUE&lt;/strong&gt;, &lt;strong&gt;LIMIT&lt;/strong&gt;, &lt;strong&gt;WHERE &lt;/strong&gt;to filter the no of records returned&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;8) &lt;span class="tdvamseebig"&gt;How to reverse given string?&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;with function:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;     strrev()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;without function:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;    for($i=0;sizeof($str_name)&gt;$i;$i++)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;    {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;         for($l=1;$i-$l;$l--)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;            echo &lt;/span&gt;&lt;span style="font-weight: normal;"&gt;$str_name;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;9. How many persons have hit my site?&lt;/p&gt;&lt;p&gt;session_start();&lt;br /&gt;(!isset($_SESSION['count'])){ $_SESSION['count']=0;}&lt;br /&gt;else{ $_SESSION['count']++;}&lt;br /&gt;echo "session".$_SESSION['count'];&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;10. Will PHP supports inheritance?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Yes, PHP supports single inheritance&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;11. How do you create subdomains using PHP?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Create the appropriate web root directory, for example /home/sites/username/web , and any subdirectories you wish&lt;br /&gt;* Edit httpd.conf -  add a new virtual host section&lt;br /&gt;* Restart httpd&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;12. How to get the URL domain name in PHP?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$domainName=$_SERVER['HTTP_HOST'];&lt;br /&gt;echo $domainName;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;13. What is the difference between Split and Explode?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;split() can work using regular expressions while explode() cannot.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-8179004672849450637?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/8179004672849450637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=8179004672849450637&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/8179004672849450637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/8179004672849450637'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2008/01/faq-php.html' title='FAQ - PHP'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-2457278432279541830</id><published>2007-12-31T05:05:00.001-08:00</published><updated>2008-06-25T12:58:46.371-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP - Array Functions'/><title type='text'>Array Random</title><content type='html'>&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;((float) &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;microtime&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;() * &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;10000000&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$input &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= array(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Neo"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Morpheus"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Trinity"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Cypher"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Tank"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$rand_keys &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;array_rand&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$input&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;2&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;echo &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$input&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$rand_keys&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;]] . &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"\n"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;?&gt;&lt;/span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-2457278432279541830?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/2457278432279541830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=2457278432279541830&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/2457278432279541830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/2457278432279541830'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2007/12/array-random.html' title='Array Random'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-2665214559042741193</id><published>2007-12-31T05:04:00.001-08:00</published><updated>2008-06-25T13:02:17.710-07:00</updated><title type='text'>Shuffle</title><content type='html'>&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$numbers&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;range&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;20&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;srand&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;((float)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;microtime&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;() * &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;1000000&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;shuffle&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$numbers&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;foreach (&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$numbers &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;as &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$number&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;) {&lt;br /&gt;   echo &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"$number "&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-2665214559042741193?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/2665214559042741193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=2665214559042741193&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/2665214559042741193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/2665214559042741193'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2007/12/shuffle.html' title='Shuffle'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-2580880108806406218</id><published>2007-12-31T04:52:00.000-08:00</published><updated>2008-06-25T13:01:41.974-07:00</updated><title type='text'>Last Inserted ID</title><content type='html'>&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;$con = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_connect&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'localhost'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'mysql_user'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'mysql_password'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;if (!&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$link&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;) {&lt;br /&gt; die(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'Could not connect: ' &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;. &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_error&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;());&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_select_db&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'mydb'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_query&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"INSERT INTO mytable (product) values ('kossu')"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Last inserted record has id %d\n"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_insert_id&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;());&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;&lt;br /&gt;&lt;/span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-2580880108806406218?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/2580880108806406218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=2580880108806406218&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/2580880108806406218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/2580880108806406218'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2007/12/last-inserted-id.html' title='Last Inserted ID'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-7618917605939233291</id><published>2007-12-26T02:30:00.000-08:00</published><updated>2007-12-26T02:40:58.824-08:00</updated><title type='text'>PHP - MYSQL Programmers</title><content type='html'>&lt;span style="color: rgb(0, 0, 187);"&gt;DB Connection - mysql_connect&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'localhost'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'mysql_user'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'mysql_password'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;)&lt;br /&gt;Create DB&lt;br /&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$sql &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'CREATE DATABASE my_db'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;;&lt;br /&gt;if (&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_query&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$sql&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$link&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;)) {&lt;br /&gt;   echo &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Database my_db created successfully\n"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;;&lt;br /&gt;} else {&lt;br /&gt;   echo &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'Error creating database: ' &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;. &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_error&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;() . &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"\n"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Fetching datas&lt;br /&gt;---------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"localhost"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"mysql_user"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"mysql_password"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;) or&lt;br /&gt;   die(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Could not connect: " &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;. &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_error&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;());&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_select_db&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"mydb"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$result &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_query&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"SELECT id, name FROM mytable"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;br /&gt;while (&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$row &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_fetch_array&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$result&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;MYSQL_ASSOC&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;)) {&lt;br /&gt;   &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"ID: %s  Name: %s"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$row&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"id"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;], &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$row&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"name"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;]);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;mysql_free_result&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$result&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;?&gt;&lt;/span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-7618917605939233291?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/7618917605939233291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=7618917605939233291&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7618917605939233291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/7618917605939233291'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2007/12/php-mysql.html' title='PHP - MYSQL Programmers'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4070060750772584121.post-553474990285348738</id><published>2007-11-20T20:22:00.000-08:00</published><updated>2007-11-20T20:23:07.020-08:00</updated><title type='text'>Welcome</title><content type='html'>Hi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4070060750772584121-553474990285348738?l=ashokseenivas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ashokseenivas.blogspot.com/feeds/553474990285348738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4070060750772584121&amp;postID=553474990285348738&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/553474990285348738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4070060750772584121/posts/default/553474990285348738'/><link rel='alternate' type='text/html' href='http://ashokseenivas.blogspot.com/2007/11/welcome.html' title='Welcome'/><author><name>ashok</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_lEN9kT7oGFA/Rz2Sd3C_vmI/AAAAAAAAAAM/ojtPJLA1XW0/s320/43223934.jpg'/></author><thr:total>0</thr:total></entry></feed>
