iEntry 10th Anniversary RSS Newsletter Advertising
Visit Twellow.com
Text: Decrease Font Size Increase Font Size | Print Print Article | Share: Delicious Digg StumbleUpon Post to Twitter Post to Facebook
Thursday, December 22, 2005

ASP vs. PHP

117 Comments

I don't know why you telling

I don't know why you telling such things here around like PHP is better, because....It's free? Come on, I was thinking you can do this better. Where are your proves that PHP is better? Not only talking, please give some proved samples. I can only say, that people learn to read and write with an age of 10, (some later) but is this means they can write a best-selling book already? You are just one of the PHP lovers. I was hoping to read more than such things.

It's a shame.

Ps.: Free not means good always and doesn't matter mySQL, PHP, Linux or whatever. Netscape, ICQ and a lot more show in the past what is means to be better because free.

You could just combine the

You could just combine the two and make turkey, lets see who's going to care 5 maybe 10 years from now.

In the end Google wins :)

PHP For Me!

Hi Everyone,
I've been a web/application developer for several years now. I've worked with many different languages and I have to say - PHP is by far my favourite.
Mainly because its built for Linux(Unix) operating systems, which have an incredible amount of benefits for web developers, in fact I'd say essential.
MySQL may not be the fastest database, but with a few tweaks (stored procedures, switch tables) it can perform with the best of the rest, and its free! I'm working for a website now that searches through around 30,000,000 rows, and user queries are all still under 0.5 seconds.
PHP 5 is fully Object Orientated as well! the only disadvantage I've come across so far is that it doesn't support multiple inheritance, however this can be overcome using 'mixins'.

Microsoft has done nothing but 'hold back' the web with redundant, bloated languages for a long time now. Do yourself a favour, use PHP.

??????????

I dont understand what are all of you talking about ASP.NET and PHP. In my opinion, I vote for mr BILL!

PHP VS ASP

PHP was originally designed to function similarly to C, even though the language has advanced a great deat since its early days, its roots are still C as Rasmus designed it. ASP is comparable to VB scripting, it comes bundled with lots of prewritten functions that are great for smaller projects.

I code is asp, php and jsp. They all get the job done efficiently. Frankly its not about the speed of the languages since they are all very fast, its about the code structure and the skill of the programmer.

Tool sets

PHP and ASP.NET are tool set.
PHP is an interpreted language and ASP.NET, which is part of the .NET framework is a compiled in-memory code.

PHP is great for the easy and simple projects that you want to develop.
This is actual how I started. The best part is that it's free.
When you get to big, overloaded environments you get into trouble. Big times.

It will actually cost you more to make a PHP/MySQL solution work in a decent way, then it would an ASP.NET/SQL Server or Oracle solution. Plus you are in a deadlock.

Your solution/app started as a small thing and it is a success, people us it and you are desperately trying to squeeze every last drop of performance out of your 6 WFEs and along comes a Google crawler and your Apache is sitting around for your database to respond.

You are talking about big businesses that use PHP/MySQL to run their sites. Do you actually know what they are using? I guaranty you that they are not using the standard PHP or the MySQL engine.

I know of such solutions that have modified the MySQL Engine so much, they made it into an SQL Server :)), but at 3 times the cost.

What I'm trying to say is that scalling solutions in PHP is extremely expensive.

On the other hand, you have ASP.NET. Granted, it may not have the best markup or the best JavaScript interpretation, but if you look at it like that you do not have the big picture.

Who says you must use their controls, use HTML controls with runat="server". You have a heavy page, put you ViewState in a SLQ Server (Express edt - free) or just turn it off.

You don't like the way your controls look? Well consider using Silverlight / Moonlight for Linux.

What to contribute, build solutions, share stuff or ask questions? Go to www.asp.net and CodePlex.

If you are a good programmer you can get both technologies to work for your needs. The real question is how much will it cost you to get there.

Thank you :P

Denis
MCT and supporter of all things that are free.

PHP is good even for big scale projects

