Archive for the 'PHP VS ASP.NET' Category

PHP VS ASP.NET - Connecting to Database.

Tuesday, March 20th, 2007

Continue the series of PHP VS ASP.NET. My previous post covered the installations of both MySQL and MSSQL database on Windows XP Pro. Today we are going to connect to the database programmatically, as in using the database along with your server-side scripts.

PHP
PHP + MySQL is always my favorite combo for web application. The connection to MySQL database in PHP is fairly simple.

Codes:

<?php
$conString 
mysql_connect(“host”“username”“password”);
mysql_select_db(“databasename”$conString);
?>



PHP VS ASP.NET - The Databases.

Sunday, March 18th, 2007

If you have gone through my previous post, you should now have both php and asp.net running on your windows machine, it’s time to go on further. I’m going to setup both MySQL and SQL Server 2000 on this machine.

MySQL
I’ve got a lot of experiences for php and mysql on my Debian box, installation was hassle-free with Debian package manager. Now on windows, let’s see what can it be. First thing first, get your copy of MySQL windows installer at MySQL download page. Choose the Windows Essentials installer package to download. Go with the standard installation, provide a root password for the new MySQL instance.


PHP VS ASP.NET - The Beginning.

Friday, March 16th, 2007

I always wanted to blog about some technical stuffs here, but I’m afraid it will bore some of the readers to death. Anyway, this is my recent experience and I would like to share with those who are interested out there.

PHP
First I’m gonna talk a bit about the environments that support both server-side scripts. Let’s start with PHP, it’s still my personal favorite after experimenting into ASP.NET. The traditional server environment that I used to play with, would be LAMP (Linux, Apache Web Server, MySQL Database, and PHP). Most of the linux hosting servers out there are running this combo.
My debian machine has exactly the same build.