Forum Moderators: open

Message Too Old, No Replies

ASP v PHP

Why choose ASP

         

bluedalmatian

4:30 pm on Apr 7, 2005 (gmt 0)

10+ Year Member



OK, I'd be interested to hear ASP users views on why the prefer ASP to PHP, and for that matter why they prefer IIS to Apache.

I really am curious.

Thanks

asptony

2:46 am on Apr 15, 2005 (gmt 0)

10+ Year Member



I posted a thread similar to this a couple months back and I think that the truth is what some people replied with. It really isn't that one is better then the other. There are times to use one vs. the other. The funny thing is, I have been in the debate many times fighting on the ASP side, I really think that having the diverse knowledge of both is a huge advantage. There are my two cents!.

Tony

Easy_Coder

11:57 am on Apr 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Stuperfied, I'm making a point not providing code examples.

txbakers

10:24 pm on Apr 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



there are many free scripts available all over the webin all languages. For ASP I like [aspin.com...]

Stuperfied

3:08 am on Apr 16, 2005 (gmt 0)

10+ Year Member



No offence to Easy_Coder as im sure your intentions were good. My point was that whilst Easy_Coder was quick to place the blame on me the coder, he was not willing to provide examples to back up his claims.

I agree with you asptony where you said that.


There are times to use one vs. the other.

And I believe that you can take this further to say that there are times when it is more beneficial to use one over the other.

The fact that ive seen very few forums written in ActiveHTML and that the selisoft site its-self seems to have been written in php, makes me think that ActiveHTML must have some sort of dissadvantage somewhere in the area of GUI's.

Does anyone know of any situations where it might be more beneficial to use php rather than ActiveHTML?

mattglet

12:12 pm on Apr 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My point was that whilst Easy_Coder was quick to place the blame on me the coder, he was not willing to provide examples to back up his claims.

Stuper-
He wasn't the only one to first assume it's a coding error, because I would bet that it is as well.

I'm sure a lot of the frequent participants on this board have made very successful login modules. Do you know what it takes to make one? If you do, then you're well on your way to completing it. If you don't, then there's a good place to start: Find out what you need to guard against, do some research, and then build it. My rates are fair if you need help ;)

Seriously though, no one here wants to post 1000 lines of code as an example. We'd much rather help you out with any questions you may have. So we don't further jack this thread, start a new one if you have any questions.

Easy_Coder

7:08 pm on Apr 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Stuperfied, I'm not blaming you for anything.

Here, how about if I re-word this:

The strength lies in your ability to code; either language will let you write a rock solid login routine OR a really crappy routine.

to:

The strength lies in *ones* ability to code; either language will let *one* write a rock solid login routine OR a really crappy routine.

I don't need to back that statement up with a code example because it's aimed at ones methodologies.

Stuperfied

12:31 am on Apr 17, 2005 (gmt 0)

10+ Year Member



Thanks for the concern boys but i use basic text book login routines which is why I never have problems with it, the problem is in the connection to the database somewhere and I thought it might be on the ASP side but it could just as easily be on the database side although since its happened on 2 different servers, thats unlikely. I simply asked if there were any known problems with asp and got all this code crap thrown at me.

My new question was related to this topic. Sorry if I confused anyone.

My question reguarding ASP vs PHP is, What are some times when it might be more beneficial to use one over the other?

Easy_Coder

12:49 am on Apr 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I simply asked if there were any known problems with asp and got all this code crap thrown at me.

That about explains it (missing the point) for me right there...

txbakers

10:27 pm on Apr 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What are some times when it might be more beneficial to use one over the other?

If *one* knows ASP better than PHP, it would be beneficial to use ASP.

If *one* knows PHP better than ASP, it would be beneficial to use PHP.

If *one's* server only supported ASP, it would be beneficial to use ASP.

If *one's* server only supported PHP, it would be beneficial to use PHP.

If *one's* choices are none of the above, then it doesn't make one bit of difference.

Stuperfied

1:25 am on Apr 18, 2005 (gmt 0)

10+ Year Member



There has to be a difference in speed of execution, interpretation, size, flexability, accessability, compatability and more. If you all honestly believe that there are no differences between them then you are only kidding yourselves.

