Results 1 to 25 of 86
Thread: which is better asp or php?
-
10-29-2006, 02:04 PM #1WHT Addict
- Join Date
- Jul 2006
- Posts
- 146
which is better asp or php?
A friend told me that asp was pro and that php was for newbies...
He seems to know a lot so, is that true?
-
10-29-2006, 02:06 PM #2Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
I personally use PHP since the last couple of years and I really like it. Althought, I did tried ASP once or twice but didn't quite fit into that structure though.
-
10-29-2006, 02:38 PM #3WHT Addict
- Join Date
- Oct 2004
- Posts
- 104
I think that asp architecture is vastly superior to the way that php runs on most sites. But does it reall matter what type of architecture a system is built on if both are good enough?
As for the comment that asp is for pros and php is for noobs, that is one of those dumb statements that would make me question how smart this guy really is.
-
10-29-2006, 02:54 PM #4Web Hosting Guru
- Join Date
- Mar 2005
- Location
- Orlando, FL (USA)
- Posts
- 289
People program more in PHP then any other language. I highly recommend using PHP over any other language, ASP is very costly and it also runs on windows platform which is not the best operating system for security and does seem to take there time in patching security flaws.
PHP used on most linux/unix platforms, to me.. has better security and performance then anything language, if you set it up correctly. I have worked with rails and it has it's flaws just like any other language. I find php to be the most advanced language for my needs but I do use rails for certain things.
I'd honestly stay away from Windows/ASP/MSSQL very costly and not worth it. I'd stick to linux-unix/php/mysql <- just my opinion tho
-
10-29-2006, 03:06 PM #5Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
I'd honestly stay away from Windows/ASP/MSSQL very costly and not worth it. I'd stick to linux-unix/php/mysql <- just my opinion tho
-
10-29-2006, 03:14 PM #6Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
I'm not sure that horizon's opinion counts for much, certainly not if looping over an Array to create a new Array instance with different ordering is an apparently insurmountable personal challenge.
This isn't a personal attack but a reminder that opinions need to be judged in part on the experience of the poster on the topc matter.
As for the topic itself, there are professional programmers and amateurs alike using both ASP and PHP. One uses one over the other more because of operating system preference than anything. You either buy into the Windows OS / .NET way of doing things, or you don't. If not, PHP, or other alternatives - commonly Perl, Python and Ruby - will be appealing to professional or amateur alike.“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
10-29-2006, 03:39 PM #7Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
This isn't a personal attack but a reminder that opinions need to be judged in part on the experience of the poster on the topc matter.
-
10-29-2006, 03:46 PM #8Web Hosting Master
- Join Date
- Sep 2005
- Posts
- 551
PHP has my vote.. It is more compatible with other operating systems.
-
10-29-2006, 03:55 PM #9Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
It would, indeed, be great to have a poll for PHP and ASP on this forum (if it doesn't exist already).
-
10-29-2006, 04:25 PM #10Web Hosting Master
- Join Date
- Apr 2006
- Location
- Southern California
- Posts
- 1,124
PHP is better. I kinda see PHP5 as like the C++ for web programming as C/C++ is to general programming. ASP.Net has a lot of objects going for it, at a certain point having objects might be nice and might be quicker for programming, but it eliminate the ability to do lower level stuffs. ASP.Net is nicer if you have to do stuffs like web services where ASPX has a lot of specialization for those stuffs. But for other general web program then PHP is better. Sometimes it's just quicker to be able to do things with a single function instead of having to create an object. PHP dominate because of it portability and deployment capabilities. Until there's a .Net for Linux I wouldn't consider doing anything with ASPX.
Sarcasm, the 6th Ponyman of the Apocalypse.
Please do not inquire about Tim, the 5th Ponyman.
-
10-29-2006, 04:50 PM #11Web Hosting Evangelist
- Join Date
- Apr 2005
- Posts
- 503
AS others have said, with PHP you don't need Windows, you don't need .NET, you don't need as powerful a computer, and it runs almost everywhere.
IE7 is nine years behind the standards or wrong.
But it works in IE!
"IE is a cancer on the web" -- Paul Thurott
"Avoid hacker-bait apps like Internet Explorer" -- Kevin Mitnick
-
10-29-2006, 05:57 PM #12Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
Originally Posted by horizon
I ventured my opinion on the usefulness of yours, in this context, because you can't possibly be relied upon to judge one language over another if you don't even know how to use basic features of a language (PHP) such as looping or understand one of its principal data structures (arrays).
That's a clear headed observation, not a personal attack.Last edited by mwatkins; 10-29-2006 at 06:11 PM.
“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
10-30-2006, 10:24 AM #13Web Hosting Guru
- Join Date
- Oct 2006
- Location
- Jupiter, FL
- Posts
- 348
Well it really depends on what you're trying to acomplish. Obviously both are powerful programming languages, but PHP seems to get the job done very well, especially when working with Content Management Systems. PHP has also been claimed to be one of the easiest programming languages to learn and use.
Ben Gabler
Chairman & CEO, Rocket.net
Web Hosting Industry Veteran (HostNine, Hostgator, GoDaddy, StackPath)
-
10-30-2006, 10:43 AM #14Disabled
- Join Date
- Oct 2006
- Posts
- 155
I prefer php. Because I'm good at it.
-
10-30-2006, 10:49 AM #15WHT Addict
- Join Date
- Oct 2002
- Location
- Hong Kong
- Posts
- 166
There is no such thing as 'better'. It really depends on what you want to do with it. If you're stuck with a Unix or Linux platform, you really dont want to do ASP. If you're on Windows, you might not want to do PHP. It also depends on the versioni, both latest versions are quite mature.
Some find ASP work nicely because it integrates nicely in IIS and the OS,
others find that a disadvantage because it makes tracking down errors harder.
Some find PHP easier because the syntax is closer to C++ and Javascript,
others prefer ASP because it came from VB and has an easy to understand
syntax.
It really depends on what you want.
-
10-30-2006, 01:55 PM #16Junior Guru
- Join Date
- May 2004
- Location
- Mountain View, CA
- Posts
- 229
I'd go with PHP. You can run PHP anywhere. ASP, however requires a windows box.
-
10-30-2006, 02:11 PM #17Aspiring Evangelist
- Join Date
- Oct 2006
- Location
- uk
- Posts
- 448
asp has been replaced by asp.net.
asp.net from a programming point of view is a very neat language. It is truly Oo. unlikyl php which is more similar to c++.
the php vs asp.net debate is like c++ vs java.Rediscover online gaming Get Continuum / Subspace | Play Trenchwars
-
10-30-2006, 02:17 PM #18Web Hosting Master
- Join Date
- Sep 2004
- Posts
- 1,909
it seems to me as linux continues to grow in the hosting industry and some would even voice the opinion that it has out grown the windows market - php would be the one to go with. just my opinion.
-
10-30-2006, 02:23 PM #19Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
The original poster ought to be asked "why only those two choices"?
I think a better question to ask first is "what platforms will you need to develop on", and if the answer includes non Microsoft platforms, then ASP / ASP.NET suddenly are off the table (I don't consider Mono a realistic platform for hosting .NET apps on non MS OS's at this point).
If multiple platform support is gone, then ASP disappears and you are left with PHP. If you want multiple platform support and alternatives to PHP then you have quite a lot of choice:
PHP
Cold Fusion to some degree (fewer platforms supported)
Perl
Python
Ruby
Smalltalk, Lisp and other languages the original poster may never have heard of.
Of the non PHP alternatives, Python and Ruby have the most current momentum but there's a ton of Perl web code out there too, running big sites.
If you want universal support on web hosts, PHP wins, although there are more and more web hosts supporting Python and Ruby (on Rails) app stacks. Hint, this might be a good differentiator for all the me-too hosters out there.“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
10-30-2006, 03:18 PM #20Web Hosting Guru
- Join Date
- Nov 2003
- Posts
- 297
rofl ms - your friend is a noob
lrn2nix
(sorry you know what they say about stupid questions...)
-
10-30-2006, 04:31 PM #21Web Hosting Guru
- Join Date
- May 2006
- Posts
- 279
The only thing I have to say here is :
The question has been around for a while and there is no answer. Php people will say Php and Asp will say the opposite. I had quite an argument the other day on the same topic as a matter of fact. It all comes down to the individual programmer and his/hers ease of use of the platform. You can argue that asp costs more in terms of development of a website but the same goes for a secure php site.
My question here is : which beer do you prefer
-
10-30-2006, 05:38 PM #22Hail Eris !
- Join Date
- Oct 2002
- Location
- Canada
- Posts
- 3,103
ASP is horrid horrid thing. ASP.net is different story. I like C# better then PHP but I dislike all the tools and stuff Microsoft built around it and I chose to work with PHP rather then ASP.NET. Which is better depends on many things: your skill, platform cost, target market and personal preference to name a few. In my case - I simply cannot stand windows desktop, I do not understand why would I have to pay for less then perfect software and finally I am control freak so my choice (even as I said that I love C#) is PHP running on linux. When mod_csharp becomes available on apache I might make a switch.
About PHP being for "noobs" - It takes only notepad and cheap hosting account to get going with it and you can download bunch of freely available stuff and call yourself PHP programmer. So yeah, I would say there is much large noob/pro ratio in PHP community. That being said I saw what kind of code some pro ASP.NET, MS-certified-gold-partner-and-whatnot, shops put out and they are not too far from being noobs themselves. It always gets down to the person writing the code not the platform itself.
-
10-30-2006, 06:05 PM #23Web Hosting Master
- Join Date
- Dec 2005
- Posts
- 550
ASp sucks. ASP.net rocks.
Their code behind approach is very nice.
For those who are searching for an ASP.NET clone in PHP, try Prado framework
-
10-30-2006, 06:13 PM #24Junior Guru
- Join Date
- Mar 2006
- Posts
- 221
Originally Posted by grabmail
If you got basic need, the code behind is really far from being needed.
Beside, ASP 3 is an older version that isnt as object oriented as c#/vb.net is. It's different.
-
10-31-2006, 10:07 AM #25Newbie
- Join Date
- Sep 2006
- Posts
- 6
Just to dispel some of the FUD here, PHP is used on many large sites, like Wikipedia for example. If you want something comparable to ASP.net without relying on microsoft, try taking a look at java servlet/jsp. There are many other options out there, give them a try instead of just listening to language zealots.