View Full Version : ASP PHP or ASP.NET?

04-23-2007, 02:16 AM
I didn't see a thread on this, So I am going to have to ask this. I have three questions.

What is the difference between ASP and ASP.net?
Is asp similar to php(Used for the same purposes)?
Is asp 100% free to use/learn/operate?

I have begun to learn php, but I was wondering if ASP would be better for me to learn?



04-24-2007, 01:52 PM
In my opinion, no...ASP wouldn't be better to learn than PHP. PHP is becoming very popular and nearly all of the clients I work with are using it.

Now, I'm a die-hard ASP fan myself, but if I had to start all over and choose between either ASP, PHP or ASP.Net it would not be ASP. I love the language but out of all my clients I think only 5% of them have used ASP.

I think you'll find .NET used in a lot of the organizations or bigger companies.

My recommendation would be keep on keeping on with PHP and if you want to learn something else dive into .Net

ASP.NET is like ASP on steroids...they share the same three letters but that's about it...okay, more than that...in fact you can run standard ASP through .NET but .NET reminds me more of VB and you have a TON more control that with classic ASP.

04-24-2007, 02:25 PM
The pricing is difficult to answer.

For home use/testing:
ASP scripts (e.g. VBScript) can be written in any text editor, the same as PHP.
If you have XP Pro then you have IIS available.
If you have Win2000 or Vista (premium?) then you have IIS.

If you have 2003 then you definately have IIS and have probably spent a bit of money.

If you have XP Home then you can use a third-party ASP webserver or an IIS hack.

So basically, if you have purchased Windows then you are not paying anymore to write ASP scripts.

If you went totally opensource then you would save money on the OS, but would have little, if no support for ASP.
Great if you want Apache, PHP, mySQL for example

There are also free ASP webhosts available. They are not great and most have restrictions. You find the same with any free host, even those for PHP.

If you puchase hosting then these days you can find similar priced plans for linux and windows.
I guess one benefit of a Windows host is that you can run ASP and PHP/mySQL.
If you wanted MSSQL you would probably have to pay more though.

Also, you probably wont have the freedom of using Apache and .htaccess
Some hosts do restrict some functions, but that's upto you & the host you choose (this goes for windows or other OSs).

04-26-2007, 04:04 AM
ASP and PHP are roughly equivalent as far as being easy to use and straightforward. PHP is quite a bit more powerfull, able to do things that ASP cannot do without installing additional $$ components, such as handling form uploads, image manipulation, network things.

As was said, ASP.NET is a lot like VB - same paradigm of having a form with code behind it to react to button clicks, etc. Powerfull, but carries a lot of baggage and seems a bit cumbersome to me.

Wouldn't hurt to know a little of all 3, but start with ASP or PHP first. ASP usually uses VBScipt which may be easier syntax to learn, PHP uses a more C-like syntax with curly brackets and semicolons.

If a > b then
response.write ("a is greater than b")
response.write ("a is not greater than b")
end if


if (a > b) {
echo "a is greater than b";
else {
echo "a is not greater than b";