PHP is one language where as ASP is many languages working together. I would tend to think that ASP would offer more flexability but with that flexability there would have to be consequenses such as a drop in speed of execution or something.

txbakers

2:02 am on Apr 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There has to be a difference in speed of execution, interpretation, size, flexability, accessability, compatability and more.

There isn't.

If you all honestly believe that there are no differences between them then you are only kidding yourselves.

We're not.

There are differences, yes. In syntax. Basically they are both interpreted technologies. ASP has the ability to run compiled COM objects.

We've covered all this in earlier posts.

jatar_k

2:37 am on Apr 18, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



figure it this way,

txbakers is a qualified asp coder who knows and understands it's benefits and limitations and has written enough code to be qualified to make that judgement

I am a qualified php coder who knows and understands it's benefits and limitations and have written enough code to be qualified to make that judgement

we agree there is no difference except for what txbakers put in msg 39

so I would say that we are not kidding ;)

chicagohh

9:47 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



OK... here's my take:

ASP.NET is a career in itself. If you've got the skills there should be little problem in finding corporate employment. In most corporate environments you will find MS products - far fewer will be running PHP. So, if your looking for a job - go ASP.NET or even classic ASP.

If you earn your keep by banging out web sites for yourself or clients - either PHP or ASP will take care of you fine. ASP.NET will likely be overkill and from my experience with it a tad slower in development.

If you have *zero* ASP/PHP skills and are trying to decide which one to start with --> Go with PHP for the only reason that classic ASP is likely to be phased out by MS leaving you to learn another platform.

Really, it's a career decision.

mblair

9:54 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



txbakers, jatar,
It's really interesting to hear both of your perspectives on ASP v. PHP and how really there ain't much difference under the hood.
I am curious if either of you (or anyone else) has an opinion of ColdFusion along the same lines and how it fits into the pantheon. I know that ASP and PHP are dominant, but have always been impressed ColdFusion in that it seems that more capabilities are "in the box" so to speak as opposed to requiring 3rd party or self-created components.
Do you feel that all is equal when it comes to CF as well (just an issue of skills and avial platform) or do you think there are specific advantages/disadvantages (other than price)?

paladin

10:25 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



Just to put in my own $0.02...

I work with both ASP & PHP. I originally started with ASP and added PHP 2 years later. Although there may be some small differences, a small investment in a RAM or CPU upgrade will cancell those out.

So if you have an ASP site and think you could get it to go faster using PHP...wouldn't it be easier, faster and less expensive to get some additional CPU or RAM for the server?

As txbaker said earlier, it sometimes depends on what options you have, not which one is better.