Should you use PHP & MySQL from the ground for big scale projects, it would be really expensive and time consuming. However, there are several great PHP frameworks such as CakePHP and Symfony, that allow Rapid development of really large projects.

QUOTE "Database

QUOTE "Database Connectivity

PHP, being extremely flexible, can connect to various databases, the most popular being MySQL. ASP mainly uses MS-SQL."

WTF...? You can connect to a DBMS via any scripting language provided the libraries exists...so to summarize you could equally have said:

ASP, being extremely flexible, can connect to various databases, the most popular one being MySQL/MSSQL/ACCESS/FoxPro/SQLLite. PHP mainly uses MySQL."

Doesn't really cut it as an argument does it....

PHP trumps ASP

PHP is like the NFL, while ASP is like highschool football. When company's advertise that they are looking for individuals with ASP knowledge, I just sit back and chuckle, and then scoff at that company for their stupidity. Use ASP if you never want to advance in life. Use PHP if you want to be a demi-god among men. Thank you. - Sforce

disagree

aim sorry but i have to disagree with you as of my perspective i had rode another article that tells me that the asp.net in speed is more than php

http://naspinski.net/post/AspNet-vs-php--speed-comparison.aspx

correct me and this article if u are both wrong although u have no evidence to proof that php speeder than asp.net but this article has

Don't disagree too quickly.

Just ran a side by side comparison on ASP, ASP.NET, and PHP. The scripts had to echo out "Hello World" with no HTML formatting - just the raw text. For one, I could create the PHP script in notepad - however, ASP(.NET) both required the use of visual studio (at least for me, anyway).

PHP Displayed it within 0.00013 seconds (on local) and 0.00035 on my remote web server.

ASP - 0.05302 seconds locally, 0.90544 seconds on web server.

ASP.NET - 0.90000 seconds locally, 1.40000 on server.

Not to mention the amount of coding required to do this task varies tremendously between the languages - PHP simply requires <?php echo "hi."; ?> to get the job done, unlike the others, which take more to echo a simple page.

PHP is handsdown the best language for server- side scripting.

ASP is not the same as

ASP is not the same as ASP.NET

It's funny when you hear

It's funny when you hear people talk about the so called "web 2.0" like it's the new web. It's a tell-tale sign of somebody who obviously does not know anything about the web and its underlying technologies.

"Micsoft may have

"Micsoft may have user-friendly OS , But sadly it doesnt know anytng abt web 2.0 , Who uses ASP? Google ? Facebook ? , Micsoft is outdated in every aspect" -- Just love that line... LOL : )

I agree

good point !

the confusion remain the same

hii all
i think after reading all these articles and many more like this once cannot make a decision on whether he should choose asp or php.
i think once should choose what he understands faster and is more interesting for him.
as asp and php both has advantages and disadvantages. so go with what u like.

I've always preferred PHP.

I've always preferred PHP. Its stuck around alot longer and I believe it will out live ASP. Your post is dominated by the advantages of php and they are all true.

facts for end user

If you want to choose a OS, "Windows" is the best choice in this world. Because It is user friendly,easy and has a growing mega list of available softwares for it. But Microsoft doesn't know anything about today's web2. How many people use ASP for their blog? And who told you guyz that bigger and corporate websites should be in ASP? Google is ASP?Facebook is ASP? Microsoft never succeeded in getting a little share of the web.Google and yahoo throwed MS out of this virtual world. But how?because MS is out dated in every aspect. On the other hand others introduced new technology and features day by day.
A VB.net application and a ASP application looks same,except ASP.net runs in a browser.
PHP is even a easier language than C.you don't have to know c to learn it. Guyz from C will find it so easy because it is built on C.but that's not mandatory.

Re: facts for end user

"If you want to choose a OS, "Windows" is the best choice in this world..." - Utter nonsense! The only reason Windows is seen as "easy" is because that's what most people grew up with. Just look at how many people have had difficulty coping with the transition to Vista. And insofar as software choice, are you even aware of the amount of software available for Linux systems? Just because they're not produced by global brands doesn't mean they're not equal in quality or capability. Furthermore, Windows is riddled with problems and let's not forget, is very expensive.

