<?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-7941330386112954412</id><updated>2011-12-21T13:19:27.293-08:00</updated><title type='text'>Pankaj  Shukla's Blog</title><subtitle type='html'>My Way Of learning and exploring...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-1648746909291414132</id><published>2009-10-25T00:36:00.001-07:00</published><updated>2009-12-04T03:20:43.847-08:00</updated><title type='text'>Setup osCommerce on your server.</title><content type='html'>osCommerce is a free, open source online shop software. It is the most comprehensive and popular open source Shopping Cart system in existence.&lt;br /&gt;&lt;br /&gt;This documentation is a starting for those who is new to osCommerce, and know PHP, and MySQL.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; text-align: right;"&gt;&lt;span style="font-weight: bold;"&gt;Requirement:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;PHP&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;    MySQL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt; Enabled Web Server&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installation:&lt;br /&gt;&lt;br /&gt;1. &lt;/span&gt;First of all download osCommerce from the link &lt;a href="http://www.oscommerce.com/solutions"&gt;http://www.oscommerce.com/solutions&lt;/a&gt; and then unzip the folder&lt;span style="font-weight: bold;"&gt;, &lt;/span&gt;the folder contains -&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;catalog&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;catalog/admin&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;extras&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;2.&lt;/span&gt; Upload the catalog folder  to your document root using FTP/SFTP or any other method.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3&lt;/span&gt;. Using any MySQL tool  create MySQL database and user, and assign that user&lt;br /&gt;to the database. Write down the name of the database, user name, and password for this&lt;br /&gt;database for the database installation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. &lt;/span&gt;Open your web browser and go to&lt;span style="color: rgb(51, 102, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(102, 204, 204);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;http://localhost/catalog/Install/&lt;/span&gt; &lt;/span&gt;and click on the&lt;br /&gt;Install button then you will get following window&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_g7eIqzzWlbg/SuRBbwaXfvI/AAAAAAAAAFw/XovQ13HO8Ys/s1600-h/1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: left; cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_g7eIqzzWlbg/SuRBbwaXfvI/AAAAAAAAAFw/XovQ13HO8Ys/s320/1.bmp" alt="" id="BLOGGER_PHOTO_ID_5396510198604463858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;then click continue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. &lt;/span&gt;Enter the database server information:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Database Server &lt;/span&gt;– localhost&lt;br /&gt;&lt;br /&gt;The database server can be in the form of a hostname, or as an IP-address, such as 192.168.0.1.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Username&lt;/span&gt; – username&lt;br /&gt;&lt;br /&gt;The username used to connect to the database server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Password&lt;/span&gt; – password&lt;br /&gt;&lt;br /&gt;The password is used together with the username, which forms the database user account.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Database Name &lt;/span&gt;– database name&lt;br /&gt;&lt;br /&gt;Name of database used to store the data.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_g7eIqzzWlbg/SuREYNET_qI/AAAAAAAAAF4/SyTsP3tlB-A/s1600-h/2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_g7eIqzzWlbg/SuREYNET_qI/AAAAAAAAAF4/SyTsP3tlB-A/s320/2.bmp" alt="" id="BLOGGER_PHOTO_ID_5396513436111994530" border="0" /&gt;&lt;/a&gt;then click on continue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6.&lt;/span&gt; Enter the web server information:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;WWW Address&lt;/span&gt; - http://www.your-server.com/catalog/&lt;br /&gt;&lt;br /&gt;The full website address to the online store&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Webserver Root Directory&lt;/span&gt; - C:/wamp/www/catalog/&lt;br /&gt;&lt;br /&gt;The server path to the online store&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_g7eIqzzWlbg/SuRGVDwnjZI/AAAAAAAAAGA/juTLEUCG8vg/s1600-h/3.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_g7eIqzzWlbg/SuRGVDwnjZI/AAAAAAAAAGA/juTLEUCG8vg/s320/3.bmp" alt="" id="BLOGGER_PHOTO_ID_5396515581097119122" border="0" /&gt;&lt;/a&gt;Click continue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7. &lt;/span&gt;Online Storage Settings&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Store Name&lt;/span&gt; : the name of the online store&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Store Owner Name: &lt;/span&gt;name of the store owner that is presentedto the public&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Email:&lt;/span&gt;  Give the email-id where you  want to the information.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Administrator UserName&lt;/span&gt; : Give the name which you want as an Administrator.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Administrator Passwor&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;d&lt;/span&gt;: Give the password what ever you want.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_g7eIqzzWlbg/SuRJOTh1EpI/AAAAAAAAAGI/dxdortEUJCs/s1600-h/4.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_g7eIqzzWlbg/SuRJOTh1EpI/AAAAAAAAAGI/dxdortEUJCs/s320/4.bmp" alt="" id="BLOGGER_PHOTO_ID_5396518763605856914" border="0" /&gt;&lt;/a&gt;Click continue and you will reach the last step of installation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8. &lt;/span&gt;This is last stage which shows that you osCommerece has ben setup. here you will get two option&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_g7eIqzzWlbg/SuRL03q_WSI/AAAAAAAAAGQ/atq-bsTIb28/s1600-h/5.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_g7eIqzzWlbg/SuRL03q_WSI/AAAAAAAAAGQ/atq-bsTIb28/s320/5.bmp" alt="" id="BLOGGER_PHOTO_ID_5396521625166240034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Catalog :  &lt;/span&gt;if you click on this then you will get the  default setup of osCommerce Online Merchant.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Administration Tool&lt;/span&gt;: if you click on this  then you will get the Admin page you have to login with your Administrator UserName and Password.&lt;br /&gt;&lt;br /&gt;In admin panel you can  play more and customize the application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-1648746909291414132?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/1648746909291414132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=1648746909291414132' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/1648746909291414132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/1648746909291414132'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2009/10/install-oscommerce-on-windows.html' title='Setup osCommerce on your server.'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_g7eIqzzWlbg/SuRBbwaXfvI/AAAAAAAAAFw/XovQ13HO8Ys/s72-c/1.bmp' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-7295731629704880889</id><published>2009-07-12T03:39:00.001-07:00</published><updated>2009-10-09T10:49:07.830-07:00</updated><title type='text'>Create XML file  with PHP 5 and MySQL</title><content type='html'>&lt;span style=";font-family:courier new;font-size:100%;"&gt;In this tutorial i would like to explain that how to create XML files in PHP 5 after extracting data from the MySQL database.&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;In this code there is no hard coded node for the XML files , The data is retrived from the database as an associative and transformed to the XML files.&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);font-family:courier new;font-size:100%;"&gt;Requirement&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;There should be &lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;a style="font-weight: bold;" href="http://www.php.net/manual/en/ref.dom.php"&gt;DOM &lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;extension available in PHP installation.&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 0);font-family:courier new;font-size:100%;"&gt;Code Sample&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;Let's discuss how many step is here to write this code, there are three step to write the code&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;(i)    Connection from MySQL databse.&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;(ii) Retrieve data from the database tables.&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;(iii)  Write retrieved data in XML files.&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:courier new;font-size:100%;"&gt;Connection from MySQL databse&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 153);"&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;$con&lt;/span&gt;&lt;/span&gt;=&lt;span style="color: rgb(0, 102, 0);"&gt;mysql_connect&lt;/span&gt;(&lt;span style="color: rgb(255, 0, 0);"&gt;'localhost'&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;,&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; 'testuser'&lt;/span&gt;&lt;span style="color: rgb(102, 102, 0);"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; &lt;/span&gt;,&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;'pass123'&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;if&lt;/span&gt;(&lt;span style="color: rgb(51, 51, 153);"&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;$con&lt;/span&gt;&lt;/span&gt;)&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;echo&lt;span style="color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"could not connect host 'localhost' . "&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;exit()&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt; if&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;(!mysql_select_db&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);" class="string"&gt;'demo'&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;)&lt;/span&gt;) &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;{    &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt; echo&lt;span style="color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);" class="string"&gt;"Cannot connect to database 'demo' . "&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;exit(); &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  &lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;Above script connect with database 'demo'  and now we can fetch the data from this database tables.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:courier new;font-size:100%;"&gt;Retrieve data from the database tables&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;" class="default"&gt;$query&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt; = &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;font-size:100%;" class="string"&gt;"SELECT * FROM tablename "&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;;&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;" class="default"&gt;$result&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt; = &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;mysql_query&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt; (&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;" class="default"&gt;$query&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt; ,&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;  &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;" class="default"&gt;$con&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;;&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;Now we have a data amd need to write it in XML format.&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:courier new;font-size:100%;"&gt;Write retrieved data in XML files&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;Create new XML document&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;"&gt;$document&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;new DOMDocument( &lt;span style="color: rgb(255, 0, 0);"&gt;'1.0'&lt;/span&gt; );&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;The first element we create in the XML document is known as the root element.  Each XML document must have 1 root element.&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="comment"&gt;&lt;br /&gt;Create root node&lt;/span&gt; &lt;span style=";font-family:courier new;font-size:100%;" class="default"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$root&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;"&gt;node&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt; = &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;" class="default"&gt;$document&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;-&gt;createElement(&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;" class="string"&gt;'&lt;span style="color: rgb(255, 0, 0);"&gt;root&lt;/span&gt;'&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;);&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;" class="default"&gt;$root&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;"&gt;node&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt; = &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;" class="default"&gt;$doc&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;"&gt;ument&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;-&gt;appendChild(&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;" class="default"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$root&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;font-size:100%;"&gt;node&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;);&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Now after creating the root node we have to add the data from the database&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;while(&lt;span style="color: rgb(51, 51, 255);"&gt;$row&lt;/span&gt; = mysql_fetch_assoc(&lt;span style="color: rgb(51, 51, 255);"&gt;$result&lt;/span&gt;)) &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$node&lt;/span&gt;= &lt;span style="color: rgb(51, 51, 255);"&gt;$document&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;-&gt;createElementNS( &lt;span style="color: rgb(51, 51, 255);"&gt;'Item'&lt;span style="color: rgb(0, 102, 0);"&gt;,&lt;/span&gt; 'ezobject:object-relation-list'&lt;/span&gt; );&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$node&lt;/span&gt; = &lt;span style="color: rgb(51, 51, 255);"&gt;$rootnode&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;-&gt;appendChild(&lt;span style="color: rgb(51, 51, 255);"&gt;$node&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  foreach (&lt;span style="color: rgb(51, 51, 255);"&gt;$row&lt;/span&gt; as &lt;span style="color: rgb(51, 51, 255);"&gt;$fieldname =&gt; $fieldvalue&lt;/span&gt;) &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$child&lt;/span&gt; = &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$document&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;-&gt;createElement(&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$fieldname&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$child&lt;/span&gt; = &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$node&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;font-size:100%;"&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;-&gt;appendChild(&lt;span style="color: rgb(51, 51, 255);"&gt;$child&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$nodevalue&lt;/span&gt; = &lt;span style="color: rgb(51, 51, 255);"&gt;$document&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;-&gt;createTextNode(&lt;span style="color: rgb(51, 51, 255);"&gt;$fieldvalue&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$nodevalue &lt;/span&gt;= &lt;span style="color: rgb(51, 51, 255);"&gt;$child&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;-&gt;appendChild(&lt;span style="color: rgb(51, 51, 255);"&gt;$nodevalue&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;}&lt;br /&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;$xml_doc&lt;/span&gt; = &lt;span style="color: rgb(51, 51, 255);"&gt;$documen&lt;/span&gt;t&lt;span style="color: rgb(0, 102, 0);"&gt;-&gt;saveXML();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;echo &lt;span style="color: rgb(51, 51, 255);"&gt;$xml_doc&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"&gt;The above tutorial help you to create XML file in PHP 5.&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:100%;"&gt;&lt;br /&gt;&lt;root&gt;&lt;root&gt;&lt;/root&gt;&lt;/root&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-7295731629704880889?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/7295731629704880889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=7295731629704880889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/7295731629704880889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/7295731629704880889'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2009/07/create-xml-with-php-5-and-mysql_12.html' title='Create XML file  with PHP 5 and MySQL'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-5911233907113655641</id><published>2009-07-02T07:51:00.001-07:00</published><updated>2009-07-02T07:51:55.843-07:00</updated><title type='text'>PHP and AJAX</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; "&gt;&lt;div style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; width: auto; font: normal normal normal 100%/normal Georgia, serif; text-align: left; "&gt;&lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;div style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; width: auto; font: normal normal normal 100%/normal Georgia, serif; text-align: left; "&gt;&lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;div style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; width: auto; font: normal normal normal 100%/normal Georgia, serif; text-align: left; "&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;In this article i would like to explain little bit about AJAX and how it works with PHP.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;What is AJAX?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;AJAX(Asynchronus JavaScript and XML) is based on JavaScript and HTTP Request.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;With AJAX JavaScript can communicate directly with the server, with the&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;XMLHttpRequest&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;object. With this object, a JavaScript can fetch data with a web server without reloading the page.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request requried data(information) from the server instead of whole pages.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;What is &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;HTTP Request ?&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;HTTP (Hypertext Transfer Protocol) is a request/response protocol,Whenever web browser fetches a page (date) from a web server, it does so using HTTP. This means your web browser sends a request for some data and the web server sends back a response using the HTTP.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;What is &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;XMLHttpRequest ?&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#25221D;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;XMLHttpRequest is a JavaScript object that was designed by Microsoft,The XMLHttpRequest object provides a way to communicate with a server after a web page has loaded, it's support all the major browaer like Internet Explorer, Firefox, safari.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#25221D;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#25221D;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;After explaining the above important terms let see how PHP works with the AJAX&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#25221D;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px; "&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;PHP and AJAX :&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#25221D;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;working with PHP and Ajax is very simple&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#25221D;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#25221D;"&gt;&lt;span class="Apple-style-span" style="line-height: 23px; "&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step I: &lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;we need to know how to create an &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;XMLHTTPRequest&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; object. The process differs slightly depending on whether you are using Internet Explorer (5+) with ActiveX enabled, or a standards-compliant browser such as Mozilla Firefox.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;With IE5 and IE6 , the request like:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#993300;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;http = new ActiveXObject("Microsoft.XMLHTTP");&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); line-height: normal; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;With IE7+, Firefox, Chrome, Opera, Safari.we can instantiate the object directly like:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#993300;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;http = new XMLHttpRequest();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#993300;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step 2: &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;W&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;e need to write an &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;event handler&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; which will be called via some event on our page, and will handle sending our request for data to our server.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;The event handler will use various methods of our XMLHTTPRequest object to:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); "&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;(i) make the request of the server&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;(ii) check when the server says that it has completed the request&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;(iii) deal with the information returned by the server&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span" style="line-height: normal; "&gt;&lt;span class="Apple-style-span" style="line-height: 23px; "&gt;using above two step you can write PHP application using AJAX.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-5911233907113655641?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/5911233907113655641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=5911233907113655641' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/5911233907113655641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/5911233907113655641'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2009/07/php-and-ajax.html' title='PHP and AJAX'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-6812289372501363856</id><published>2009-04-03T07:18:00.001-07:00</published><updated>2009-06-25T06:30:23.849-07:00</updated><title type='text'>MySQL Event Scheduler</title><content type='html'>&lt;span class="Apple-style-span"  style=" ;font-family:'Times New Roman';"&gt;&lt;div style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; width: auto; font: normal normal normal 100%/normal Georgia, serif; text-align: left; "&gt;MySQL 5.1 Event Scheduler, Conceptually, this is similar to the idea of the UNIX crontab (also known as a &lt;span style="color: rgb(0, 153, 0); "&gt;“&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0); "&gt;cron job&lt;/span&gt;”) or the Windows &lt;span style="color: rgb(0, 153, 0); "&gt;Task Scheduler&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;What is “&lt;span style="color: rgb(0, 153, 0); "&gt;Event Scheduler&lt;/span&gt;” event is an object whose statements are executed in response to the passage of a specified time interval. An event performs a specific action according to a schedule. An event’s timing can be either on-time or recurrent. A one-time event executes one time only. A recurrent event repeats its action at a regular time interval.&lt;br /&gt;&lt;br /&gt;Events are executed by a special event scheduler thread; when we refer to the Event Scheduler, we actually refer to this thread. When running, the event scheduler thread and its current state can be seen by users having the PROCESS privilege in the output of &lt;span style="color: rgb(51, 153, 153); "&gt;SHOW PROCESSLIST&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* MySQL 5.1.12 and later, an event are uniquely identified by its name and the schema to which it is assigned.&lt;br /&gt;&lt;br /&gt;Let’s see how to create Event in MySQL 5.1:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;Step I:&lt;/span&gt; You need in Install MySQL 5.1&lt;br /&gt;&lt;br /&gt;Download MySQL 5.1 from URL http://dev.mysql.com/downloads/mysql/5.1.html#winx64 For windows&lt;br /&gt;&lt;br /&gt;Follow simple Installer step according to Installation.doc;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;Step II:&lt;/span&gt; Create database in MySQL Server.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0); "&gt;I did the following necessary steps To Run the Scheduler:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(i) &lt;span style="font-weight: bold; "&gt;Goto Star&lt;/span&gt;t&gt;All programs&gt;MySQL&gt;MySQL 5.1 server&gt; MySQL command Line Client&lt;br /&gt;&lt;br /&gt;(ii)&lt;span style="font-weight: bold; "&gt; mysql&lt;/span&gt;&gt; SET GLOBAL EVENT_SCHEDULER=ON;&lt;br /&gt;&lt;br /&gt;(iii ) Create event writing simple statement on MySQL Command Line&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;mysql&lt;/span&gt; &lt;/strong&gt;&gt; CREATE EVENT purge_Data &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;ON SCHEDULE AT ‘2008-07-20 23: 59:00’ &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;BEGIN &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;INSERT INTO archive_news_article select *from news_article where pubdate &lt;&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:8;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(255, 102, 0); "&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 102, 0); font-size:100%;"&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;and then press enter, Above event scheduler execute on ‘2008-07-20 23: 59:00’ only one time and purge data from news_article table to archive_news_article table. Let me Explain the recurrent event scheduler with an Example Let’s apply on same schema if we want to purge starts from a particular Date Time in every month end .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;(iii)&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0); "&gt; mysql&lt;/span&gt;&gt;&lt;span style="color: rgb(204, 102, 0); "&gt; SET GLOBAL EVENT_SCHEDULER=ON;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;(iii ) Create event writing simple statement on MySQL Command Line&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); font-size:100%;"&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;mysql &lt;/span&gt;&lt;/strong&gt;&gt; CREATE EVENT purge_everymonth&lt;br /&gt;ON SCHEDULE EVERY 1 MONTHSTARTS '2008-07-29 23:00:00' + interval 0 minute &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); font-size:100%;"&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;DO &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); font-size:100%;"&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;BEGIN &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); font-size:100%;"&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;INSERT INTO archive_news_article select *from news_article where pubdate &lt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); font-size:100%;"&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;END ;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); font-size:100%;"&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); font-family:arial;font-size:100%;"&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;span style="color: rgb(204, 102, 0); "&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;and then press enter, Above event scheduler execute star t on ‘2008-07-20 23: 59:00’ and purge data from news_article table to archive_news_article table and then it execute every 1 month. At the 23: 59:00’ .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;When a scheduled event is no longer wanted or needed, it can be deleted from the server by its definer using the DROP EVENT statement. Again go to Mysql command line:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0); "&gt;Mysql&lt;/span&gt;&lt;span style="font-weight: bold; "&gt;&gt;&lt;/span&gt; &lt;span style="color: rgb(204, 102, 0); "&gt;Drop Event purge_everymonth;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0); "&gt;Important&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;It is possible to set the Event Scheduler to DISABLED only at server startup. If event_scheduler is ON or OFF, you cannot set it to DISABLED at runtime. Also, if the Event Scheduler is set to DISABLED at startup, you cannot change the value of event_scheduler at runtime.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;For more details please visit&lt;a href="http://dev.mysql.com/doc/refman/5.1/en/events.html"&gt; http://dev.mysql.com/doc/refman/5.1/en/events.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Happy Reading....:-)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;a class="a2a_dd" href="http://www.addtoany.com/share_save?linkname=linkurl=http%3A%2F%2Fpankajkshukla.blogspot.com%2F2009%2F04%2Fmysql-event-scheduler.html"&gt;&lt;img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share/Save/Bookmark"/&gt;&lt;/a&gt;&lt;script type="text/javascript"&gt;a2a_linkurl="http://pankajkshukla.blogspot.com/2009/04/mysql-event-scheduler.html";a2a_color_main="dfd7ed";a2a_color_border="AECADB";a2a_color_link_text="333333";a2a_color_link_text_hover="333333";&lt;/script&gt;&lt;script type="text/javascript" src="http://static.addtoany.com/menu/page.js"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-6812289372501363856?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/6812289372501363856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=6812289372501363856' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/6812289372501363856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/6812289372501363856'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2009/04/mysql-event-scheduler.html' title='MySQL Event Scheduler'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-1600862897690177465</id><published>2009-01-15T05:58:00.000-08:00</published><updated>2009-03-22T01:01:00.669-07:00</updated><title type='text'>Windows (HTC 3400i ) PDA Phone in My Life .</title><content type='html'>It is my first windows mobile which i bought on 11-jan-2009. This phone gives me every thing which i want.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_g7eIqzzWlbg/SW9Lhhl_yiI/AAAAAAAAAEg/S99mDzLCpoU/s1600-h/MyPhone.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5291531126509128226" style="margin: 0px auto 10px; display: block; width: 208px; cursor: pointer; height: 320px; text-align: center;" alt="" src="http://3.bp.blogspot.com/_g7eIqzzWlbg/SW9Lhhl_yiI/AAAAAAAAAEg/S99mDzLCpoU/s320/MyPhone.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Before buying this mobile i was thinking i ll take a new mobile which have Internet browsing, Email Client POP3 SMTP, specially i was very crazy about touch screen but i had only budget of up to 10 k, keeping this thing in mind i bought this phone 9.5 k which gives me all the thing which i want and many more thing.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;About HTC 3400i PDA Phone:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;HTC 3400i mobile phone is powered by Windows Mobile 6 Professional with 64 MB RAM and includes many application that will allow you to internet browsing ,send emails, configure microsoft outlook , capture picture by 2 megapixel camera watch video and listen to music.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;It include:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;OS&lt;/span&gt;      - Microsoft Windows Mobile 6.0 PocketPC&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;Others     &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;            -DirectPush Mail&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;            -Internet Explorer Mobile&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;            -Office Mobile (Excel Mobile, Powerpoint mobile, Word mobile)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;            -Windows Media Player 10 and Pictures and Videos&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;            -Office-type utilities plus Windows Live Messenger&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;              - External GPS&lt;br /&gt;- Media Hub (Audio, Video, Pictures)&lt;br /&gt;- &lt;/span&gt; 2 Megapixel camera&lt;/p&gt;&lt;p&gt;and this phone contains many more feature which make this mobile such as a pocket PC.&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Lack in this Phone:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;- In this phone no wi-fi , that is painfull for me.&lt;/p&gt;&lt;p&gt;-This phone is not 3G enable&lt;/p&gt;&lt;p&gt;still i am using it and writing on it....!!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-1600862897690177465?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/1600862897690177465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=1600862897690177465' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/1600862897690177465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/1600862897690177465'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2009/01/windows-htc-3400i-pda-phone-in-my-life.html' title='Windows (HTC 3400i ) PDA Phone in My Life .'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_g7eIqzzWlbg/SW9Lhhl_yiI/AAAAAAAAAEg/S99mDzLCpoU/s72-c/MyPhone.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-8128886423892589060</id><published>2009-01-04T05:29:00.000-08:00</published><updated>2009-01-31T04:52:03.857-08:00</updated><title type='text'>My first article in PC Quest Magazine India..!</title><content type='html'>&lt;em style="font-family: arial;"&gt;"&lt;a href="http://pcquest.ciol.com/"&gt;PC Quest&lt;/a&gt;&lt;/em&gt;&lt;a style="font-family: arial;" href="http://pcquest.ciol.com/"&gt; online&lt;/a&gt;&lt;span style="font-family:arial;"&gt; is the premier Indian  computer magazine providing online computer news, IT articles from India and  abroad and it's one of the best IT magazine in India"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;I was reading this PC Quest magazine last 1(one) year, and i was also thinking to write something for PC Quest magazine so that people can read and implement my ideas so keeping this thing in mind i started writing article for PC Quest and my first &lt;/span&gt;article has been published in the Jan 2009 edition of PCQuest on page  106-107&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Special Thanks to:&lt;/span&gt; &lt;a href="http://www.shekhargovindarajan.com/"&gt;Shekher Govindarajan&lt;/a&gt; who guide me a lot to write a such article on this  technology, he is  my Role Model in the feild of programming.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Now article is available in PC Quest Magazine and PC Quest website.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;See here for more details :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:arial;"&gt;Article Title:&lt;/span&gt;&lt;span style="font-family:arial;"&gt; Create .Net Application in PHP.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-family: arial;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_g7eIqzzWlbg/SWDEYn3SEiI/AAAAAAAAAEQ/BipVkFW_xkA/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 233px; height: 320px;" src="http://3.bp.blogspot.com/_g7eIqzzWlbg/SWDEYn3SEiI/AAAAAAAAAEQ/BipVkFW_xkA/s320/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5287441889829720610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="habstract"  style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;Article Topic:&lt;/span&gt; The Phalanger plug-in lets you write .Net applications in PHP using Microsoft Visual Studio and run it on IIS web server on Windows&lt;/span&gt;&lt;span style="font-family:arial;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; In other word you can say that  after Installing the Phalanger you can develop a web application as well as windows application in .NET framework using PHP as a language.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;So you may read my article in PC Quest Magazine January 2009 print edition or you can read it any time anywhere on the PC Quest web site &lt;/span&gt;&lt;a style="font-family: arial;" href="http://pcquest.ciol.com/"&gt;http://pcquest.ciol.com/ in . &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Read and and start developing the .NET application in PHP by using Phalanger for more details please go through the step given in article&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Happy reading :-)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;....................&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Pankaj Shukla&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-8128886423892589060?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/8128886423892589060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=8128886423892589060' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/8128886423892589060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/8128886423892589060'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2009/01/my-first-article-in-pc-quest-magazine.html' title='My first article in PC Quest Magazine India..!'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_g7eIqzzWlbg/SWDEYn3SEiI/AAAAAAAAAEQ/BipVkFW_xkA/s72-c/2.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-8301268194667364049</id><published>2008-12-09T02:19:00.000-08:00</published><updated>2008-12-09T04:43:15.854-08:00</updated><title type='text'>Firefox - 'Private Browsing'</title><content type='html'>Private Browsing is already a part of most of web browser like IE8, Google Chrome etc, The new beta for Firfox 3.1 Beta 2 has a feature for the private Browsing. it's a really good news for the Firfox lover.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;A Private Browsing Mode allows you to browse without browser storing any traces of what and where you have Broswe&lt;/em&gt;!&lt;br /&gt;&lt;br /&gt;Today(9-Dec-2008) i got a alert and  saw this news that Firefox 3.1 Beta 2 is ready for download  then  i just open this given link &lt;a href="http://www.mozilla.com/en-US/firefox/all-beta.html"&gt;http://www.mozilla.com/en-US/firefox/all-beta.html&lt;/a&gt; then i see it available for donload for the Windows, Mac OS, Linux, and i just download Firfox 3.1 Beta to for windows and Install on my windows machine. after Installing the browser i open the broswser and start searchig how i can make 'Private Browsing' i clicked the Tool tab an see the follwing&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://3.bp.blogspot.com/_g7eIqzzWlbg/ST5SBeY9I4I/AAAAAAAAADo/X1UWzEzzBpI/s1600-h/firefox.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5277745998615880578" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 240px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_g7eIqzzWlbg/ST5SBeY9I4I/AAAAAAAAADo/X1UWzEzzBpI/s320/firefox.JPG" border="0" /&gt;&lt;/a&gt; and then click on the 'Private Browsing' and the the tab open like this..&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_g7eIqzzWlbg/ST5TLaxIlMI/AAAAAAAAADw/p5IBOxKGvNE/s1600-h/untitled.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5277747268953871554" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 240px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_g7eIqzzWlbg/ST5TLaxIlMI/AAAAAAAAADw/p5IBOxKGvNE/s320/untitled.JPG" border="0" /&gt;&lt;/a&gt;and then i started 'Private Browsing'.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The program title bar does state that you're using Private Browsing, but there's no blatant icon like other Browser. see below that only the title bar state that 'Private Browsing' there is no any icon on blatant icon.&lt;/p&gt;&lt;p&gt;&lt;a href="http://4.bp.blogspot.com/_g7eIqzzWlbg/ST5arzBIcGI/AAAAAAAAAD4/N_0VhcdFjWU/s1600-h/browsing.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5277755521800630370" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 240px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_g7eIqzzWlbg/ST5arzBIcGI/AAAAAAAAAD4/N_0VhcdFjWU/s320/browsing.bmp" border="0" /&gt;&lt;/a&gt;Once you click on the &lt;em&gt;Tool-&gt;Private browsing&lt;/em&gt; then my default browsing go to the 'Private Browsing'.&lt;br /&gt;If you want to browse simple then you have to again go to the &lt;em&gt;Tool-&gt;Private browsing &lt;/em&gt;and uncheck this then you will find the simple browser.&lt;/p&gt;&lt;p&gt;I am very happy to find 'Private Browsing' in Firefox . &lt;/p&gt;&lt;p&gt;&lt;br /&gt;You should also enjoy with Firefox -'Private Browsing' doing the simple excercise like download it from the above link and then Install it on your machine and then start browsing.&lt;br /&gt;&lt;br /&gt;Happy Private Browsing with Firefox......!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-8301268194667364049?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/8301268194667364049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=8301268194667364049' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/8301268194667364049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/8301268194667364049'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2008/12/firefox-31-beta-2-with-private-browsing.html' title='Firefox - &apos;Private Browsing&apos;'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_g7eIqzzWlbg/ST5SBeY9I4I/AAAAAAAAADo/X1UWzEzzBpI/s72-c/firefox.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-6235048683481533134</id><published>2008-10-18T04:59:00.000-07:00</published><updated>2008-10-19T13:01:36.991-07:00</updated><title type='text'>Map your world with Google Map Maker.</title><content type='html'>Google Map Maker is a free service provided by Google team that allows you to add or  edit features about your city, street, collage ,park , company etc and map it with Google Map.&lt;br /&gt;After submitting the information, it will be available at the Map Maker sites for other users to edit it and you can  see it live in Google Maps when Google team  decides there's enough information about the map things.&lt;br /&gt;&lt;br /&gt;Let's see how to use Google Map Maker to Map your place.&lt;br /&gt;&lt;br /&gt;1.To access Google Map Maker, visit  &lt;a href="http://mapmaker.google.com/"&gt; http://mapmaker.google.com&lt;/a&gt; use your Google login and password to sign in. If you do not have a Google account, you can create account.&lt;br /&gt;&lt;br /&gt;once you login you will see this page&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_g7eIqzzWlbg/SPnW9QeWqjI/AAAAAAAAADQ/r13-m2Cyghw/s1600-h/untitled.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_g7eIqzzWlbg/SPnW9QeWqjI/AAAAAAAAADQ/r13-m2Cyghw/s320/untitled.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5258470387814410802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Search your location where you want to Map if your location is already map then you can edit your location clicking on the flag and then pop window comes up and edit , see in this picture i seaced and find the My district Gonda and add flag and save it&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(to see clear picture click o below image)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_g7eIqzzWlbg/SPuRDvrmGOI/AAAAAAAAADY/hhIXHzDzizA/s1600-h/untitled.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_g7eIqzzWlbg/SPuRDvrmGOI/AAAAAAAAADY/hhIXHzDzizA/s320/untitled.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5258956483410139362" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;it's two step task you can map your worl with the Map Maker.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All d best.&lt;/div&gt;&lt;div&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/7941330386112954412-6235048683481533134?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/6235048683481533134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=6235048683481533134' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/6235048683481533134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/6235048683481533134'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2008/10/map-your-world-with-google-map-maker.html' title='Map your world with Google Map Maker.'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_g7eIqzzWlbg/SPnW9QeWqjI/AAAAAAAAADQ/r13-m2Cyghw/s72-c/untitled.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-1224118947258864437</id><published>2008-08-29T04:41:00.000-07:00</published><updated>2008-09-20T05:22:51.461-07:00</updated><title type='text'>Microsoft Launched  IE8 Beta.</title><content type='html'>&lt;div class="hslice" id="1"&gt;&lt;p class="entry-title" &gt;&amp;nbsp; Microsoft Launched  IE8 Beta.&lt;/p&gt;&lt;br /&gt;    &lt;div class="entry-content"&gt;Microsoft lanched IE8 beta for user it's contain the many more new feature than previous IE the Major New features In IE8 is:-&lt;br /&gt;&lt;a href="http://www.microsoft.com/windows/internet-explorer/beta/features/accelerators.aspx?tabid=1&amp;amp;catid=1"&gt;accelerators&lt;/a&gt;:&lt;br /&gt;Now you can get more done, more quickly on the Web. Accelerators provide instant access to information like maps, Web search, translation, email, blogging, and more. Simply highlight a word or phrase on a page to harness the power of the Web like never before .&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/windows/internet-explorer/beta/features/automatic-crash-recovery.aspx?tabid=2&amp;amp;catid=1"&gt;automatic crash recovery&lt;/a&gt;:&lt;br /&gt;which prevents a single page's failures from taking down your entire browser.&lt;br /&gt;and browser &lt;a href="http://www.microsoft.com/windows/internet-explorer/beta/features/browse-privately.aspx?tabid=2&amp;amp;catid=1"&gt;browser privacy&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Web Slices&lt;br /&gt;&lt;/span&gt;Web Slices puts you in control of the information you care about most. Now you can subscribe to specific content within a page and monitor things like auction items, sports scores, entertainment columns, weather reports, and more. Internet Explorer 8 automatically delivers updated information directly to a Web Slice in your Favorites Bar, all without leaving the page you're on&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Visual Search&lt;/span&gt;&lt;br /&gt;Search is one of the most frequent and important things you do online. The new Internet Explorer 8 Search Box takes results to a whole new level by adding graphics and images, helping you find exactly what you're looking for, quickly and easily&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;New Tab Features&lt;/span&gt;&lt;br /&gt;Enhanced for Internet Explorer 8, the Tab page is more useful than ever. From it you can engage a host of Web services as well as open previously closed tabs or begin an InPrivate session.&lt;br /&gt;&lt;br /&gt;there are so many other feature, few of them i find and wrote.&lt;br /&gt;&lt;br /&gt;for more: &lt;a href="http://www.microsoft.com/windows/ie/ie8/welcome/us-en/tour.html"&gt;http://www.microsoft.com/windows/ie/ie8/welcome/us-en/tour.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;let me play with IE8 then i ll write somthing else..&lt;br /&gt;&lt;br /&gt;.........&lt;/div&gt;&lt;br /&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/7941330386112954412-1224118947258864437?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/1224118947258864437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=1224118947258864437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/1224118947258864437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/1224118947258864437'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2008/08/microsoft-launched-ie8-beta-2.html' title='Microsoft Launched  IE8 Beta.'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-1413574468493313839</id><published>2008-08-19T00:12:00.000-07:00</published><updated>2008-08-20T22:54:08.079-07:00</updated><title type='text'>MySQL Partitions.</title><content type='html'>MySQL Partitions is a New Feature of MySQL 5.1, This is the most awaited feature of MySQL.&lt;br /&gt;I am very happy to find this feature in MySQL. because Partitioning is a way of pre-organizing table storage.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Benifits&lt;em&gt;: &lt;/em&gt;&lt;/strong&gt;Partitioning can be useful in speeding up selects on large tables.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Creating Partitioned Tables:&lt;/strong&gt;&lt;br /&gt;The way creating partitioned tables is the PARTITION clause&lt;br /&gt;of CREATE TABLE.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;Here's the rule which we have to remember at time of partitioning tables.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;1.&gt;&lt;/span&gt; If a table has a primary key, then any columns used in the partitioning expression must be part of the primary key.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;2.&gt;&lt;/span&gt;If a table has no primary key, but does have one or more unique keys, then any columns used in the partitioning expression must be part of the (first) unique key.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;3.&gt;&lt;/span&gt;Regular indexes have no effect on what columns may or may not be used in a partitioning expression. This means that if you need an index on the id column (or any other column) to speed up searches, you can define one without getting into trouble.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;4. &gt;&lt;/span&gt;Partitioned tables do not support FULLTEXT indexes, including tables that use the MYISAM storage engine.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;There are four type of partitioning,Let me Explain with an Example.......&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. &lt;strong&gt;Range:&lt;/strong&gt; Rows with column or expression values falling within a specified range are assigned to a given partition.&lt;br /&gt;See following example it's non-partitioned table&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;CREATE TABLE employee ( &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;id INT AUTO_INCREMENT PRIMARY KEY, &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;emp_name VARCHAR(30), &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;emp_designation varchar(45), &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;joining_date DATE&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;) ENGINE = MYISAM;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;Here's the Range partitioning for this table.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;CREATE TABLE employee (&lt;br /&gt;id INT AUTO_INCREMENT PRIMARY KEY,&lt;br /&gt;emp_name VARCHAR(30),&lt;br /&gt;emp_designation varchar(45),&lt;br /&gt;joining_date DATE&lt;br /&gt;) ENGINE = MYISAM&lt;br /&gt;PARTITION BY RANGE(id) (&lt;br /&gt;PARTITION p0 VALUES LESS THAN(2000),&lt;br /&gt;PARTITION p1 VALUES LESS THAN(3000),&lt;br /&gt;PARTITION p2 VALUES LESS THAN(4000),&lt;br /&gt;PARTITION p3 VALUES LESS THAN(5000) &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;Any row having an id whose value is less than 2000 is stored in partition p0. The next partition is named p1, and stores rows whose id column values are less than 2000 and p2 stores values less than 3000 and so on.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/span&gt; I try to insert a row having order ID number 5000 or higher?" The answer is that such an insert fails:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;ERROR : Table has no partition for value 5000&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;To overcome this error, there's a more general way to accomplish this, as you can see here:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;CREATE TABLE employee ( &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;id INT AUTO_INCREMENT PRIMARY KEY,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;emp_name VARCHAR(30),&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;emp_designation varchar(45), &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;joining_date DATE ) &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;ENGINE = MYISAM &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;PARTITION BY RANGE(id)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;( PARTITION p0 VALUES LESS THAN(2000), &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;PARTITION p1 VALUES LESS THAN(3000),&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;PARTITION p2 VALUES LESS THAN(4000), &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;PARTITION p3 VALUES LESS THAN(5000),&lt;br /&gt;PARTITION p5 VALUES LESS THAN(MAXVALUE)&lt;br /&gt;); &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;so in this case partition p5 can conatin "the greatest possible value .&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-1413574468493313839?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/1413574468493313839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=1413574468493313839' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/1413574468493313839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/1413574468493313839'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2008/08/mysql-partitions.html' title='MySQL Partitions.'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-3568090320179657601</id><published>2008-08-11T11:22:00.000-07:00</published><updated>2009-01-20T04:14:02.467-08:00</updated><title type='text'>FREE Hardware and Software Information extracting tool - Belarc Adviser</title><content type='html'>&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;How do I get a list of all installed Software and Hardware informatin on my machine? information is all confusing. &lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;br /&gt;I think there is no central repository of information about what is on your machine. other day i was very confused how to make Inventry of my computer. I had just start searching and find a free Belerc Software. which builds a detailed Inventry of Installed software and hardware.&lt;br /&gt;&lt;br /&gt;I did the following simple step to run this tool on my Machine..&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;span style="color: rgb(0, 51, 51);"&gt;1.&lt;/span&gt; Free download it from &lt;/span&gt;&lt;a href="http://www.belarc.com/free_download.html"&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;http://www.belarc.com/free_download.html&lt;/span&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;span style="color: rgb(0, 0, 102);"&gt;2.&lt;/span&gt; Simple Installed it on my Machine, after completion of installation it shows shortcut on &lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;/span&gt;&lt;br /&gt;my desktop&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;span style="color: rgb(0, 0, 102);"&gt;3.&lt;/span&gt; I run Belarc Advisor on desktop.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;span style="color: rgb(0, 0, 102);"&gt;4.&lt;/span&gt; It's open a IE browser and dispaly all my computer software and hardware information.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;I do'nt want to share my computer infomation that's why i am not putting here screen shot of browser which contain the deatiled Computer Profile.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;One of the best features of the Belarc Advisor is its report showing all the Microsoft Windows Critical updates that are installed on the computer and a list of any that are missing.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;There are many tool to find a such a inforamtion about computer , but this is the tool which i have used and it is very easy and efficent!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-3568090320179657601?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/3568090320179657601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=3568090320179657601' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/3568090320179657601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/3568090320179657601'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2008/08/free-hardware-and-software-information.html' title='FREE Hardware and Software Information extracting tool - Belarc Adviser'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7941330386112954412.post-7921276323696945317</id><published>2008-08-10T11:38:00.000-07:00</published><updated>2008-08-10T20:24:34.527-07:00</updated><title type='text'>It is my first Post</title><content type='html'>&lt;span style="font-family:times new roman;font-size:130%;"&gt;I just start writing post on blog with my less writing skill once i came to know about blogging.&lt;br /&gt;&lt;br /&gt;So first of all i would like to thanks a person who help me a lot to know about blogging, he is &lt;/span&gt;&lt;a href="http://www.shekhargovindarajan.com/"&gt;&lt;span style="font-family:times new roman;font-size:130%;"&gt;Shekhar Govindarajan&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:times new roman;font-size:130%;"&gt;.&lt;br /&gt;&lt;br /&gt;In this computer technology era.. i think blogging is a best way to share my thinking and experience globally, so that's a reason i start blogging. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;font-size:130%;"&gt;&lt;br /&gt;Let me think for my next post....&lt;br /&gt;&lt;br /&gt;cheers..!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7941330386112954412-7921276323696945317?l=pankajkshukla.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pankajkshukla.blogspot.com/feeds/7921276323696945317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7941330386112954412&amp;postID=7921276323696945317' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/7921276323696945317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7941330386112954412/posts/default/7921276323696945317'/><link rel='alternate' type='text/html' href='http://pankajkshukla.blogspot.com/2008/08/it-is-my-first-post.html' title='It is my first Post'/><author><name>Pankaj Shukla</name><uri>http://www.blogger.com/profile/14385925508843130092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/_g7eIqzzWlbg/SjowOR6FbrI/AAAAAAAAAFQ/6KaDZhYbtdQ/S220/pshukla.jpg'/></author><thr:total>5</thr:total></entry></feed>