As to which is better, you would have to consider that on a case by case basis (server OS & configuration, existig code, developer's knowledge etc...)

txbakers

10:41 pm on Apr 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



mblair: I'm not qualified to comment on Cold fusion, but from what I've heard it's also an excellent platform, but dependent on Macromedia (soon to be Adobe) and an expensive installation.

JSP and PHP are basically free and can run on any platform. ASP requires either a Microsoft server (IIS) or a purchase of Chilisoft from Sun to run on a *NIX machine. ColdFusion requires the purchase of the CF server from macromedia.

Stuperfied

11:01 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



Selisoft also runs on windows.

StupidScript

11:11 pm on Apr 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I used to program in an ASP/JScript/VBScript and in ColdFusion, but since few of my clients used IIS servers or wanted to shell out the dough for the CF installation, I switched to PHP four years ago. It runs on everything (portable code), and has allowed me to implement some very sophisticated apps with extremely little trouble and even less money. For example, a natural language search engine (a la AskJeeves) can easily be built by exploiting the "levenshtein()", "soundex()", "similar_text()" and "metaphone()" PHP functions. On another front, I rarely use PERL anymore because of the excellent regex and command line capabilities of PHP.

I do agree that one should use what one feels most comfortable with, as long as it has the capabilities one needs. There is no fun in needing to migrate a VBScript application over to PHP because the latter doesn't have what you need, or because your boss decided to cut costs by going with a new FreeBSD or Linux server.

(BTW, if anyone only tried RedHat or Knoppix ... you didn't pick the best distros to try. Try Debian, next time.)

If you are in a corporate or other large-scale environment and would like to learn which languages have the widest scope of established users and support, this may help you make your decisions as to which environment you want to throw your company's resources at:
TIOBE Programming Community Index for April 2005 [tiobe.com]
"The ratings are based on the world-wide availability of skilled engineers, courses and third party vendors."

Interesting to note where PHP is and where the MS technologies are, in that list (C/C++ aside). So if you needed 20 programmers in a hurry, which language is your best bet?

Regarding the exploitation and security of PHP as mentioned earlier in this thread:
here's a security note from PHP.net that addresses that. [php.net]
Basically, as many have noted here, it's the application that is often weak, not the platform.

Like a musical instrument, a scripting/programming language is only valuable when it is used. ANY language will do if you feel inspired by it and want to work with it.

Personally, I prefer not to need to buy something I can build myself. If I need to buy an interpreter just to be able to use a free language, that's not much of a bargain for me.

jatar_k

11:24 pm on Apr 20, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



mblair,

my personal experience with CF is that it is crap, spent a fair amount of time working with a programmer who was very fluent with CF. His thoughts were

"the only reason I use it is because it's built in search is great, aside from that, it is too slow and too expensive"

I would say second tier at best for CF

Swanson

11:54 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



I would like to post my experience if i could to add to a good debate.

I am an ASP developer, although my background is C++, Perl, PHP and more recently C#. (My claim to fame is that i turned down a job at Microsoft in US developing the VB platform a few years ago because i am firmly a UK guy!)

ASP is a technology platform, PHP is a scripting language. Simple as that - PHP is traditionaly used with Linux Apache installations, VBScript/JScript is normally used with ASP = in terms of .NET any language can be used including PHP and Perl.

In my opinion ASP and VB/VBScript has enabled many amateur developers to be programmers - and that can only be good for all of us. In terms of access to low level OS stuff - no you can't really do that, but who cares if that is what it is intended for?

I think that it is the old debate - open source v. MS - well in my opinion you get what you pay for. But i don't honestly believe that PHP is inferior - i believe that the platform is. I say that because I have 20+ servers and the MS 2003 ones offer more development flexibilty (change in development coding) than the other Linux/Unix ones.

I would say that PHP is much more powerful - but it is harder to learn. Is that not what ASP is aimed at?

PS. ASP.NET is a different ballgame - simple yet powerful (prob is that is needs the expensive MS server)

2by4

3:12 am on Apr 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I learned asp in college, always disliked it, then when I found PHP I realized why I disliked it. The claims that IIS is and has been as secure as Apache are, to put it mildly, not even remotely true. Gartner at one point said that in their opinion IIS would require a full rewrite to resolve its issues, I think that happened with IIS 6, or whenever they fixed its worst problems. I'll assume that server 2003 is finally reasonably stable, like *nix systems have been for a long time, I even read that they support more command line options now, one day they'll get it right I suspect, I'm sure it's better.

If you've ever tried securing an IIS installation to run ASP, it's not fun, and it's almost impossible to do, or was. Hopefully they've improved that too.

Since I didn't feel like waiting for MS to fix these issues, I switched years ago to PHP and Apache, mod_rewrite is a very powerful tool. Does ASP support real comments yet, last time I looked, ASP 3, you had to use those stupid ' in front of every line to comment out a block.

The support of different languages is nice but like someone said, how many people use that. Apache supports perl natively usually, Python usually, plus whatever modules you want to install/compile.

If you don't like text configuration files go with ASP, if you want to use products designed by a single company, controlled by a single company, use ASP/IIS, you'll be happy.

But for me, it was never a choice, I could feel the pain of those legions of MS programmers working under the covers of all that stuff, it was too unpleasant for me, on aesthetic principles alone, open source stuff is just more interesting, and, well, open.

I almost wasn't going to post, since the original poster asked about asp people's opinion's of php, but since I was just forced to do a translation of an asp program to PHP, I guess that qualifies me, although I pray to all the gods in the heavens I never have to do that again, I doubt there is enough money out there to make me touch IIS or ASP again, hopefully anyway.

Re the money thing, any decent programmer is going to get paid, that's not a question. Apache PHP market share is eating into IIS market share, so I'm not particularly worried about getting paid, plus if my clients want me to do programming for them, it's going to be done on Apache PHP.

I'd never expect to convince any asp iis fan to switch, but for anyone else reading this thread out of curiousity, if you've been working with MS products and have this weird sense that something isn't right even though you can't quite put your finger on it, look to open source solutions and you might find where that sensation came from, I did. Or you might not.

Perl didn't hurt WebmasterWorld or craigslist, python didn't hurt google, so don't worry about finding work, I think you'll find that the most interesting projects tend to be done in open source. As for the rest, somebody has to do it, and they should get paid for that.

aleksl

4:20 am on Apr 21, 2005 (gmt 0)



2by4, touche

Just my 2 cents. ASP and PHP are equally qualified for a task of building websites. For those who like mod_rewrite there's always ISAPI filters. I personally like ability to connect to SQL Server DB over anything open source has to offer (including non-OS Oracle).

Here's a parallel. ASP is very good in corporate environment. It is very likely that IIS is installed somewhere in a BIGCORP. Not so for Apache. If you have a musle of BIGCORP behind you, many things are easier done with IIS - including integrating data from multiple databases, RFCs, accessing Access Databases Joanne in accounting has, etc. You can middle-tier your code - and it is likely someone in the company already has functions you might need.

But that is intrAnet. IntErnet is different. Micro$oft didn't get it with ASP3. They've got it with .NET. .NET is BY FAR a more powerful environment than PHP, IMHO. But with that, it is far too complex for most of the web projects.

dylans

4:55 am on Apr 21, 2005 (gmt 0)

10+ Year Member



ASP and IIS are Microsoft Products.
Enough said in my book.

I've coded in both and PHP is "much" more of a straight-forward language in my opinion. It just feels right.
Plus, you have the added benefit of it being OSS, so if you ever went big time... no money out of your pocket.

dylans

5:00 am on Apr 21, 2005 (gmt 0)

10+ Year Member



... oh yeah, and the .NET argument is nill.
I solely code Java at my 9-5, and it is probably my favorite language to use (with the exception of maybe Ruby).
For extremely complicated enterprise type situations, JSP/Struts is the bomb.

fischermx

5:22 am on Apr 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ASP and PHP are likely similar beasts.
Asp.Net is another and new history.

BTW, I recall I saw somewhere ads where microsoft was showing off that Asp.net+Windows2003 outperformed a *nix solution on same hardware.
Did anybody see this?

2by4

5:23 am on Apr 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



"It just feels right."

This is what I was trying to say, but you said it better. The very first lines of PHP I ever wrote just felt right, I knew I had found out what was wrong with ASP, it was made by MS. I prefer something made by Rasmus and company, real people, with real identities, who truly care about what they are doing.

I realize I sort of fell into mrMister's trap, of comparing apples to oranges. Since, as several have noted, asp is a development environment [assuming that this is correct], then comparing php to asp is silly, you should be comparing it to the open source development stacks of php/perl/python/ruby/apache/mod_rewrite/linux/freebsd/unix with mysql/postgre/ingres, and whatever new stuff has been open sourced this year. I see this all the time in these kinds of discussions, pretending that the only things out there are the very basic starter things, which are in themselves extremely powerful, I mean, get real mysql is radically superior to access, which the actual honest comparison. That's what runs continental airlines partially now.

And if anyone wants to claim that any windows is more secure, more stable, and can process more request per second than a well setup unix or linux, I'd like to get in touch with your dealer, whatever he's selling I want to buy. I accept all the other points, but this last one, well, post that on zone-h dot orgs forums if they're open yet and let me know what the feedback is on claims like that, laughter would be the first guess.

"where microsoft was showing off that Asp.net+Windows2003 outperformed a *nix solution on same hardware."

Yes, I saw that, it's pure bs, they paid for the study, they setup the test in a way that ms products would win. Hopefully at some point people will start ignoring these ms sponsored 'studies'.

<ps>I'd never even look in this forum, but since brett posted this on the home page to get the pot boiling, I felt obligated to stir it a little bit. The truth of the matter of course is that, unless I have to deal with IIS, IIS hosting, or Asp products, I never think about this stuff at all. And all my dealings with iis, asp etc, cause me nothing but pain. I try to avoid pain, so I avoid that stuff.

jatar_k

5:49 am on Apr 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I hope we're not confusing this lovely asp chat with an IIS chat

>> Apache PHP market share

last time I checked it is leaps and bounds above IIS share

we keep talking about corporate and IIS/MS

they have nothing, if we get to corporate/enterprise MS has a mild share if any, I would vote oracle/solaris any day, no comparison. Actually I will take FreeBSD, Apache, mysql and PHP over any ms setup in a heartbeat and it would be my pleasure to quickly explan why it will severely out perform an ms setup.

but i still give asp and php equal rights to web space, as far as the rest goes, MS can pay for whatever they like, won't get em more than they have.

<added>last time I checked Yahoo didnt use asp and last time I checked MS still ran a lot of *nix servers

2by4

6:30 am on Apr 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Re IIS, as far as I know, nobody in the real world runs asp on anything but IIS, so might as well not pretend. Same for .net on Windows. Plus, to me mod_rewrite is just another part of the stack, I consider the whole thing, I don't run php without apache, and I don't run apache without mod_rewrite, plus the backend stuff, they aren't separate. And that's part of why I really like things like PHP, it's got a coherent, fundamentally open development model on every level of is execution, os, server, dbs, everything, and it shows, at every level. There's a reason really big companies are getting involved more and more with this stuff, at increasingly serious levels, they know the danger of allowing a monoculture to take over the market, it's odd how easy it is for people to ignore that reality, I can't.

"last time I checked Yahoo didnt use asp and last time I checked MS still ran a lot of *nix servers

And you're probably familiar with the switch on hotmail from unix to windows, great stuff on that online, classic, the original unix stuff was trimmed down to I think 30 mB for the whole OS, they could do live upgrades of the servers without shutting anything down, windows came in at 900 mB. Again, people can claim anything they want about asp and how they like working with it, that's fine, to each their own, but don't try to pretend that windows comes anywhere remotely close to unix for serious server apps. Try to keep it at least somewhat believable...

"last time I checked it is leaps and bounds above IIS share"

IIS is dropping fast, I think it was losing like 0.8% a month, I might be off on that number. Which means more PHP, getting back to the point. If you want a career track of mid level corporate computing, you definitely want to go asp, no doubt, personally I'd rather shoot myself in the foot.

tenerifejim

8:23 am on Apr 21, 2005 (gmt 0)

10+ Year Member



I use PHP with IIS, am I screwed?

-------------

Actually I run IIS on windows 2003 mostly with ASP vbscript. I was running PHP until recently but had a problem with PHP running against an ODBC driver against a certain Oracle function. So I switched.

I also find IIS easier and quicker to configure. It also works better with our corporate ISA server.

Now I have 2003 I don't seem to have to ever reboot the server, it never falls over. Particularly as you have so much control now over application pools.

The only problems I have are with the Mcaffee virus scanner running on the machine (which keeps trapping CDO emails) and the latest 2003 patch which caused my 3rd party ii_mod rewrite to fail. Both problems now solved.

Swanson

11:09 am on Apr 21, 2005 (gmt 0)

10+ Year Member



Can I just check what the debate here is.

ASP is a technology, PHP is a scripting language (not a programming language). You can't code in ASP - you code in VB Script or J Script or Perl Script etc. on the ASP platform.

The debate is either PHP vs MS Scripting languages (VB script, J Script) or Linux PHP vs Windows ASP.

PHP is a powerful scripting language, C++ is a very powerful programming language, VB Script is a cut down version of an already simple VB programming language.

No comparison in my opinion - programmers use C, C++ and low level programming languages, web developers use scripting languages like PHP, VBScript etc. PHP on Windows is crazy in my opinion because it is less integrated and one of the reasons for using PHP may be price?

At the end of the day PHP is much more powerful on Linux than ASP on Windows using any scripting language they provide - to do more advanced stuff MS has provided .NET and better low level languages like C#. But it costs more.

This 80 message thread spans 3 pages: 80