No, the choice of OS isn't as black and white as "this one is better than all the others". It is entirely down to the user. For some, it may be Windows. But not for most. for most casual users, a simple Linux distro is ideal: you can do all the standard tasks you want from a computer (surf the web, access email, office programs) and benefit from its open philosophy, FREE charge and superior performance & stability.

Oh, and in my opinion, the GNOME desktop environment is much easier to navigate and control than anything windows has done since 3.1.

Thanks for sharing. I'm a

Thanks for sharing. I'm a PHP man now.

I really don't care which is

I really don't care which is better. WPN was built on Drupal as I know.

PHP is the preferred language to me for some reasons:

  1. Easy to Learn / Use
  2. Platform Compatibility
  3. Free Third Parties & Great CMS (Smarty, CakePHP, Drupal, Wordpress)

Usually, I develop my new sites with PHP + Smarty + ADODB. It's really easy to start even using text editor like VIM. Check out my case at Domain-daily.com .

Thanks!

This is a great straightforward article, pretty much in layman's terms, that compares TWO of the scripting languages out there (the two major languages in my opinion). Many thanks to Mr. Pires.

The responses? Well, with all this squabbling and smarmy, self-righteous opinion-slinging among ourselves, it's no wonder "web nerds" have such an unsavory reputation. Save it for a Tyra Banks audition, people! Sheesh!

I used both

I started with asp and I now i am php developer and I would never recommend my client to use ASP... it takes twice time as it takes for php..... and if you got a chance to upload a file ???? then you ask google to find you plugin... and many more...

great info on this topic

thanks guys to help me selecting better language

ASP vs. PHP

PHP Rocks!!

why are people still commenting

This article from 2005 is dated and talks about asp not asp.net.
It was useful when it was written but not now.

Great Article

while i am a asp.net man i am finding that more and more php websites are popping up. i think i need to make the dreadful change and bite the c++ bullet : (

thanks for sharing this article again!

ASP - PHP who cares !

There is only one big question : Will I make money with ASP or PHP ? This question goes with "finding a job" or starting a "Ebusiness" for the rest whatever you so a Blog, chat, forum ... who cares if this is linux, PHP, apache, Mysql... WHY ? Because it better be free :-))) since you won't make a penny.
If you look for a job you'll get the same opportunity so you don't really care.
If you have a business and starts Ebusiness then paying a Windows licence for few hundered of dollars/Euros is no big deal since ASP is included in Pro or Server version and you can use the free MS-SQL or simply Mysql with ADO connection.
So the choice is 100% what you understand best. In my case I come from Visual Foxpro 9 so reading ASP is very easy, if you come from C ++ then PHP is good for you.
So my point is "focus on the target only" and clearely the target is "to make money" from your knowlegde not feeling super cool because you put <$= instead of <%= instead. This is exactly like comparing Boeing/Airbus , Toyota / Mercedes ... The beauty is to have the choice let's hope this will stay like that.
I have Linux for my home worstation and Apache-ASP server !! and Windows for my development tools.
I am french so I hope I won't be get critics on my spelling !
All the best to all of you.

I agree 100%. The first real

I agree 100%. The first real comment in here. The rest of the comments are from self-called PHP or ASP.NET lovers in a battle. So sad. I is not what you using, is what you do with this.

You make the sense. I really

You make the sense.

I really don't care which is better. WPN was built on Drupal as I know.

PHP is the preferred language to me for some reasons:

  1. Easy to Learn / Use
  2. Platform Compatibility
  3. Free Third Parties & Great CMS (Smarty, CakePHP, Drupal, Wordpress)

Usually, I develop my new sites with PHP + Smarty + ADODB. It's really easy to start even using text editor like VIM. Check out my case at Domain-daily.com .

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
9 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
SEARCH
Popular WPN Business Resources












Subscribe to WebProNews


Send me relevant info