<?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-885538887574940127</id><updated>2011-11-27T15:31:05.469-08:00</updated><title type='text'>Php Consultant</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-1181549805738237844</id><published>2009-02-24T03:09:00.000-08:00</published><updated>2009-02-24T03:11:59.665-08:00</updated><title type='text'>I LOVE CHINA</title><content type='html'>This Blog is dedicated to China's People because I Love China and thier peoples....                                                                                                                                                                                                                                                                                  From: Ozair khan                                                                                                                                                 mrozairkhan@yahoo.com                                                                                                                                 Pakistan&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-1181549805738237844?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/1181549805738237844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=1181549805738237844&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/1181549805738237844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/1181549805738237844'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2009/02/i-love-china.html' title='I LOVE CHINA'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-7178961659545763843</id><published>2009-01-11T06:13:00.000-08:00</published><updated>2009-01-11T06:15:41.591-08:00</updated><title type='text'>What is PHP?</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: verdana; font-size: 13px; "&gt;&lt;p style="text-align: justify;margin-top: 0px; margin-bottom: 1em; "&gt;&lt;acronym title="recursive acronym for PHP: Hypertext Preprocessor"&gt;PHP&lt;/acronym&gt; is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works. After that, check out the online manual, and the example archive sites and some of the other resources available in the links secton.&lt;/p&gt;&lt;p style="margin-top: 0px; margin-bottom: 1em; "&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-7178961659545763843?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/7178961659545763843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=7178961659545763843&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7178961659545763843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7178961659545763843'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2009/01/what-is-php.html' title='What is PHP?'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-3630494043132094719</id><published>2008-10-22T09:38:00.002-07:00</published><updated>2008-10-22T09:40:05.897-07:00</updated><title type='text'>Querying data from a table code</title><content type='html'>&lt;?php&lt;br /&gt;// Make a MySQL Connection&lt;br /&gt;mysql_connect("localhost", "admin", "1admin") or die(mysql_error());&lt;br /&gt;mysql_select_db("test") or die(mysql_error());&lt;br /&gt;&lt;br /&gt;// Retrieve all the data from the "example" table&lt;br /&gt;$result = mysql_query("SELECT * FROM example")&lt;br /&gt;or die(mysql_error());  &lt;br /&gt;&lt;br /&gt;// store the record of the "example" table into $row&lt;br /&gt;$row = mysql_fetch_array( $result );&lt;br /&gt;// Print out the contents of the entry &lt;br /&gt;&lt;br /&gt;echo "Name: ".$row['name'];&lt;br /&gt;echo " Age: ".$row['age'];&lt;br /&gt;&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-3630494043132094719?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/3630494043132094719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=3630494043132094719&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3630494043132094719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3630494043132094719'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/querying-data-from-table-code.html' title='Querying data from a table code'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-6224322809470441042</id><published>2008-10-22T09:38:00.001-07:00</published><updated>2008-10-22T09:38:24.237-07:00</updated><title type='text'>Inserting data into a table code</title><content type='html'>&lt;?php // Make a MySQL Connection &lt;br /&gt; mysql_connect("localhost", "admin", "1admin") or die(mysql_error());&lt;br /&gt;  mysql_select_db("test") or die(mysql_error());&lt;br /&gt;  // Insert a row of information into the table "example" &lt;br /&gt; mysql_query("INSERT INTO example (name, age) &lt;br /&gt;  VALUES('Timmy Mellowman', '23' ) ") or die(mysql_error()); &lt;br /&gt; mysql_query("INSERT INTO example (name, age) &lt;br /&gt;  VALUES('Sandy Smith', '21' ) ") or die(mysql_error()); &lt;br /&gt; mysql_query("INSERT INTO example (name, age) &lt;br /&gt;  VALUES('Bobby Wallace', '15' ) ") or die(mysql_error()); &lt;br /&gt; echo "Data Inserted!"; &lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-6224322809470441042?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/6224322809470441042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=6224322809470441042&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6224322809470441042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6224322809470441042'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/inserting-data-into-table-code.html' title='Inserting data into a table code'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-7036520667237208931</id><published>2008-10-22T09:37:00.003-07:00</published><updated>2008-10-22T09:37:59.048-07:00</updated><title type='text'>MySQL Function Reference example code</title><content type='html'>&lt;?php$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; }mysql_select_db('mydb');/* Update records */&lt;br /&gt; mysql_query("UPDATE mytable SET used=1 WHERE id &lt; 10");&lt;br /&gt; printf ("Updated records: %d\n", mysql_affected_rows());&lt;br /&gt; mysql_query("COMMIT");&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-7036520667237208931?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/7036520667237208931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=7036520667237208931&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7036520667237208931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7036520667237208931'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-function-reference-example-code_1063.html' title='MySQL Function Reference example code'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-3861490881381824512</id><published>2008-10-22T09:37:00.001-07:00</published><updated>2008-10-22T09:37:39.408-07:00</updated><title type='text'>MySQL Function Reference example code</title><content type='html'>&lt;?php$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');&lt;br /&gt; if (!$link)&lt;br /&gt; {&lt;br /&gt;  die('Could not connect: ' . mysql_error());&lt;br /&gt; }mysql_select_db('mydb');/* this should return the correct numbers of deleted records */mysql_query('DELETE FROM mytable WHERE id &lt; 10');&lt;br /&gt; printf("Records deleted: %d\n", mysql_affected_rows());&lt;br /&gt; /* with a where clause that is never true, it should return 0 */mysql_query('DELETE FROM mytable WHERE 0');&lt;br /&gt; printf("Records deleted: %d\n", mysql_affected_rows());&lt;br /&gt; ?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-3861490881381824512?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/3861490881381824512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=3861490881381824512&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3861490881381824512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3861490881381824512'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-function-reference-example-code_5711.html' title='MySQL Function Reference example code'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-2071102873739314989</id><published>2008-10-22T09:36:00.004-07:00</published><updated>2008-10-22T09:37:16.455-07:00</updated><title type='text'>MySQL Function Reference contd..</title><content type='html'>int mysql_affected_rows ([ resource $link_identifier ] ) &lt;br /&gt; Gets the number of affected rows by the last INSERT, UPDATE, REPLACE or DELETE query associated with link_identifier.&lt;br /&gt;Return Values&lt;br /&gt;Returns the number of affected rows on success, and -1 if the last query failed. &lt;br /&gt;If the last query was a DELETE query with no WHERE clause, all of the records will have been deleted from the table but this function will return zero with MySQL versions prior to 4.1.2. &lt;br /&gt;When using UPDATE, MySQL will not update columns where the new value is the same as the old value. This creates the possibility that mysql_affected_rows() may not actually equal the number of rows matched, only the number of rows that were literally affected by the query. &lt;br /&gt;The REPLACE statement first deletes the record with the same primary key and then inserts the new record. This function returns the number of deleted records plus the number of inserted records.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-2071102873739314989?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/2071102873739314989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=2071102873739314989&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/2071102873739314989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/2071102873739314989'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-function-reference-contd_7277.html' title='MySQL Function Reference contd..'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-4071756385134326159</id><published>2008-10-22T09:36:00.003-07:00</published><updated>2008-10-22T09:36:54.532-07:00</updated><title type='text'>MySQL Function Reference example code</title><content type='html'>&lt;?php$link = mysql_connect("localhost", "mysql_user", "mysql_password");&lt;br /&gt; mysql_select_db("database", $link);&lt;br /&gt; $result = mysql_query("SELECT * FROM table1", $link);&lt;br /&gt; $num_rows = mysql_num_rows($result);&lt;br /&gt; echo "$num_rows Rows\n";&lt;br /&gt; ?&gt; &lt;br /&gt;&lt;br /&gt; &lt;?php&lt;br /&gt;$result = mysql_query("SELECT id,email FROM people WHERE id = '42'");&lt;br /&gt;if (!$result) {&lt;br /&gt;    echo 'Could not run query: ' . mysql_error();&lt;br /&gt;    exit;&lt;br /&gt;}&lt;br /&gt;/* returns 2 because id,email === two fields */&lt;br /&gt;echo mysql_num_fields($result);&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-4071756385134326159?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/4071756385134326159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=4071756385134326159&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/4071756385134326159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/4071756385134326159'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-function-reference-example-code_22.html' title='MySQL Function Reference example code'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-2964622879719649815</id><published>2008-10-22T09:36:00.001-07:00</published><updated>2008-10-22T09:36:13.665-07:00</updated><title type='text'>MySQL Function Reference contd..</title><content type='html'>int mysql_num_rows ( resource $result ) &lt;br /&gt; Retrieves the number of rows from a result set. This command is only valid for statements like SELECT or SHOW that return an actual result set. To retrieve the number of rows affected by a INSERT, UPDATE, REPLACE or DELETE query, use mysql_affected_rows().&lt;br /&gt; $result.&lt;br /&gt;  The result resource that is being evaluated. &lt;br /&gt; Return value.&lt;br /&gt;  The number of rows in a result set on success, or FALSE on failure. &lt;br /&gt;&lt;br /&gt;int mysql_num_fields ( resource $result ) &lt;br /&gt; Retrieves the number of fields from a query. &lt;br /&gt; Returns the number of fields in the result set resource on success, or FALSE on failure.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-2964622879719649815?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/2964622879719649815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=2964622879719649815&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/2964622879719649815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/2964622879719649815'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-function-reference-contd_2533.html' title='MySQL Function Reference contd..'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-5053279943912241724</id><published>2008-10-22T09:35:00.001-07:00</published><updated>2008-10-22T09:35:51.144-07:00</updated><title type='text'>MySQL Function Reference contd..</title><content type='html'>resource mysql_db_query ( string $database , string $query [, resource $link_id] ) .&lt;br /&gt;Selects a database, and executes a query on it. &lt;br /&gt;$database&lt;br /&gt;The name of the database that will be selected. &lt;br /&gt;$query&lt;br /&gt;The MySQL query. &lt;br /&gt;Return value.&lt;br /&gt;Returns a positive MySQL result resource to the query result, or FALSE on error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-5053279943912241724?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/5053279943912241724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=5053279943912241724&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/5053279943912241724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/5053279943912241724'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-function-reference-contd_22.html' title='MySQL Function Reference contd..'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-4357909743030251815</id><published>2008-10-22T09:34:00.002-07:00</published><updated>2008-10-22T09:35:23.100-07:00</updated><title type='text'>MySQL Function Reference example code</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;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-4357909743030251815?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/4357909743030251815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=4357909743030251815&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/4357909743030251815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/4357909743030251815'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-function-reference-example-code.html' title='MySQL Function Reference example code'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-8857586217375970590</id><published>2008-10-22T09:34:00.001-07:00</published><updated>2008-10-22T09:34:47.121-07:00</updated><title type='text'>MySQL Function Reference contd..</title><content type='html'>string mysql_error  ([ resource $link_identifier  ] )&lt;br /&gt;Returns the error text from the last MySQL function. Errors coming back from the MySQL database backend no longer issue warnings. Instead, use mysql_error() to retrieve the error text. Note that this function only returns the error text from the most recently executed MySQL function (not including mysql_error() and mysql_errno()), so if you want to use it, make sure you check the value before calling another MySQL function. &lt;br /&gt;$link_identifier.&lt;br /&gt;The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect() is assumed. If no such link is found, it will try to create one as if mysql_connect() was called with no arguments. If by chance no connection is found or established, an E_WARNING level error is generated. &lt;br /&gt;Return value.&lt;br /&gt; Returns the error text from the last MySQL function, or '' (empty string) if no error occurred. &lt;br /&gt;&lt;br /&gt;int mysql_errno ([ resource $link_identifier ] ) &lt;br /&gt; Returns the error number from the last MySQL function or 0 (zero) if no error occurred.&lt;br /&gt;bool mysql_close ([ resource $link_identifier ] ) &lt;br /&gt; closes the non-persistent connection to the MySQL server that's associated with the specified link identifier. If link_identifier isn't specified, the last opened link is used.&lt;br /&gt;Return value.&lt;br /&gt; Returns TRUE on success or FALSE on failure.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-8857586217375970590?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/8857586217375970590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=8857586217375970590&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8857586217375970590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8857586217375970590'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-function-reference-contd.html' title='MySQL Function Reference contd..'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-3592748601425073773</id><published>2008-10-22T09:33:00.002-07:00</published><updated>2008-10-22T09:34:11.866-07:00</updated><title type='text'>mysql_connect example code</title><content type='html'>$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');&lt;br /&gt;if (!$link) &lt;br /&gt;{die('Could not connect');&lt;br /&gt;}&lt;br /&gt;echo 'Connected successfully';&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-3592748601425073773?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/3592748601425073773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=3592748601425073773&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3592748601425073773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3592748601425073773'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysqlconnect-example-code.html' title='mysql_connect example code'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-3312700870880555852</id><published>2008-10-22T09:33:00.001-07:00</published><updated>2008-10-22T09:33:25.655-07:00</updated><title type='text'>MySQL Function Reference</title><content type='html'>resource mysql_connect ([ string $server [, string $username [, string $password [, &lt;br /&gt;     bool $new_link [, int $client_flags ]]]]] ) &lt;br /&gt;$server.&lt;br /&gt; The MySQL server. It can also include a port number. e.g. "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for the localhost.&lt;br /&gt;$username.&lt;br /&gt; The username. &lt;br /&gt;$password.&lt;br /&gt; The password.&lt;br /&gt;$new_link.&lt;br /&gt; If a second call is made to mysql_connect() with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be returned. The new_link parameter modifies this behavior and makes mysql_connect() always open a new link, even if mysql_connect() was called before with the same parameters.&lt;br /&gt;$client_flags.&lt;br /&gt; The client_flags parameter can be a combination of the following constants: 128 (enable LOAD DATA LOCAL handling), MYSQL_CLIENT_SSL, MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or MYSQL_CLIENT_INTERACTIVE.&lt;br /&gt; Return Value.&lt;br /&gt; Returns a MySQL link identifier on success, or FALSE on failure.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-3312700870880555852?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/3312700870880555852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=3312700870880555852&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3312700870880555852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3312700870880555852'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-function-reference.html' title='MySQL Function Reference'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-3542977717631720442</id><published>2008-10-22T09:32:00.001-07:00</published><updated>2008-10-22T09:32:57.272-07:00</updated><title type='text'>MySQL Functions</title><content type='html'>mysql_affected_rows — Get number of affected rows in previous MySQL operation&lt;br /&gt;mysql_change_user — Change logged in user of the active connection&lt;br /&gt;mysql_client_encoding — Returns the name of the character set&lt;br /&gt;mysql_close — Close MySQL connection&lt;br /&gt;mysql_connect — Open a connection to a MySQL Server&lt;br /&gt;mysql_create_db — Create a MySQL database&lt;br /&gt;mysql_data_seek — Move internal result pointer&lt;br /&gt;mysql_db_name — Get result data&lt;br /&gt;mysql_db_query — Send a MySQL query&lt;br /&gt;mysql_drop_db — Drop (delete) a MySQL database&lt;br /&gt;mysql_errno — Returns the numerical value of the error message from previous MySQL operation&lt;br /&gt;mysql_error — Returns the text of the error message from previous MySQL operation&lt;br /&gt;mysql_escape_string — Escapes a string for use in a mysql_query&lt;br /&gt;mysql_fetch_array — Fetch a result row as an associative array, a numeric array, or both&lt;br /&gt;mysql_fetch_assoc — Fetch a result row as an associative array&lt;br /&gt;mysql_fetch_field — Get column information from a result and return as an object&lt;br /&gt;mysql_fetch_lengths — Get the length of each output in a result&lt;br /&gt;mysql_fetch_object — Fetch a result row as an object&lt;br /&gt;mysql_fetch_row — Get a result row as an enumerated array&lt;br /&gt;mysql_field_flags — Get the flags associated with the specified field in a result&lt;br /&gt;mysql_field_len — Returns the length of the specified field&lt;br /&gt;mysql_field_name — Get the name of the specified field in a result&lt;br /&gt;mysql_field_seek — Set result pointer to a specified field offset&lt;br /&gt;mysql_field_table — Get name of the table the specified field is in&lt;br /&gt;mysql_field_type — Get the type of the specified field in a result&lt;br /&gt;mysql_free_result — Free result memory&lt;br /&gt;mysql_get_client_info — Get MySQL client info&lt;br /&gt;mysql_get_host_info — Get MySQL host info&lt;br /&gt;mysql_get_proto_info — Get MySQL protocol info&lt;br /&gt;mysql_get_server_info — Get MySQL server info&lt;br /&gt;mysql_info — Get information about the most recent query&lt;br /&gt;mysql_insert_id — Get the ID generated from the previous INSERT operation&lt;br /&gt;mysql_list_dbs — List databases available on a MySQL server&lt;br /&gt;mysql_list_fields — List MySQL table fields&lt;br /&gt;mysql_list_processes — List MySQL processes&lt;br /&gt;mysql_list_tables — List tables in a MySQL database&lt;br /&gt;mysql_num_fields — Get number of fields in result&lt;br /&gt;mysql_num_rows — Get number of rows in result&lt;br /&gt;mysql_pconnect — Open a persistent connection to a MySQL server&lt;br /&gt;mysql_ping — Ping a server connection or reconnect if there is no connection&lt;br /&gt;mysql_query — Send a MySQL query&lt;br /&gt;mysql_real_escape_string — Escapes special characters in a string for use in a SQL statement&lt;br /&gt;mysql_result — Get result data&lt;br /&gt;mysql_select_db — Select a MySQL database&lt;br /&gt;mysql_set_charset — Sets the client character set&lt;br /&gt;mysql_stat — Get current system status&lt;br /&gt;mysql_tablename — Get table name of field&lt;br /&gt;mysql_thread_id — Return the current thread ID&lt;br /&gt;mysql_unbuffered_query — Send an SQL query to MySQL, without fetching and buffering the result rows&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-3542977717631720442?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/3542977717631720442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=3542977717631720442&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3542977717631720442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/3542977717631720442'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/mysql-functions.html' title='MySQL Functions'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-8183349877206161888</id><published>2008-10-22T09:31:00.000-07:00</published><updated>2008-10-22T09:32:01.185-07:00</updated><title type='text'>What is MySQL?</title><content type='html'>MySQL is currently the most popular open source database server in existence. &lt;br /&gt;It is very commonly used in conjunction with PHP scripts to create powerful and dynamic server-side DB applications.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-8183349877206161888?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/8183349877206161888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=8183349877206161888&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8183349877206161888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8183349877206161888'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/10/what-is-mysql.html' title='What is MySQL?'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-4895679397440124971</id><published>2008-09-12T03:35:00.002-07:00</published><updated>2008-09-12T03:37:13.830-07:00</updated><title type='text'>Example 4 file reading</title><content type='html'>&lt;textarea rows="15" cols="40"&gt;&lt;br /&gt;Examples:&lt;br /&gt;&lt;?php $fh = fopen("myfile1.txt", "r"); &lt;br /&gt; $line = fgets($fh);   //read a complete line from file.&lt;br /&gt; echo $line;    //render that line as HTML text&lt;br /&gt; fclose($fh); &lt;br /&gt;?&gt; &lt;br /&gt;&lt;br /&gt;&lt;?php &lt;br /&gt; $fh = fopen("myfile1.txt", "r"); &lt;br /&gt; $str = fgets($fh, 64);   //read only 64 characters from the file&lt;br /&gt; echo $str;    //render 64 characters as HTML&lt;br /&gt; $line2 = fgets($fh, 64);   //read next 64 characters from the file&lt;br /&gt; echo $str; &lt;br /&gt; fclose($fh); &lt;br /&gt;?&gt; &lt;br /&gt;Reading line by line:&lt;br /&gt;&lt;?php &lt;br /&gt; $fh = fopen("myfile1.txt", "r"); &lt;br /&gt; while (!feof($fh)) &lt;br /&gt; { &lt;br /&gt;  $line = fgets($fh); &lt;br /&gt;  echo $line; &lt;br /&gt; } &lt;br /&gt; fclose($fh); &lt;br /&gt;?&gt; &lt;br /&gt;Reading all lines at once: [Using function file_get_contents()]&lt;br /&gt;&lt;?php &lt;br /&gt; $fh = fopen("myfile1.txt", "r"); &lt;br /&gt; $file = file_get_contents("myfile1.txt"); &lt;br /&gt; echo $file; &lt;br /&gt;?&gt; &lt;br /&gt;&lt;br /&gt;&lt;/textarea&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-4895679397440124971?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/4895679397440124971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=4895679397440124971&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/4895679397440124971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/4895679397440124971'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/example-4-file-reading.html' title='Example 4 file reading'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-8856625111622358261</id><published>2008-09-12T03:35:00.001-07:00</published><updated>2008-09-12T03:35:26.790-07:00</updated><title type='text'>PHP file reading</title><content type='html'>The fgets( ) function.&lt;br /&gt; The fgets() functions is used to read a line from a file. Using this function we either read the entire line into a string or specify the number characters we like to read. &lt;br /&gt;fgets ($handle, $length); &lt;br /&gt;$handle - the file pointer &lt;br /&gt;$length - number of bytes to read. If length is not specified it will read at the end of the line.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-8856625111622358261?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/8856625111622358261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=8856625111622358261&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8856625111622358261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8856625111622358261'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-file-reading.html' title='PHP file reading'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-7294022277261731770</id><published>2008-09-12T03:33:00.002-07:00</published><updated>2008-09-12T03:34:50.051-07:00</updated><title type='text'>Example open for read</title><content type='html'>&lt;textarea rows="15" cols="40"&gt;&lt;br /&gt;Examples:&lt;br /&gt;Opening a file for reading.&lt;br /&gt;&lt;?php $fh = fopen("myfile1.txt", "r"); &lt;br /&gt; if($fh==false) &lt;br /&gt; die("unable to open file"); &lt;br /&gt;?&gt; &lt;br /&gt;&lt;br /&gt;Opening a file for reading and writing.&lt;br /&gt;&lt;?php $fh = fopen(" myfile.txt", "r+");  &lt;br /&gt; if($fh==false) &lt;br /&gt;  die("unable to open file"); &lt;br /&gt;?&gt; &lt;br /&gt;&lt;/textarea&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-7294022277261731770?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/7294022277261731770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=7294022277261731770&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7294022277261731770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7294022277261731770'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/example-open-for-read.html' title='Example open for read'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-2256765715455622218</id><published>2008-09-12T03:33:00.001-07:00</published><updated>2008-09-12T03:33:37.629-07:00</updated><title type='text'>PHP file open for read</title><content type='html'>fopen ($filename, $mode); &lt;br /&gt;Arguments same as before. Return value same as mode write already seen.&lt;br /&gt;Read mode table.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-2256765715455622218?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/2256765715455622218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=2256765715455622218&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/2256765715455622218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/2256765715455622218'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-file-open-for-read.html' title='PHP file open for read'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-7025461134302243853</id><published>2008-09-12T03:30:00.000-07:00</published><updated>2008-09-12T03:32:40.185-07:00</updated><title type='text'>Example code 4 create &amp; open</title><content type='html'>&lt;textarea rows="15" cols="40"&gt;&lt;br /&gt; Creating new file for writing.&lt;br /&gt; &lt;?php $fh = fopen("myfile1.txt", "w"); &lt;br /&gt;  if($fh==false) &lt;br /&gt;   die("unable to create file"); &lt;br /&gt; ?&gt; &lt;br /&gt;Creating a file for writing and reading.&lt;br /&gt; &lt;?php $fh = fopen(" myfile.txt", "w+"); &lt;br /&gt;  if($fh==false) &lt;br /&gt;   die("unable to create file"); &lt;br /&gt; ?&gt;&lt;br /&gt; With w and w+ modes existing file will be deleted.&lt;br /&gt; In order to retain new files but to write to them use a or a+ modes. &lt;br /&gt;&lt;br /&gt;&lt;/textarea&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-7025461134302243853?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/7025461134302243853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=7025461134302243853&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7025461134302243853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7025461134302243853'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/example-code-4-create-open.html' title='Example code 4 create &amp; open'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-6245456288711553961</id><published>2008-09-12T03:27:00.000-07:00</published><updated>2008-09-12T03:29:58.327-07:00</updated><title type='text'>PHP file create and open</title><content type='html'>The fopen( ) function.&lt;br /&gt;fopen ($filename, $mode);&lt;br /&gt;$filename - the name of the file. This may also include the absolute path where you want to create the file. Example, "/www/myapp/myfile.txt". &lt;br /&gt;$mode - mode is used to specify how you want to create the file. For example, you can set the mode to create for read only, or create a file for read and write. Below is the list of possible modes you can use. &lt;br /&gt; If successful this function returns the file handle, otherwise it returns a false value.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-6245456288711553961?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/6245456288711553961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=6245456288711553961&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6245456288711553961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6245456288711553961'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-file-create-and-open.html' title='PHP file create and open'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-7365535181873846293</id><published>2008-09-12T03:20:00.000-07:00</published><updated>2008-09-12T03:27:43.470-07:00</updated><title type='text'>Other functions</title><content type='html'>bool session_is_registered ( string $name ) &lt;br /&gt; Finds out whether a global variable is registered in a session. &lt;br /&gt;&lt;br /&gt;bool isset($_SESSION[$name]) may also be used.&lt;br /&gt;&lt;br /&gt;void session_unset ( void ) &lt;br /&gt; The session_unset() function frees all session variables currently registered. &lt;br /&gt; No value is returned.&lt;br /&gt;&lt;br /&gt;bool session_unregister ( string $name ) &lt;br /&gt; session_unregister() unregisters the global variable named name from the current session. &lt;br /&gt;string session_save_path ([ string $path ] ) &lt;br /&gt; session_save_path() returns the path of the current directory used to save session data. &lt;br /&gt;&lt;br /&gt;bool session_destroy ( void ) &lt;br /&gt; session_destroy() destroys all of the data associated with the current session. It does not unset any of the global variables associated with the session, or unset the session cookie. &lt;br /&gt; Returns TRUE on success or FALSE on failure.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-7365535181873846293?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/7365535181873846293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=7365535181873846293&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7365535181873846293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/7365535181873846293'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/other-functions.html' title='Other functions'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-5634856721845110439</id><published>2008-09-08T07:13:00.000-07:00</published><updated>2008-09-08T07:14:07.133-07:00</updated><title type='text'>Session Name &amp; ID</title><content type='html'>string session_name ([ string $name ] ) &lt;br /&gt;session_name() returns the name of the current session. &lt;br /&gt; The session name is reset to the default value stored in session.name at request startup time.&lt;br /&gt;&lt;br /&gt;string session_id ([ string $id ] ) &lt;br /&gt; session_id() is used to get or set the session id for the current session. &lt;br /&gt; The constant SID can also be used to retrieve the current name and session id as a string suitable for adding to URLs.&lt;br /&gt;&lt;br /&gt;bool session_regenerate_id ([ bool $delete_old_session ] ) &lt;br /&gt; session_regenerate_id() will replace the current session id with a new one, and keep the current session information.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-5634856721845110439?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/5634856721845110439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=5634856721845110439&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/5634856721845110439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/5634856721845110439'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/session-name-id.html' title='Session Name &amp; ID'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-8203602084514994350</id><published>2008-09-08T07:12:00.001-07:00</published><updated>2008-09-08T07:12:39.992-07:00</updated><title type='text'>Session Start</title><content type='html'>bool session_start ( void ) &lt;br /&gt; Creates a session or resumes the current one based on the current session id that's being passed via a request, such as GET, POST, or a cookie. &lt;br /&gt; This function always returns TRUE. &lt;br /&gt;Example:&lt;br /&gt;&lt;?phpsession_start();echo 'Welcome to this page';$_SESSION['favcolor'] = 'green';$_SESSION['animal']   = 'cat';$_SESSION[‘username'] = ”Taimoor Bhandara”;&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-8203602084514994350?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/8203602084514994350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=8203602084514994350&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8203602084514994350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8203602084514994350'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/session-start.html' title='Session Start'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-98835287212376849</id><published>2008-09-08T07:09:00.000-07:00</published><updated>2008-09-08T07:12:08.975-07:00</updated><title type='text'>PHP Session Functions Reference</title><content type='html'>session_cache_expire — Return current cache expire&lt;br /&gt;session_cache_limiter — Get and/or set the current cache limiter&lt;br /&gt;session_commit — Alias of session_write_close&lt;br /&gt;session_decode — Decodes session data from a string&lt;br /&gt;session_destroy — Destroys all data registered to a session&lt;br /&gt;session_encode — Encodes the current session data as a string&lt;br /&gt;session_get_cookie_params — Get the session cookie parameters&lt;br /&gt;session_id — Get and/or set the current session id&lt;br /&gt;session_is_registered — Find out whether a global variable is registered in a session&lt;br /&gt;session_module_name — Get and/or set the current session module&lt;br /&gt;session_name — Get and/or set the current session name&lt;br /&gt;session_regenerate_id — Update the current session id with a newly generated one&lt;br /&gt;session_register — Register one or more global variables with the current session&lt;br /&gt;session_save_path — Get and/or set the current session save path&lt;br /&gt;session_set_cookie_params — Set the session cookie parameters&lt;br /&gt;session_set_save_handler — Sets user-level session storage functions&lt;br /&gt;session_start — Initialize session data&lt;br /&gt;session_unregister — Unregister a global variable from the current session&lt;br /&gt;session_unset — Free all session variables&lt;br /&gt;session_write_close — Write session data and end session&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-98835287212376849?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/98835287212376849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=98835287212376849&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/98835287212376849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/98835287212376849'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-session-functions-reference.html' title='PHP Session Functions Reference'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-8451956762115915454</id><published>2008-09-08T07:07:00.000-07:00</published><updated>2008-09-08T07:08:36.808-07:00</updated><title type='text'>What is a PHP Session?</title><content type='html'>A way to preserve certain data across subsequent accesses.&lt;br /&gt;&lt;br /&gt; A session allows you to store user information on the server for later use (i.e. username, shopping cart items, etc).&lt;br /&gt;&lt;br /&gt; A session stores such information in the form of session variables for as long as the user is logged in or the application is running.&lt;br /&gt;SAMPLE CODE:&lt;br /&gt;&lt;?php session_start();&lt;br /&gt;$_SESSION["username"] = “IMRAN";&lt;br /&gt;$_SESSION[“nickname"] = “delta"; &lt;br /&gt;…&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-8451956762115915454?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/8451956762115915454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=8451956762115915454&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8451956762115915454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8451956762115915454'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/what-is-php-session.html' title='What is a PHP Session?'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-473580611747106801</id><published>2008-09-08T07:06:00.000-07:00</published><updated>2008-09-10T07:37:37.472-07:00</updated><title type='text'>PHP Form handling – POST Method</title><content type='html'>&lt;textarea rows="15" cols="40"&gt;&lt;br /&gt;&lt;form action="recv_form_post.php" method="post"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt; Enter your roll number  &lt;input name="txtName" size="7"&gt;&lt;br /&gt;Enter your name         &lt;input name="txtRno"  size="25"&gt; &lt;br /&gt;Enter your address      &lt;input name="txtAdrs" size="35"&gt;  &lt;br /&gt;input type="reset" value="Reset" input type="submit" value="Send"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/form&gt;&lt;br /&gt;&lt;/textarea&gt;&lt;br /&gt;To receive data from POST method form we can use $_POST[ ]  collection.&lt;br /&gt;&lt;?php&lt;br /&gt; echo "Your name is: ".$_POST["txtName"]."&lt;br&gt;";&lt;br /&gt; echo "Your roll number is: ".$_POST["txtRno"]."&lt;br&gt;";&lt;br /&gt; echo "Your address is: ".$_POST["txtAdrs"]."&lt;br&gt;";&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;PHP provides another collection by the name $_REQUEST[ ].&lt;br /&gt;This collection may be used for both the methods; GET &amp; POST.&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt; foreach ($_REQUEST as $key =&gt; $value)&lt;br /&gt; {&lt;br /&gt;  echo $key."=".$value."&lt;br&gt;";&lt;br /&gt; }&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-473580611747106801?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/473580611747106801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=473580611747106801&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/473580611747106801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/473580611747106801'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-form-handling-post-method.html' title='PHP Form handling – POST Method'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-6232108295849322359</id><published>2008-09-08T07:05:00.001-07:00</published><updated>2008-09-10T07:41:56.909-07:00</updated><title type='text'>PHP Form handling – GET Method</title><content type='html'>HTML Forms same as before.&lt;br /&gt;Two submission methods: 	POST and GET.&lt;br /&gt;&lt;textarea rows="15" cols="40"&gt;&lt;br /&gt;&lt;br /&gt;	&lt;form action="recv_form_get.php" method="get"&gt;&lt;br /&gt;	&lt;pre&gt;&lt;br /&gt;		Enter your roll number  &lt;input name="txtName" size="7"&gt;&lt;br /&gt;		Enter your name         &lt;input name="txtRno"  size="25"&gt;	&lt;br /&gt;		Enter your address      &lt;input name="txtAdrs" size="35"&gt;	&lt;br /&gt;		&lt;input type="reset" value="Reset"&gt;&lt;br /&gt;		&lt;input type="submit" value="Send"&gt;&lt;br /&gt;	&lt;/pre&gt;&lt;br /&gt;	&lt;/form&gt;&lt;br /&gt;    &lt;br /&gt;Using the GET method.&lt;br /&gt;How to receive data from GET method form.&lt;br /&gt;We can use the PHP’s $_GET[ ] collection.&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;	echo "Your name is: ".$_GET['txtName']."&lt;br&gt;";&lt;br /&gt;	echo "Your roll number is: ".$_GET['txtRno']."&lt;br&gt;";&lt;br /&gt;	echo "Your address is: ".$_GET['txtAdrs']."&lt;br&gt;";&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&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/885538887574940127-6232108295849322359?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/6232108295849322359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=6232108295849322359&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6232108295849322359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6232108295849322359'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-form-handling-get-method_08.html' title='PHP Form handling – GET Method'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-6432650540147631462</id><published>2008-09-08T07:04:00.000-07:00</published><updated>2008-09-10T07:42:20.776-07:00</updated><title type='text'>The ‘include’ and ‘require’ functions Example</title><content type='html'>Example:&lt;br /&gt;&lt;textarea rows="15" cols="40"&gt;&lt;br /&gt;&lt;?php&lt;br /&gt; echo "&lt;br&gt;&lt;center&gt;Hi i am a table PHP script";&lt;br /&gt;?&gt;&lt;br /&gt;&lt;table style="font-family:arial;" cellpadding="10" border="2"&gt;&lt;br /&gt; &lt;tr&gt;&lt;th&gt;Country&lt;/th&gt;&lt;th&gt;Capital&lt;/th&gt;&lt;/tr&gt;&lt;br /&gt; &lt;tr&gt;&lt;td&gt;AFGHANISTAN&lt;/td&gt;&lt;td&gt;KABUL&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt; &lt;tr&gt;&lt;td&gt;BANGLADESH&lt;/td&gt;&lt;td&gt;DHAKA&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt; &lt;tr&gt;&lt;td&gt;CHINA&lt;/td&gt;&lt;td&gt;BEIJING&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt; &lt;tr&gt;&lt;td&gt;ETHIOPIA&lt;/td&gt;&lt;td&gt;ADISABABA&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt; &lt;tr&gt;&lt;td&gt;FRANCE&lt;/td&gt;&lt;td&gt;PARIS&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt; &lt;tr&gt;&lt;td&gt;INDIA&lt;/td&gt;&lt;td&gt;NEW DEHLI&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt; &lt;tr&gt;&lt;td&gt;IRAN&lt;/td&gt;&lt;td&gt;TEHRAN&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt; &lt;tr&gt;&lt;td&gt;PAKISTAN&lt;/td&gt;&lt;td&gt;ISLAMABAD&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt; &lt;tr&gt;&lt;td&gt;POLAND&lt;/td&gt;&lt;td&gt;WARSAW&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;?php&lt;br /&gt; echo "&lt;/center&gt;";&lt;br /&gt;?&gt; &lt;br /&gt;Example (Continued):&lt;br /&gt;&lt;?php&lt;br /&gt; echo "Hi, I'm a PHP script! and I use a table";&lt;br /&gt; require("A_PHP_TABLE.PHP");&lt;br /&gt; echo "I hope you have understood";&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/textarea&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-6432650540147631462?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/6432650540147631462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=6432650540147631462&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6432650540147631462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6432650540147631462'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/include-and-require-functions-example.html' title='The ‘include’ and ‘require’ functions Example'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-4487178737910815171</id><published>2008-09-08T07:03:00.001-07:00</published><updated>2008-09-10T07:42:41.529-07:00</updated><title type='text'>The ‘include’ and ‘require’ functions</title><content type='html'>Include and require are used to reuse external php scripts that may contain HTML, PHP, etc.&lt;br /&gt;&lt;textarea rows="15" cols="40"&gt;&lt;br /&gt; Syntax:&lt;br /&gt;  require(&lt;nameofhtmlorphp&gt;)&lt;br /&gt;  or &lt;br /&gt;  include(&lt;nameofhtmlorphp&gt;)&lt;br /&gt;&lt;/textarea&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-4487178737910815171?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/4487178737910815171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=4487178737910815171&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/4487178737910815171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/4487178737910815171'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/include-and-require-functions.html' title='The ‘include’ and ‘require’ functions'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-1445549132675016926</id><published>2008-09-08T06:59:00.000-07:00</published><updated>2008-09-08T07:02:28.214-07:00</updated><title type='text'>DATE &amp; TIME Formats</title><content type='html'>The basic PHP date and time functions let you format timestamps for use in database queries or simply for displaying the date and time in the browser window.&lt;br /&gt; PHP includes the following date and time functions: &lt;br /&gt; date(format)&lt;br /&gt; Returns the current server time, formatted according to a given set of parameters. &lt;br /&gt;&lt;br /&gt; checkdate(month, day, year)&lt;br /&gt; Validates a given date. Successful validation means that the year is between 0 and 32767, the month is between 1 and 12, and the proper number of days in each month. &lt;br /&gt;&lt;br /&gt; time()&lt;br /&gt; Returns the current server time, measured in seconds since the Epoch or January 1, 1970. &lt;br /&gt; a Prints "am" or "pm“&lt;br /&gt; A Prints "AM" or "PM".&lt;br /&gt; h Hour in 12-hour format (01 to 12) &lt;br /&gt; H Hour in 24-hour format (00 to 23) &lt;br /&gt; g Hour in 12-hour format without a leading zero (1 to 12) &lt;br /&gt; G Hour in 24-hour format without a leading zero (0 to 23) &lt;br /&gt; i Minutes (00 to 59) &lt;br /&gt; s Seconds (00 to 59)&lt;br /&gt; d Day of the month in two digits (01 to 31) &lt;br /&gt; D Day of the week in text (Mon to Sun) &lt;br /&gt; l Day of the week in long text (Monday to Sunday) &lt;br /&gt; F Month in long text (January to December) &lt;br /&gt; n Month in two digits (1 to 12) &lt;br /&gt; Y Year in four digits (2005) &lt;br /&gt; y Year in two digits (05) &lt;br /&gt; s English ordinal suffix (th, nd, st)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-1445549132675016926?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/1445549132675016926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=1445549132675016926&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/1445549132675016926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/1445549132675016926'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/date-time-formats.html' title='DATE &amp; TIME Formats'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-6542994126285060439</id><published>2008-09-08T06:53:00.001-07:00</published><updated>2008-09-10T07:45:58.947-07:00</updated><title type='text'>SAMPLE CODES</title><content type='html'>&lt;textarea rows="15" cols="40"&gt;&lt;br /&gt;CODE #1&lt;br /&gt;&lt;br /&gt;        &lt;?php&lt;br /&gt;            echo "Hi, I'm a PHP script!";&lt;br /&gt;        ?&gt;&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;CODE #2.&lt;br /&gt;&lt;br /&gt;&lt;? echo ("Welcome to our first PHP script"); ?&gt;&lt;br /&gt;&lt;?$myname="MASROOR HUSSAIN"?&gt;&lt;br /&gt;&lt;?echo ("&gt;My name is $myname");?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CODE #3.&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;$arr = array();&lt;br /&gt;$arr[0]=34;&lt;br /&gt;$arr[1]=12;&lt;br /&gt;$arr[2]=90;&lt;br /&gt;$arr[3]=12;&lt;br /&gt;$arr[4]=6;&lt;br /&gt;$arr[5]=49;&lt;br /&gt;$arr[6]=1;&lt;br /&gt;$arr[7]=23;&lt;br /&gt;$arr[8]=56;&lt;br /&gt;$arr[9]=21;&lt;br /&gt;for ($i=0;$i&lt;10;$i++)&lt;br /&gt;echo "Value at $i is $arr[$i]";&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CODE #4.&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;$arr = array();&lt;br /&gt;$arr[0]=34;&lt;br /&gt;$arr[1]=12;&lt;br /&gt;$arr[2]=90;&lt;br /&gt;$arr[3]=12;&lt;br /&gt;$arr[4]=6;&lt;br /&gt;$arr[5]=49;&lt;br /&gt;$arr[6]=1;&lt;br /&gt;$arr[7]=23;&lt;br /&gt;$arr[8]=56;&lt;br /&gt;$arr[9]=21;&lt;br /&gt;echo (" Unsorted");&lt;br /&gt;for ($i=0;$i&lt;10;$i++)&lt;br /&gt;echo ("Value at $i is $arr[$i]");&lt;br /&gt;sort($arr);&lt;br /&gt;echo (" Sorted");&lt;br /&gt;foreach ($arr as $n)&lt;br /&gt;echo ("Value is --&gt;$n");&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CODE #5.&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;$arr = array();&lt;br /&gt;$arr[0]=34;&lt;br /&gt;$arr[1]=12;&lt;br /&gt;$arr[2]=90;&lt;br /&gt;$arr[3]=12;&lt;br /&gt;$arr[4]=6;&lt;br /&gt;$arr[5]=49;&lt;br /&gt;$arr[6]=1;&lt;br /&gt;$arr[7]=23;&lt;br /&gt;$arr[8]=56;&lt;br /&gt;$arr[9]=21;&lt;br /&gt;echo (" Unsorted");&lt;br /&gt;for ($i=0;$i&lt;10;$i++)&lt;br /&gt;echo ("Value at $i is $arr[$i]");&lt;br /&gt;sort($arr);&lt;br /&gt;echo (" Sorted");&lt;br /&gt;for ($i=0;$i&lt;10;$i++)&lt;br /&gt;echo ("Value at $i is $arr[$i]");&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;/textarea&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-6542994126285060439?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/6542994126285060439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=6542994126285060439&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6542994126285060439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/6542994126285060439'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/sample-codes.html' title='SAMPLE CODES'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-8485356651676940309</id><published>2008-09-08T06:36:00.000-07:00</published><updated>2008-09-08T06:37:25.249-07:00</updated><title type='text'>PHP Contents (Continued)</title><content type='html'>PHP Strings.&lt;br /&gt;•Strings can be specified using one of two sets of delimiters.&lt;br /&gt;•If the string is enclosed in double-quotes ("), variables within the string will be expanded (subject to some parsing limitations).&lt;br /&gt;•As in C the backslash ("\") character can be used in specifying special characters:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;String manipulation functions.&lt;br /&gt;•substr(&lt;string&gt;,&lt;start&gt;,[&lt;length&gt;]);&lt;br /&gt;•strlen(&lt;string&gt;);&lt;br /&gt;•trim(&lt;string&gt;);&lt;br /&gt;•ltrim(&lt;string&gt;); // Trim left&lt;br /&gt;•rtrim(&lt;string&gt;); // Trim right&lt;br /&gt;•strtolower(&lt;string&gt;);&lt;br /&gt;•strtoupper(&lt;string&gt;);&lt;br /&gt;•str_replace(&lt;search&gt;,&lt;replace&gt;,&lt;string&gt;,[&lt;count&gt;]);&lt;br /&gt;•strpos(&lt;string&gt;, &lt;search&gt;);&lt;br /&gt;•strcmp(&lt;string1&gt;,&lt;string2&gt;); (Binary safe string comparison)&lt;br /&gt;•strcasecmp(&lt;string1&gt;,&lt;string2&gt;); (Binary safe case-insensitive comparison)&lt;br /&gt;•explode(&lt;delim&gt;,&lt;string&gt;,[&lt;limit&gt;]); (Break string into array)&lt;br /&gt;•implode(&lt;delim&gt;,&lt;array&gt;); (Join array into string separated by delim)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-8485356651676940309?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/8485356651676940309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=8485356651676940309&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8485356651676940309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8485356651676940309'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-contents-continued_3355.html' title='PHP Contents (Continued)'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-8508885664014337222</id><published>2008-09-08T06:34:00.000-07:00</published><updated>2008-09-08T06:36:16.645-07:00</updated><title type='text'>PHP Contents (Continued)</title><content type='html'>The IF statement.&lt;br /&gt;if (&lt;condition&gt;)&lt;br /&gt;{ &lt;statement&gt;; }&lt;br /&gt;elseif (&lt;condition&gt;)&lt;br /&gt;{ &lt;statement&gt;; }&lt;br /&gt;else&lt;br /&gt;{ &lt;statement&gt;; }&lt;br /&gt;The inline (ternary) if.&lt;br /&gt;•&lt;condition&gt; ? true : false;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The switch-case statement.&lt;br /&gt;switch (&lt;expression&gt;)&lt;br /&gt;{&lt;br /&gt;case &lt;literal&gt;:&lt;br /&gt;&lt;statements&gt;;&lt;br /&gt;[break;]&lt;br /&gt;case &lt;literal&gt;:&lt;br /&gt;&lt;statements&gt;;&lt;br /&gt;[break;]&lt;br /&gt;default:&lt;br /&gt;&lt;statements&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The for loop statement.&lt;br /&gt;for (&lt;initialize&gt;;&lt;condition&gt;;&lt;update&gt;)&lt;br /&gt;{&lt;br /&gt;&lt;statements&gt;;&lt;br /&gt;}&lt;br /&gt;The foreach loop statement.&lt;br /&gt;foreach (&lt;array&gt; as [&lt;value&gt; &lt;key&gt; =&gt; &lt;value&gt;])&lt;br /&gt;{&lt;br /&gt;&lt;statements&gt;;&lt;br /&gt;[break];&lt;br /&gt;[continue];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The while loop statement.&lt;br /&gt;while (&lt;condition&gt;)&lt;br /&gt;{&lt;br /&gt;&lt;statements&gt;;&lt;br /&gt;}&lt;br /&gt;The do-while loop statement.&lt;br /&gt;do&lt;br /&gt;{&lt;br /&gt;&lt;statements&gt;;&lt;br /&gt;} while (&lt;condition&gt;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The PHP functions.&lt;br /&gt;function &lt;function_name&gt;([&lt;parameters&gt;])&lt;br /&gt;{&lt;br /&gt;&lt;statements&gt;;&lt;br /&gt;[return &lt;value&gt;;]&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-8508885664014337222?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/8508885664014337222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=8508885664014337222&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8508885664014337222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/8508885664014337222'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-contents-continued_08.html' title='PHP Contents (Continued)'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-5647340899098221977</id><published>2008-09-08T06:32:00.000-07:00</published><updated>2008-09-08T06:34:18.098-07:00</updated><title type='text'>PHP Contents (Continued)</title><content type='html'>Comments in PHP.&lt;br /&gt;–// Comment text&lt;br /&gt;–/* Multi-line comment text */&lt;br /&gt;–# Comment text&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Operators in PHP.&lt;br /&gt;•Arithmetic Operators.&lt;br /&gt;–+ (Addition), - (Subtraction), * (Multiplication), / (Division), % (Modulus)&lt;br /&gt;•Relational Operators.&lt;br /&gt;–== (Equal), === (Equal with type comparison),&lt;br /&gt;–!= (Not equal), &lt;&gt; (Not equal), !== (Not Equal with type comparison),&lt;br /&gt;–&lt; (Less than), &gt; (Greater than), &lt;= (Less than or equal to), &gt;= (Greater than or equal to)&lt;br /&gt;•Logical Operators.&lt;br /&gt;–! (logical NOT), &amp;amp;&amp;amp; (logical AND),  (logical OR), xor (logical XOR)&lt;br /&gt;•Assignment Operators.&lt;br /&gt;–= (Assign), += (Addition), -= (Subtraction), *= (Multiplication), /= (Division),&lt;br /&gt;–.=(Concatenation), %= (Modulus), &amp;amp;= (And), = (Or),&lt;br /&gt;–^= (Exclusive Or), &lt;&lt;= (Left Shift), &gt;&gt;=(Right Shift)&lt;br /&gt;•Concatenation Operator.&lt;br /&gt;–. (dot)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Predefined Super Globals.&lt;br /&gt;•$GLOBALS (Access all global variables in script)&lt;br /&gt;•$_SERVER (Access web server variables)&lt;br /&gt;•$_GET (Values passed to script through URL)&lt;br /&gt;•$_POST (Values passed to script through HTTP Post)&lt;br /&gt;•$_COOKIE (Values passed by user cookie)&lt;br /&gt;•$_FILES (Values passed by HTTP Post File Uploads)&lt;br /&gt;•$_ENV (Values passed to script via the environment)&lt;br /&gt;•$_REQUEST (Values passed by URL, HTTP Post, or user Cookies)&lt;br /&gt;•$_SESSION (Values passed through user's session)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-5647340899098221977?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/5647340899098221977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=5647340899098221977&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/5647340899098221977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/5647340899098221977'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-contents-continued.html' title='PHP Contents (Continued)'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-885538887574940127.post-5441256535126756089</id><published>2008-09-08T06:18:00.000-07:00</published><updated>2008-09-08T06:32:28.676-07:00</updated><title type='text'>PHP Contents</title><content type='html'>Data Types &amp;amp; Variable Declarations.&lt;br /&gt;•Data Types.&lt;br /&gt;–integer, float, boolean, string, array, object, resource, NULL&lt;br /&gt;•Variable Declarations.&lt;br /&gt;–$variablename = &lt;value&gt;;&lt;br /&gt;–$anothervariable =&amp;amp; $variablename; (Assign by Reference)&lt;br /&gt;•Array Declarations.&lt;br /&gt;–$arrayname = array();&lt;br /&gt;&lt;br /&gt;More on arrays.&lt;br /&gt;$a[0] = "abc";&lt;br /&gt;$a[1] = "def";&lt;br /&gt;$b["foo"] = 13; (Associative subscript).&lt;br /&gt;You can also create an array by simply adding values to the array.&lt;br /&gt;When you assign a value to an array variable using empty brackets, the value will be added onto the end of the array.&lt;br /&gt;$a[] = "hello"; // $a[2] == "hello"&lt;br /&gt;$a[] = "world"; // $a[3] == "world"&lt;br /&gt;&lt;br /&gt;Double dimension arrays.&lt;br /&gt;$arr[2][3] = array();&lt;br /&gt;$arr[0][0] = 34;&lt;br /&gt;&lt;br /&gt;Array Functions.&lt;br /&gt;•sort(&lt;array&gt;); (Sort array assigns new keys)&lt;br /&gt;•asort(&lt;array&gt;); (Sort array maintain keys)&lt;br /&gt;•rsort(&lt;array&gt;); (Sort array in reverse, new keys)&lt;br /&gt;•arsort(&lt;array&gt;); (Sort array in reverse, maintain keys)&lt;br /&gt;•count(&lt;array&gt;); (Count elements)&lt;br /&gt;•count(&lt;array&gt;,COUNT_RECURSIVE); (Count multidimensional array)&lt;br /&gt;•array_push(&lt;array&gt;,&lt;value&gt;); (Push item onto end of array)&lt;br /&gt;•array_pop(&lt;array&gt;); (Pop item off end of array)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/885538887574940127-5441256535126756089?l=learnerphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnerphp.blogspot.com/feeds/5441256535126756089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=885538887574940127&amp;postID=5441256535126756089&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/5441256535126756089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/885538887574940127/posts/default/5441256535126756089'/><link rel='alternate' type='text/html' href='http://learnerphp.blogspot.com/2008/09/php-contents.html' title='PHP Contents'/><author><name>Ozair Khan</name><uri>http://www.blogger.com/profile/14304276102987375465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_4_j79yPJGTo/SQMsOAeZc4I/AAAAAAAAAKQ/X0zSEyvY_vY/S220/Copy+of+Copy+of+clip_image002.jpg'/></author><thr:total>0</thr:total></entry></feed>
