Buy.com decided that my name is PayPal ;) obviously it's some glitch.. but i find it funny.
function getObj(name){
if (document.getElementById){
this.obj = document.getElementById(name);
this.style = document.getElementById(name).style;
}
else if (document.all){
this.obj = document.all[name];
this.style = document.all[name].style;
}
}
function getWinSize(){
var iWidth = 0, iHeight = 0;
if (document.documentElement && document.documentElement.clientHeight){
iWidth = parseInt(window.innerWidth,10);
iHeight = parseInt(window.innerHeight,10);
}
else if (document.body){
iWidth = parseInt(document.body.offsetWidth,10);
iHeight = parseInt(document.body.offsetHeight,10);
}
return {width:iWidth, height:iHeight};
}
function resize_id(obj) {
var oContent = new getObj(obj);
var oWinSize = getWinSize();
if ((oWinSize.height - parseInt(oContent.obj.offsetTop,10))>0)
oContent.style.height = (oWinSize.height - parseInt(oContent.obj.offsetTop,10));
}
window.onresize = function() { resize_id('ID_of_Container'); } Or inside <body onResize="resize_id('ID_of_Container');">

Now save and close the file.
Next, let's copy the dll to the right place...
Go to c:\php\ext and copy the file php_mysql.dll. Now go to C:\Windows\System32 and paste the dll there.
When asked to, Click continue to gain Administrator privilege.
Now let's configure IIS to work with our PHP.
Go to start->run and start InetMgr.exe (IIS Manager).
Inside IIS Manager click on "Handler Mappings".

On the right side of the window, click on "Add Script Map..." (Yellow box in the pic below)

In the window that pops up, fill up the fields with these values:
"Request path:" *.php
"Executable:" C:\php\php5isapi.dll
"Name:" PHP
The window should look like this one when you are done.

Click "Ok", And when the "Add Script Map" dialog pops up, Click "Yes".
Ok, so we have PHP and IIS 7 working together, now it's time to add the last piece to the puzzle, MySQL.
Download MySQL, i used MySQL 5.1 located at: http://dev.mysql.com/downloads/mysql/5.1.html
32bit users, download the 32bit distribution, 64bit, download the 64bit one.
Once you downloaded the MySQL installer, 32bit users, all you have to do is go through the Installer steps (Click next,next next next) and you should be fine.
64bit users, you still got some little work, after installing the MySQL, i had a problem running the configuration wizard, in order to solve that problem, i used the following trick.
I downloaded the 32bit zip package (without installer), inside C:\Program Files\MySQL\MySQL Server 5.1\bin i renamed the file libmySQL.dll to libmySQL64.dll and copied the 32bit file into the directory instead. Then i ran the configuration wizard, and this time it worked.
After the configuration process was completed, delete the 32bit file from the directory and rename the file libmySQL64.dll back to libmySQL.dll.
That's it, you are all set with IIS 7+MySQL+PHP.
In order to make sure that everything is in order, create a file named test.php inside C:\inetpub\wwwroot\ and write inside
Then inside your favorite browser browse to http://localhost/test.php and you should see all the settings of your php installation, if you will scroll down, you should also see MySQL settings which will confirm that MySQL is indeed installed.
icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant Users:(CI)(S,WD,AD,X)
icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant "CREATOR OWNER":(OI)(CI)(IO)(F)
Well, i hope that my first Post will assist at least some of you, any comments regarding my writing are welcome. And of course, if you have any questions or you are having any difficulties in the process, don't hesitate to comment and i promise to try and help with every comment.
Till the next time...