<?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-2850957657668385289</id><updated>2012-02-16T11:28:41.125-08:00</updated><category term='redwire.net'/><category term='mysql_connect()'/><category term='403 error'/><category term='MainFrame.err'/><category term='short tags'/><category term='MySQL'/><category term='Champagne'/><category term='Javascript'/><category term='Ron Rivest'/><category term='command prompt'/><category term='string variable'/><category term='WebThang'/><category term='Windows Services'/><category term='loadmodule'/><category term='services.msc. Apache 2.2'/><category term='test.php.'/><category term='c:/mysql'/><category term='php.net'/><category term='localhost'/><category term='freewebmasterhelp.com'/><category term='phpinidir'/><category term='DocumentRoot'/><category term='mysql extensions'/><category term='PHP'/><category term='apache configuration file'/><category term='httpd.conf'/><category term='MySQL Server Configuration'/><category term='addtype'/><category term='CREATE DATABASE'/><category term='MySQL 5.0'/><category term='php.ini'/><category term='PHPMyAdmin'/><category term='atbhost.com'/><category term='Benchmark'/><category term='server'/><category term='Elementssbyclass'/><category term='downloading'/><category term='MD5'/><category term='Apache 2.2'/><category term='googling'/><category term='password'/><category term='mysql_create_db()'/><category term='Installation'/><category term='database'/><category term='mysql_query()'/><category term='checksum'/><title type='text'>My Ordeals With Programming</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-3372746024560259959</id><published>2009-06-29T23:36:00.000-07:00</published><updated>2009-06-30T03:36:48.359-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Elementssbyclass'/><title type='text'>Javascript - Elements by Class</title><content type='html'>// JavaScript Document&lt;br /&gt;// If Core doesn't exist, make it an empty object&lt;br /&gt;Core = Core || {};&lt;br /&gt;Core.getElementsByClass = function(theclass) {&lt;br /&gt;&lt;br /&gt;var matchedArray = [];&lt;br /&gt;&lt;br /&gt;if (typeof document.all != "undefined") {   //Explorer 5.x and other browsers only&lt;br /&gt;    elementArray = document.all;            //support document.all to retrieve all document&lt;br /&gt;    }                              //elements&lt;br /&gt;else {&lt;br /&gt;    elementArray = document.getElementsByTagName("*");&lt;br /&gt;    }&lt;br /&gt;  &lt;br /&gt;//the following variable uses RegExp to find a particular string pattern.&lt;br /&gt;//in this case, it is the name of the class we are searching for.&lt;br /&gt;var pattern = new RegExp("(^| )" + theclass+ "( |$)");&lt;br /&gt;&lt;br /&gt;var matchedArray[];  //to hold matched class name elements&lt;br /&gt;&lt;br /&gt;//now we need to search through all the collected elements in the document and&lt;br /&gt;//see if they match the class pattern described in the var pattern&lt;br /&gt;for (var i=0; i&lt;elementArray.length; i++) {&lt;br /&gt;    if (pattern.test(elementArray[i].className)) {&lt;br /&gt;        matchedArray[matchedArray.length]=elementArray[i];&lt;br /&gt;        }&lt;br /&gt;    }   //end for loop&lt;br /&gt;&lt;br /&gt;return matchedArray;&lt;br /&gt;&lt;br /&gt;}   //end Core.getElementsByClass&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alert("Hello there");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-3372746024560259959?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/3372746024560259959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=3372746024560259959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/3372746024560259959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/3372746024560259959'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2009/06/javascript-elements-by-class.html' title='Javascript - Elements by Class'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-4240135531894344373</id><published>2009-06-29T23:34:00.000-07:00</published><updated>2009-06-29T23:36:37.208-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='atbhost.com'/><title type='text'>Back and working with PHP/MySQL and some Javascript</title><content type='html'>Using one of those free hosting sites that allow PHP/MySQL - http://www.atbhost.com in particular - I've started working on php scripts. I've also found Javascript to be helpful.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-4240135531894344373?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/4240135531894344373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=4240135531894344373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/4240135531894344373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/4240135531894344373'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2009/06/back-and-working-with-phpmysql-and-some.html' title='Back and working with PHP/MySQL and some Javascript'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-8867649436626725663</id><published>2008-11-24T18:29:00.000-08:00</published><updated>2008-11-24T18:35:18.054-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Services'/><category scheme='http://www.blogger.com/atom/ns#' term='services.msc. Apache 2.2'/><title type='text'>Back from a long Hiatus</title><content type='html'>It's been awhile since I last worked on this project. (Okay, so I didn't really get far) I am determined to finish it though. I'm back in action! I just dusted off Apache 2.2 and started it up and it failed to start. I just clicked on the services button (it can also be reached via press ing Start-&gt;Run-&gt; then entering services.msc into the field and clicking 'OK'), right clicked on Apache2.2 in the list of services and selected properties. The drop down list under the Startup Type section was changed to disabled. I just changed it to automatic, clicked 'OK' and then clicked Start on the upper left of the services window and I was good to go.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-8867649436626725663?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/8867649436626725663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=8867649436626725663' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/8867649436626725663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/8867649436626725663'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2008/11/back-from-long-hiatus.html' title='Back from a long Hiatus'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-2001904477501490017</id><published>2007-05-01T19:26:00.000-07:00</published><updated>2007-05-01T22:06:00.586-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CREATE DATABASE'/><category scheme='http://www.blogger.com/atom/ns#' term='string variable'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>My PHP Finally Creates A Database</title><content type='html'>I finally created a database using PHP. I just followed the example closely:&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php&lt;br /&gt;$link = mysql_connect('localhost', 'root', '*****');&lt;br /&gt;if (!$link) {&lt;br /&gt;die('Could not connect: ' . mysql_error());&lt;br /&gt;}&lt;br /&gt;&lt;p&gt;$sql = 'CREATE DATABASE dental_office';&lt;br /&gt;  if (mysql_query($sql, $link)) {&lt;br /&gt;  echo &amp;quot;Database dental_office created successfully\n&amp;quot;;&lt;br /&gt;  } else {&lt;br /&gt;  echo 'Error creating database: ' . mysql_error() . &amp;quot;\n&amp;quot;;&lt;br /&gt;  }&lt;br /&gt;  ?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;Using a string variable to capture the connection tag makes it a lot easier to call in the future. Soon I will be able to create code that allows patients to fill out information online and sent it to the dental office immediately. (This happens to be a very big convenience as I work at a dental office where that is needed :p)&lt;br /&gt;&lt;br /&gt;My code went off without a hitch. I even found there are ways to connect directly to specific ports and sockets by replacing localhost with the site's name or IP. I only have one server and one data base so I don't think I'll be needing that I'm happy to finally be on track. Variables are running well, I'm connecting to MySQL through PHP, I've even gotten PHPMyAdmin to create tables for me on the database.&lt;br /&gt;&lt;br /&gt;Everything is looking up for Milhouse, er Jay.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-2001904477501490017?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/2001904477501490017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=2001904477501490017' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/2001904477501490017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/2001904477501490017'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/05/my-php-finally-creates-database.html' title='My PHP Finally Creates A Database'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-2577679792447166548</id><published>2007-05-01T06:52:00.000-07:00</published><updated>2007-05-01T06:59:10.798-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Benchmark'/><category scheme='http://www.blogger.com/atom/ns#' term='Champagne'/><title type='text'></title><content type='html'>Hey! I just realized this is my 10th post! I've also reached another official benchmark. My Blog appears across two months, April and May!&lt;br /&gt;&lt;br /&gt;To celebrate, here is Champagne!&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ZpgCUjv53xw/RjdGi_EGlrI/AAAAAAAAABM/hAfO6FG-OGo/s1600-h/Champagne-04.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_ZpgCUjv53xw/RjdGi_EGlrI/AAAAAAAAABM/hAfO6FG-OGo/s400/Champagne-04.jpg" alt="" id="BLOGGER_PHOTO_ID_5059590273232180914" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;Creative Commons License, photo from &lt;a href="http://www.freephotobank.org/"&gt;FreePhotoBank.org&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Well I don't drink, but even non-drinkers can appreciate the majesty of Champagne, France!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-2577679792447166548?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/2577679792447166548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=2577679792447166548' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/2577679792447166548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/2577679792447166548'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/05/hey-i-just-realized-this-is-my-10th.html' title=''/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ZpgCUjv53xw/RjdGi_EGlrI/AAAAAAAAABM/hAfO6FG-OGo/s72-c/Champagne-04.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-6568514729408100342</id><published>2007-05-01T06:42:00.000-07:00</published><updated>2007-05-01T06:43:20.474-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freewebmasterhelp.com'/><category scheme='http://www.blogger.com/atom/ns#' term='PHPMyAdmin'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql_connect()'/><category scheme='http://www.blogger.com/atom/ns#' term='php.net'/><title type='text'>Learning PHP-MySQL: Trudging Along</title><content type='html'>In my search for code I entered &lt;span style="font-style: italic;"&gt;mysql php test&lt;/span&gt; on my Google search bar and the first result was &lt;a href="http://www.freewebmasterhelp.com/tutorials/phpmysql" class="l"&gt;&lt;b&gt;PHP&lt;/b&gt;/&lt;b&gt;MySQL&lt;/b&gt; Tutorial - Part 1&lt;/a&gt; by &lt;span style=""&gt;&lt;span class="a"&gt;freewebmasterhelp.com. Feeling lucky (pun intended) I clicked through and upon reading was convinced that a simple &lt;span style="font-style: italic;"&gt;&amp;lt;?php phpinfo(); ?&amp;gt;&lt;/span&gt; was all I needed to check if MySQL was working properly. The tutorial tells me if MySQL is mentioned on the page then it has been installed. I see MySQL and MySQLi and decide to stop right there. Then I decide to start up again.&lt;br /&gt;I see &lt;a href="http://www.freewebmasterhelp.com/tutorials/phpmysql/4"&gt;Part 4 - Displaying Data&lt;/a&gt; and decide to give their code a test drive. I get error messages th&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="a"&gt;at I do not even want to go into so I am going to install &lt;a href="http://www2.blogger.com/www.phpmyadmin.net"&gt;PHPMyAdmin&lt;/a&gt; instead.&lt;br /&gt;Must...procrastinate.....longer.&lt;br /&gt;PHPMyAdmin is an administrative tool that makes handling MySQL easier.&lt;br /&gt;&lt;br /&gt;After downloading PHPMyAdmin I unzipped the contents into &lt;span style="font-style: italic;"&gt;c:/myserver&lt;/span&gt; and entered &lt;span style="font-style: italic;"&gt;http://localhost/phpMyAdmin-2.10.1-all-languages-utf-8-only/scripts/setup.php&lt;/span&gt; in my web browser.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ZpgCUjv53xw/RjbcrvEGlqI/AAAAAAAAABE/ADOtcZWVh-M/s1600-h/phpmyadmin-2.10.1-setup.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_ZpgCUjv53xw/RjbcrvEGlqI/AAAAAAAAABE/ADOtcZWVh-M/s400/phpmyadmin-2.10.1-setup.gif" alt="" id="BLOGGER_PHOTO_ID_5059473875323492002" border="0" /&gt;&lt;/a&gt;&lt;span style=""&gt;&lt;span class="a"&gt;Look at all these wonderful toys.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;So after going through Servers and adding my own with info I found on &lt;span style=""&gt;&lt;span class="a"&gt;&lt;span style="font-style: italic;"&gt;&amp;lt;?php phpinfo(); ?&amp;gt; &lt;/span&gt;&lt;span&gt;I went back to the drawing board and started echoing examples from the official PHP Manual. I have been able to connect to MySQL with the following code which I derived from their section on &lt;a href="http://us.php.net/manual/en/function.mysql-connect.php"&gt;&lt;span style="font-style: italic;"&gt;mysql_connect()&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;//Example 1352. mysql_connect() example&lt;br /&gt;//http://us.php.net/manual/en/function.mysql-connect.php&lt;br /&gt;$user = "root";&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="a"&gt;&lt;span&gt;$password= "*****"; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=""&gt;&lt;span class="a"&gt;&lt;span&gt;$link = mysql_connect('localhost', $user, $password);&lt;br /&gt;if (!$link) {&lt;br /&gt;die('Could not connect: ' . mysql_error());&lt;br /&gt;}&lt;br /&gt;echo 'Connected successfully';&lt;br /&gt;mysql_close($link);&lt;br /&gt;?&amp;gt;&lt;br /&gt;I am able to manipulate databases using PHPMyAdmin. Unfortunately, I still can't create a database using PHP. At least I know it is possible to connect.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-6568514729408100342?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/6568514729408100342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=6568514729408100342' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/6568514729408100342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/6568514729408100342'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/04/learning-php-mysql-trudging-along.html' title='Learning PHP-MySQL: Trudging Along'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ZpgCUjv53xw/RjbcrvEGlqI/AAAAAAAAABE/ADOtcZWVh-M/s72-c/phpmyadmin-2.10.1-setup.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-2176109796807279583</id><published>2007-04-29T14:28:00.000-07:00</published><updated>2007-04-29T14:27:04.922-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql_query()'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql_create_db()'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='php.ini'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>Testing MySQL: Installing MySQL, configuring php.ini and removing deprecated tags.</title><content type='html'>&lt;a href="http://programmingordeals.blogspot.com/2007/04/testing-mysql.html"&gt;Previously&lt;/a&gt;, I was testing MySQL and could not get a page to load at all. I was receiving the error message:&lt;br /&gt;&lt;blockquote&gt;PHP Fatal error:  Call to undefined function mysql_connect()&lt;/blockquote&gt;&lt;br /&gt;I added a couple extensions in php.ini and just now found a new error message appeared.&lt;br /&gt;&lt;blockquote&gt;PHP Warning:  PHP Startup: Unable to load dynamic library './php_mysql.dll'&lt;br /&gt;- The specified module could not be found.\r\n in Unknown on line 0&lt;/blockquote&gt;&lt;br /&gt;It was not looking in the right directory, rather I never specified where to look. Now I have tried setting the extension directory with extension_dir = "c:\php\ext" in php.ini, I have received a new error message. (I'm getting somewhere!)&lt;br /&gt;&lt;blockquote&gt;PHP Fatal error:  Call to undefined function mysql_create_db() in&lt;br /&gt;C:\\myserver\\test_mysql.php on line 33&lt;/blockquote&gt;&lt;br /&gt;I have a feeling I'll be doing a lot of php.ini configuring. After searching for the previous error in google I came across a list of emails in the archives of Neohapsis.com where someone mentioned that &lt;strong&gt;mysql_create_db() &lt;/strong&gt;is deprecated. So much for using older tutorials. I searched for &lt;em&gt;mysql_create-db() deprecated&lt;/em&gt; on Google and came across a comment on the manual that says &lt;strong&gt;mysql_query()&lt;/strong&gt; should be used instead.&lt;br /&gt;&lt;br /&gt;I went back into my test file and changed the two instances of mysql_create_db to mysql_query and finally something appears on the page. Unfortunately the variables are not appearing to be saved. Oh error looooog!,&lt;br /&gt;&lt;blockquote&gt;PHP Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL&lt;br /&gt;result resource in C:\\myserver\\test_mysql.php on line 66&lt;/blockquote&gt;&lt;p&gt;Fetch doesn't have anything to fetch so it is reporting an error. I think I'll find someone elses file to test MySQL with (ignores the little voice saying "Make one yourself you lazy oaf")&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-2176109796807279583?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/2176109796807279583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=2176109796807279583' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/2176109796807279583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/2176109796807279583'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/04/testing-mysql-installing-mysql.html' title='Testing MySQL: Installing MySQL, configuring php.ini and removing deprecated tags.'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-410020310939976176</id><published>2007-04-29T11:26:00.000-07:00</published><updated>2007-04-29T12:21:12.752-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WebThang'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql extensions'/><category scheme='http://www.blogger.com/atom/ns#' term='php.ini'/><title type='text'>Testing MySQL</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;div&gt;I decided to run a test on MySQL to see if it has been configured properly. &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://www.webthang.co.uk/tuts/tuts_server/sirj1/sirj1_2.asp"&gt;WebThang's tutorial&lt;/a&gt; has a test file to use on the end of its MySQL installation tutorial that should work fine (the only change I made was changing &lt;? to &lt;?php to avoid the &lt;a href="http://programmingordeals.blogspot.com/2007/04/testphp-theres-long-tags-and-then.html"&gt;shorthand error&lt;/a&gt;):&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Cut and Paste the following code into 'notepad' and save it as 'c:\web\test_mysql.php'&lt;br /&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;/************************************************************&lt;br /&gt;this script runs only once, it then drops the database before&lt;br /&gt;mysql connection is closed.&lt;br /&gt;************************************************************/ &lt;/p&gt;&lt;br /&gt;&lt;p&gt;/***************************************************&lt;br /&gt;string values passed on to the following 5 variables.&lt;br /&gt;two of each are assigned to 'ice' and the rest three&lt;br /&gt;tag along into 'mysql_connect'&lt;br /&gt;***************************************************/&lt;br /&gt;$iceCreamOne = "Vanilla"; // Type One Ice Cream&lt;br /&gt;$iceCreamTwo = "Cookie Dough Ice Cream"; // Type Two Ice Cream&lt;br /&gt;$host = "localhost"; // hostname...in our case localhost&lt;br /&gt;$username = "root"; // root is our default&lt;br /&gt;$password = "ranginyoka31"; // your mysql password please &lt;/p&gt;&lt;br /&gt;&lt;p&gt;//open connection to the MySQL database server.&lt;br /&gt;$connection = mysql_connect($host,$username,$password);&lt;br /&gt;//if connection fails, display the error involved&lt;br /&gt;if ($connection == false){&lt;br /&gt;echo mysql_errno().": ".mysql_error()."&amp;lt;BR&amp;gt;";&lt;br /&gt;//echo("Your username or password is not correct.");&lt;br /&gt;exit;&lt;br /&gt;} &lt;/p&gt;&lt;br /&gt;&lt;p&gt;/************************************************&lt;br /&gt;After supper we will have two kinds of desserts&lt;br /&gt;create the database then select it. Two functions&lt;br /&gt;called mysql_create_db() &amp; mysql_select_db()&lt;br /&gt;if statements to check success of create &amp;amp; select&lt;br /&gt;************************************************/&lt;br /&gt;$create_success = mysql_create_db("aftersupper");&lt;br /&gt;if($create_success)echo("&amp;lt;b&amp;gt;&amp;lt;font color=\"blue\"&amp;gt;create database: success!&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;");&lt;br /&gt;$select_success = mysql_select_db("aftersupper");&lt;br /&gt;if($select_success)echo("&amp;lt;b&amp;gt;&amp;lt;font color=\"blue\"&amp;gt;selected the created database: success!&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;"); &lt;/p&gt;&lt;br /&gt;&lt;p&gt;/*************************************************************&lt;br /&gt;your choice for 2 desserts&lt;br /&gt;for me I like vanilla[iceCreamOne] &amp; cookie dough[iceCreamTwo]&lt;br /&gt;*************************************************************/&lt;br /&gt;mysql_query("CREATE TABLE desserts(iceCreamOne VARCHAR(25),&lt;br /&gt;iceCreamTwo VARCHAR(25))"); &lt;/p&gt;&lt;br /&gt;&lt;p&gt;/**********************************************************&lt;br /&gt;i put my two favorite ice cream types into table desserts: vanilla &amp; cookie dough&lt;br /&gt;remember im using variables that have been assigned with strings up there ^^^.&lt;br /&gt;*********************************************************/&lt;br /&gt;mysql_query ("INSERT INTO desserts (iceCreamOne, iceCreamTwo) VALUES&lt;br /&gt;('$iceCreamOne', '$iceCreamTwo')"); &lt;/p&gt;&lt;br /&gt;&lt;p&gt;/********************************************************&lt;br /&gt;as long as there is information in the table keep printing.&lt;br /&gt;i have two values in table 'desserts', both rows are passed to variable 'result'&lt;br /&gt;**********************************************************/&lt;br /&gt;$result = mysql_query ("SELECT * FROM desserts"); &lt;/p&gt;&lt;br /&gt;&lt;p&gt;//checking to see that select was successfull&lt;br /&gt;//if ($result){echo "&amp;lt;h2&amp;gt;Successfully selected from table desserts!&amp;lt;/h2&amp;gt;\n";} &lt;/p&gt;&lt;br /&gt;&lt;p&gt;//assign the number of rows from variable $result to $numOfRows&lt;br /&gt;//$numOfRows = mysql_num_rows ($result); &lt;/p&gt;&lt;br /&gt;&lt;p&gt;//for ($i = 0; $i &amp;lt; $numOfRows; $i++)&lt;br /&gt;//{&lt;br /&gt;$row = mysql_fetch_array($result);&lt;br /&gt;print ("&amp;lt;h3&amp;gt;My 2 most favorite Ice Cream are:&amp;lt;/h3&amp;gt;&amp;lt;br&amp;gt;\n");&lt;br /&gt;print($row["iceCreamOne"]." and ");&lt;br /&gt;print($row["iceCreamTwo"]. "&amp;lt;br&amp;gt;");&lt;br /&gt;// } &lt;/p&gt;&lt;br /&gt;&lt;p&gt;//Database gets dropped. You can comment the line below if you wish to keep the database&lt;br /&gt;mysql_query("DROP DATABASE aftersupper"); &lt;/p&gt;&lt;br /&gt;&lt;p&gt;//close the connection to the db with the particular user :: $username&lt;br /&gt;mysql_close();&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;So I tried to run the program and ended up getting a blank page. I looked at the MainFrame.err file and didn't see anything peculiar. I then looked at Apache's access log and found nothing. &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;The problem appeared in Apache's error log:&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;[Sun Apr 29 11:30:43 2007] [error] [client ###.#.#.#] PHP Fatal error: Call to undefined function mysql_connect() in C:\\myserver\\test_mysql.php on line 19&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;I searched for "PHP Fatal error: Call to undefined function mysql_connect()" on Google and found &lt;a href="http://forums.mysql.com/read.php?52,98383,150441"&gt;this&lt;/a&gt; thread on MySQL. At the &lt;a href="http://forums.mysql.com/read.php?52,98383,98383#msg-98383"&gt;top&lt;/a&gt; of the thread the first poster has the same problem as many others do. At the end of the thread the poster says the solution is located in the second to last post (a lot of pointing going on). &lt;a href="http://forums.mysql.com/read.php?52,98383,147819#msg-147819"&gt;That&lt;/a&gt; thread finally leads me to &lt;a href="http://www.siteinaweek.com/installphp5/howto.php#apache"&gt;siteinaweek.com&lt;/a&gt; which finally makes me say "Oh, duh". &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;I forgot to add extensions for MySQL in php.ini &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;I just removed the semi-colin before "extension=php_mysql.dll" like so&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5058929535463364242" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_ZpgCUjv53xw/RjTtm_EGlpI/AAAAAAAAAA8/iqO89aDR7Ng/s400/adding-extensions-for-mysql.gif" border="0" /&gt; &lt;div&gt;and removed it before "extension=php_mysqli.dll" as well. &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;I stopped and restarted the Apache server before testing test_mysql.php and again received a blank page. I'll work on this some more later.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-410020310939976176?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/410020310939976176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=410020310939976176' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/410020310939976176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/410020310939976176'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/04/testing-mysql.html' title='Testing MySQL'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ZpgCUjv53xw/RjTtm_EGlpI/AAAAAAAAAA8/iqO89aDR7Ng/s72-c/adding-extensions-for-mysql.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-1563281055923390297</id><published>2007-04-28T19:16:00.001-07:00</published><updated>2007-04-29T14:36:46.962-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WebThang'/><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='MainFrame.err'/><category scheme='http://www.blogger.com/atom/ns#' term='command prompt'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Server Configuration'/><title type='text'>Installing MySQL: Configuration</title><content type='html'>After installing MySQL I have to configure it. I have looked at both the &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/windows-installation.html"&gt;MySQL Server Configuration Wizard Documentation&lt;/a&gt; and &lt;a href="http://www.webthang.co.uk/tuts/tuts_server/sirj1/sirj1_3.asp"&gt;WebThang.co.uk's Tutorial for installing &lt;/a&gt;&lt;a href="http://www.webthang.co.uk/tuts/tuts_server/sirj1/sirj1_3.asp"&gt;MySQL&lt;/a&gt; (I needed something a little less technical heavy to get me started and they've done a good job on tutorials).&lt;br /&gt;&lt;br /&gt;When the window&lt;br /&gt;&lt;div style="TEXT-ALIGN: center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ZpgCUjv53xw/RjPCKPEGlnI/AAAAAAAAAAs/z6wjW6ikM_I/s1600-h/mysql-server-instance-confi.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5058600287565420146" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: pointer; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_ZpgCUjv53xw/RjPCKPEGlnI/AAAAAAAAAAs/z6wjW6ikM_I/s400/mysql-server-instance-confi.png" border="0" /&gt;&lt;/a&gt;this window&lt;br /&gt;&lt;/div&gt;comes up I follow this sequence:&lt;br /&gt;Next&gt;Select Standard Configuration&gt;Next&gt;Next (Left Install As Windows Service and Launch the MySQL Server automatically on by default)&gt;Entered my root password&gt;Next&gt;Execute&gt;Finish&lt;br /&gt;&lt;br /&gt;Now I test to see if it has been configured properly in good ol' Command Prompt&lt;br /&gt;(Start&gt;Programs&gt;Accessories&gt;Command Prompt)&lt;br /&gt;&lt;br /&gt;I type in "c:/mysql/bin/mysql test" without the quotation marks on my prompt and...&lt;br /&gt;&lt;br /&gt;then receive the following error message:&lt;br /&gt;ERROR 1045 &lt;28000&gt;: Access denied for user 'ODBC'@'localhost' &lt;using&gt;&lt;br /&gt;&lt;br /&gt;I have no idea what this means. Going back to MySQL's "2.4.8.9. Starting the Server for the First Time" I see the suggestion to run mysqld.exe from the bin folder.&lt;br /&gt;&lt;br /&gt;So I type in "c:/mysql/bin/mysqld. Instead of seeing a bunch of lines appear telling me something is being processed it quickly readies itself for the next prompt *blink blink*&lt;br /&gt;&lt;br /&gt;Realizing my server is off I start Apache and attempt to run mysqld again. This time it waits for 5 or 6 seconds then readies itself for the next prompt without giving me any fanfare. It's supposed to give me fanfare. After reading 2.4.8.9 again I see that it will not show the lines I was expecting to see if I do not type "&lt;/using&gt;&lt;strong style="FONT-WEIGHT: normal"&gt;--console" at the end of the command line. That last part was hidden in section navigation on the documentation page. Maybe they should make it a little more visible.&lt;br /&gt;&lt;br /&gt;So I look in /mysql/data/MainFrame.err (it's where all the error messages and, if you don't enter --console, diagnostic messages go. Everything I expected to see in command prompt was there.&lt;br /&gt;&lt;br /&gt;I logged into my account by changing the directory to c:/mysql/bin/&lt;br /&gt;then entering mysql -u root password ****** in Command Prompt.&lt;br /&gt;&lt;br /&gt;mysql - Mysql.exe, the program I'm opening&lt;br /&gt;"-u" - means I'm about to enter the username&lt;br /&gt;root - the ultimate grandmaster username upon installation&lt;br /&gt;password - I entered a password on set up so I have to put password here if I'm going to access anything&lt;br /&gt;****** - I can never tell (said in the voice of Jim Carrey's Riddler)&lt;br /&gt;&lt;br /&gt;So I've got everything configured. Now...now...what am I going to do with all this stuff?&lt;br /&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-1563281055923390297?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/1563281055923390297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=1563281055923390297' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/1563281055923390297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/1563281055923390297'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/04/installing-mysql-configuration.html' title='Installing MySQL: Configuration'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ZpgCUjv53xw/RjPCKPEGlnI/AAAAAAAAAAs/z6wjW6ikM_I/s72-c/mysql-server-instance-confi.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-449709635415301792</id><published>2007-04-28T09:02:00.000-07:00</published><updated>2007-04-28T09:19:39.419-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='c:/mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>Installing MySQL</title><content type='html'>So I began by unzipping zip file into a folder of the same name. It really doesn't matter where it is unzippped. I now have setup.exe ready to run.&lt;br /&gt;&lt;br /&gt;After it goes through a little song and dance preparing installation files and preparing to install it shows me a window, MySQL Server 5.0 - Setup Wizard&lt;br /&gt;&lt;br /&gt;I click next&gt; select custom (because I want to install in in c:/mysql instead of the default directory in Program Files)&gt; click next&gt; click change directory&gt; enter c:/mysql under Folder name: &gt; Click OK&gt; click Next&gt; click Install&lt;br /&gt;&lt;br /&gt;After installation "Configure the MySQL Server Now" should be checked and I'll just click Finish and move on.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-449709635415301792?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/449709635415301792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=449709635415301792' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/449709635415301792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/449709635415301792'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/04/installing-mysql.html' title='Installing MySQL'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-3128573947383878469</id><published>2007-04-28T08:00:00.000-07:00</published><updated>2007-04-28T08:48:01.319-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='MD5'/><category scheme='http://www.blogger.com/atom/ns#' term='checksum'/><category scheme='http://www.blogger.com/atom/ns#' term='Ron Rivest'/><category scheme='http://www.blogger.com/atom/ns#' term='command prompt'/><title type='text'>Hooray My MySQL is downloaded!</title><content type='html'>The moment of truth has arrived.&lt;br /&gt;&lt;br /&gt;Before I even attempt installing it though I have to check the integrity of the file. To do this I am using md5.exe a program created by developed by Ron Rivest of the &lt;a href="http://web.mit.edu/" target="_blank"&gt;MIT&lt;/a&gt; &lt;a href="http://www.lcs.mit.edu/" target="_blank"&gt;Laboratory for Computer Science&lt;/a&gt; and &lt;a href="http://www.rsa.com/" target="_blank"&gt;RSA Data Security, Inc&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Md5 can validate the integrity of a downloaded file because the algorithm creates a different signature for two different files. If even one byte is changed in a file it will give a different signature. MySQL shows the signature id under the download link like so.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ZpgCUjv53xw/RjNk6fEGllI/AAAAAAAAAAc/47ylUFdwkmc/s1600-h/md5-signatures.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_ZpgCUjv53xw/RjNk6fEGllI/AAAAAAAAAAc/47ylUFdwkmc/s400/md5-signatures.gif" alt="" id="BLOGGER_PHOTO_ID_5058497762401097298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Hmm, I think I'll be uploading my pictures somewhere other than blogger. Is that blurred? Anyway, the second one is is what I downloaded. Below 5.037, 36.7M, etc there is a line that says MD5: b909c16... This is the line that md5.exe must return to show you have a file of pure integrity! (If only we could do the same for politicians, ahem) So the next step after downloading MySQL is to download &lt;a href="http://www.fourmilab.ch/md5/"&gt;MD5: Command Line Digest Utility&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;After it has been downloaded it has to be unzipped (I'm assuming it was downloaded as a zip and not a tar. I use zips, never used tar). I simply unzipped it into c:/md5. I then placed the downloaded mysql-yada-yada-yada.zip in the c:/md5 folder along with md5.exe. Next we go to the command line.&lt;br /&gt;&lt;br /&gt;In Microsoft XP, where they officially killed DOS, command prompt is used. It can be opened by following: Start&gt;All Programs&gt;Accessories&gt;Command Prompt&lt;br /&gt;&lt;br /&gt;If you've never used it don't worry it is actually quite simple (I used to have to use it every day because all I had was DOS long ago :-(!)&lt;br /&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ZpgCUjv53xw/RjNqAPEGlmI/AAAAAAAAAAk/R0ur_TlxdYE/s1600-h/command-prompt-md5.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_ZpgCUjv53xw/RjNqAPEGlmI/AAAAAAAAAAk/R0ur_TlxdYE/s400/command-prompt-md5.gif" alt="" id="BLOGGER_PHOTO_ID_5058503358743484002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I started in the md5 directory but I wanted to show how change directory (cd\) works.&lt;br /&gt;So I entered cd\ to return to c:\&lt;br /&gt;Next I entered cd\md5 to change the directory to c:\md5&lt;br /&gt;Then I entered md5 (it runs md5.exe) and entered the file name I want to check after it.&lt;br /&gt;It returns a line, the signature for the downloaded file. I compare that line to the line on mysql's website and (no ellipse this time) they match!&lt;br /&gt;&lt;br /&gt;On to installation!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-3128573947383878469?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/3128573947383878469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=3128573947383878469' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/3128573947383878469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/3128573947383878469'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/04/hooray-my-mysql-is-downloaded.html' title='Hooray My MySQL is downloaded!'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ZpgCUjv53xw/RjNk6fEGllI/AAAAAAAAAAc/47ylUFdwkmc/s72-c/md5-signatures.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-7244872867718238475</id><published>2007-04-27T23:11:00.000-07:00</published><updated>2007-04-27T23:21:56.454-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='downloading'/><category scheme='http://www.blogger.com/atom/ns#' term='redwire.net'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL 5.0'/><title type='text'>MySQL Begins</title><content type='html'>I need to &lt;a href="http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.37-win32.zip/from/pick"&gt;download MySQL&lt;/a&gt;&lt;a href="http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.37-win32.zip/from/pick"&gt; 5.0&lt;/a&gt; and it is 36.7 Megabytes in size *frown*. It wouldn't be so bad if I was back on campus or if I was able to download it at work. Unfortunately I'm not going to be on campus for awhile and the rewritable drive is busted at work. So I am going to have to use my dial-up from home to download the monster file.&lt;br /&gt;&lt;br /&gt;Mysql-5.0.37-win32.zip from the redwire.net mirror is my choice of downloading because 1) I need the latest stable production of MySQL which is 5.0.x and 2) It happens to be the closes site to download from.&lt;br /&gt;&lt;br /&gt;I don't know it it makes that much of a difference because it should take a few hours anyway. I'll just sleep on the download and hopefully wake up with MySQL ready to be set up.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-7244872867718238475?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/7244872867718238475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=7244872867718238475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/7244872867718238475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/7244872867718238475'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/04/mysql-begins.html' title='MySQL Begins'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-5541503425188458684</id><published>2007-04-27T11:10:00.000-07:00</published><updated>2007-04-27T11:31:38.869-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='short tags'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='test.php.'/><category scheme='http://www.blogger.com/atom/ns#' term='googling'/><category scheme='http://www.blogger.com/atom/ns#' term='php.ini'/><title type='text'>test.php: There's long tags and then there's short tags.</title><content type='html'>This problem didn't take more than a few minutes to rectify and I'm thankful for that.&lt;br /&gt;&lt;br /&gt;My test.php file consisted of the following code:&lt;br /&gt;&lt;blockquote&gt;&amp;lt;? echo phpinfo() ?&amp;gt; &lt;/blockquote&gt;This is supposed to give you a volley of information about the PHP you just installed. Unfortunately when I tried to look at the file on localhost (http://localhost/test.php) it produced a blank window. I'm scratching my head thinking what did I do wrong?&lt;br /&gt;&lt;br /&gt;After using Google (I can't say the term "googling" for fear that I'll mess with the giant's trademark. It's not good to say you "googled" something or "Xeroxed" a paper. They might lose money *rolls eyes* But seriously I like Google so I'll use the term "using Google" or "searching on Google") to search for&lt;br /&gt;"GET /test.php HTTP/1.1" 200 20" "&amp;lt;? echo phpinfo() ?&amp;gt; "&lt;br /&gt;I came up with only 6 hits that didn't answer the question as to why nothing was showing up. Then it hit me. Short tags.&lt;br /&gt;&lt;br /&gt;The php.ini file has a variable that turns "short tags" on and off. Short tags are when you use . The ini file says it best:&lt;br /&gt;&lt;blockquote&gt;; Allow the  tags are recognized.&lt;br /&gt;; NOTE: Using short tags should be avoided when developing applications or&lt;br /&gt;; libraries that are meant for redistribution, or deployment on PHP&lt;br /&gt;; servers which are not under your control, because short tags may not&lt;br /&gt;; be supported on the target server. For portable, redistributable code,&lt;br /&gt;; be sure not to use short tags.&lt;br /&gt;short_open_tag = Off&lt;/blockquote&gt;"short_open_tag" is the variable that is set to Off my default.&lt;br /&gt;So all I had to do was replace &amp;lt;? with &amp;lt;?php and... &lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_ZpgCUjv53xw/RjI_2vEGljI/AAAAAAAAAAM/cbZkRmr6VtQ/s400/PHP-Version-5.2.1-installed.gif" alt="" id="BLOGGER_PHOTO_ID_5058175541069649458" border="0" /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Voila!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-5541503425188458684?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/5541503425188458684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=5541503425188458684' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/5541503425188458684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/5541503425188458684'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/04/testphp-theres-long-tags-and-then.html' title='test.php: There&apos;s long tags and then there&apos;s short tags.'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ZpgCUjv53xw/RjI_2vEGljI/AAAAAAAAAAM/cbZkRmr6VtQ/s72-c/PHP-Version-5.2.1-installed.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2850957657668385289.post-704435345470648260</id><published>2007-04-27T10:35:00.000-07:00</published><updated>2007-04-27T11:09:59.167-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='localhost'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache 2.2'/><category scheme='http://www.blogger.com/atom/ns#' term='403 error'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL 5.0'/><category scheme='http://www.blogger.com/atom/ns#' term='DocumentRoot'/><category scheme='http://www.blogger.com/atom/ns#' term='phpinidir'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='httpd.conf'/><category scheme='http://www.blogger.com/atom/ns#' term='loadmodule'/><category scheme='http://www.blogger.com/atom/ns#' term='addtype'/><category scheme='http://www.blogger.com/atom/ns#' term='apache configuration file'/><title type='text'>PHP, The Eternal Struggle</title><content type='html'>I've always wanted to set up a dynamic site but whenever I tried to create a local server for testing I would fall flat on my face. For the last few weeks after browsing through the thousands of pages of the manuals for &lt;a href="http://httpd.apache.org/docs/2.2/"&gt;Apache 2.2&lt;/a&gt;, &lt;a href="http://us.php.net/manual/en/"&gt;PHP&lt;/a&gt;, and &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/"&gt;MySQL 5.0&lt;/a&gt; I tried to installing PHP to run on Apache.&lt;br /&gt;&lt;br /&gt;The first snag I ran into (and I should have seen it at the beginning) was my attempt to install PHP 5.1 with Apache 2.2.&lt;br /&gt;&lt;br /&gt;It turns out that PHP 5.1 does not have "php5apache2_2.dll" which is needed to run Apache as a module for enhanced security. After &lt;a href="http://us.php.net/get/php-5.2.1-Win32.zip/from/a/mirror"&gt;downloading PHP 5.2&lt;/a&gt; and adding the lines&lt;br /&gt;&lt;blockquote&gt;LoadModule php5_module "c:/php/php5apache2_2.dll"&lt;br /&gt;AddType application/x-httpd-php .php&lt;br /&gt;PHPIniDir "C:/php"&lt;/blockquote&gt;I was finally able to start the Apache server without an error message.  (c:/php was my choice of where I installed php. It might be different depending on where you unzipped your php file)&lt;br /&gt;&lt;br /&gt;So I entered localhost and immediately became of forgetting a step. The Apache configuration file (httpd.conf) was still pointing at "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" even though I had my root folder set up on the desktop. So I went into the file and found "DocumentRoot" where I promptly entered my desktop directory.&lt;br /&gt;&lt;br /&gt;So I go to type in localhost and get the error message: 403 Forbidden You don't have permission to access / on this server. *frowns impatiently*&lt;br /&gt;&lt;br /&gt;I go &lt;span style="font-style: italic;"&gt;back &lt;/span&gt;into the httpd.conf file and scour through it line by line. Soon after DocumentRoot I encounter the problem:&lt;br /&gt;&lt;blockquote&gt;# This should be changed to whatever you set DocumentRoot to.&lt;br /&gt;#&lt;br /&gt;&lt;directory&gt;&lt;/blockquote&gt;&lt;br /&gt;About 26 lines after DocumentRoot it told me to change another line. So I pointed the directory to my desktop directory where all my files were located taking great care to use forward slashes (/) instead of backward slashes (\) and...&lt;br /&gt;&lt;br /&gt;Htm files load perfectly but my test.php file comes up blank!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2850957657668385289-704435345470648260?l=programmingordeals.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingordeals.blogspot.com/feeds/704435345470648260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2850957657668385289&amp;postID=704435345470648260' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/704435345470648260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2850957657668385289/posts/default/704435345470648260'/><link rel='alternate' type='text/html' href='http://programmingordeals.blogspot.com/2007/04/php-eternal-struggle.html' title='PHP, The Eternal Struggle'/><author><name>Jay_MMS</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
