Question:
What's the best all-purpose Server-side language?
denimcap
2008-01-12 23:08:29 UTC
I'm not necessarily talking about ease. I know some java and feel comfortable with the language. They say PHP is good, simpler, for the less complicated webpages. If you know java, is there a downside to using it for all your needs? Is it so complicated and tedious and demanding that it would really be better to learn PHP, or is it ok for an al-purpose language? If not, what is? Is it PHP, or ASP, or something else?
Six answers:
TRON
2008-01-12 23:47:02 UTC
The reason companies use proprietary software is none other that in case something goes wrong, they have somebody to blame. Usually this translates to a "sorry about that" from the software manufacturer and that is about it (pointing fingers at Microsoft right now, how many times does this happen per month?). ASP is proprietary, PHP is Free Sofware, as others have pointed out. Free Software means that if a bug is found on the implementation, it will be fixed within hours, depending on how mission critical the bug is. Heck, on my operating system, I found a simple UI error, within hours they had submitted a patch to fix it (guess what? I am using Fedora 8 GNU/Linux). When was the last time proprietary software had something like that? I am NOT going to point to Microsoft on this one, I really don't like putting down people/companies. Adobe had some errors in their Flash implementation for years, until they released the newest version (version 9). Sun had some issues with Java that weren't corrected until Java became Free Software.



Having said that, language wise, PHP is far more supported and faster, so go for it (and also you won't have to pay a cent to get it working, but you won't have anybody to blame, as Free Software comes without any warranty of any kind, then again, why would you want to blame somebody if YOUR server crashed for stuff you should be patching as fixes are being deployed?). The choice is yours in the end, but I'd say, learn PHP with mySQL bindings.
2008-01-12 23:17:06 UTC
Most web professionals would have a working knowledge of 1 or 2 server side language they are competent with.



When I first worked for a company, it was ASP then I merged using ASP.Net.



Sometimes I prefer PHP because it is simple to use. Also, it is free and its open source meaning that a lot of people are using it for development to make it better. There are a lot of enhancements to create better web experiences and websites today.



I have more experience using ASP.Net -- that's all I can say. I don't what are the difference between Java since I don't have experience working with the programming language. No comment.



It depends what server side language you are more comfortable with.
msafiullah
2008-01-12 23:30:04 UTC
I really prefer PHP. I have not worked with ASP but it seems a bit complicated than PHP. PHP is really easy to learn and use. I have worked on a lot of websites and I have used PHP for all of them. PHP is opensource and its free.



But, usually, many big companies use ASP. I dont know what is the reason. But, companies that use PHP also exists.
just "JR"
2008-01-13 00:44:18 UTC
Answer I give to these questions:

PHP, [www.php.net], while loosely based on C and Perl, has never faced the overwhelming complications ASP has. PHP is an object oriented language - though scripts need not necessarily be developed that way (there are still a vast number of developers preferring procedural programming, and PHP caters to both schools). PHP is both cross platform and open source, available for every major operating system and works with most web servers. It is easily extendable by anyone capable of coding in C, and comes pre-bundled with more functionality than ASP could ever offer. Simple capabilities, such as FTP, data compression, file uploads, XML, MD5, encryption and email are not included in ASP and require expensive, third-party packages to be installed. All of this functionality and more are built right into PHP. Complex functions such as dynamic images, IMAP, SNMP, dynamic flash, PDF, native access (non ODBC) to Oracle, Ovrimos, Postgre, Sybase, mySql, MSSQL, Ingres, Interbase and Informix databases, LDAP, and sockets, just to name a few, are available for free to any installation of PHP, but are not (and probably never will be) available with ASP. In addition, one could make the point that PHP is a more mature language than ASP. ASP has only been around since 1996; PHP has been around since 1994, and has a huge base of developers working on it every waking minute of every day; bugs are usually fixed within minutes of being reported and new features are being integrated daily.



1) ASP is significantly slower than PHP, for obvious reasons. Primarily, PHP runs on notoriously fast Unix and Linux servers which have for years outpaced Windows running on comparable hardware. ASP does not run on any operating system other than Windows, and even then, only in IIS and PWS. I could discuss countless reasons why IIS makes a terrible web server, but that would be a discussion all on it's own. PHP runs on almost any web server, on almost any platform. I have even built a web server in PHP which was capable of executing PHP scripts.

2) ASP natively supports only Access and MSSQL, whereas PHP natively supports a huge number of databases. They both support ODBC equally well. MySQL is a database that PHP closely integrates with; it is a very powerful database that rivals Oracle in speed. Like PHP, MySQL is free, and blows most other databases out of the water. Another hidden cost with ASP is the database angle; Microsoft expects you to develop using Access and when your webpage outgrows it, to switch to MSSQL, an extremely expensive option.



3) While even the best software has glitches, PHP has notoriously few. The PHP development team has an outstanding reputation for fixing bugs, and in order to streamline the process they even have an online system through which new bug reports can be submitted. Most bugs are resolved within 24 hours, and I'm speaking from experience here. There are a huge number of outstanding bugs in ASP which will probably never be fixed. Unless you're a major corporation, chances are that your bug report to Microsoft will likely go unanswered.



4) And finally, cost. PHP is free. ASP isn't free. If you want to use ASP, you have to use IIS, and if you want to use IIS, you have to buy Windows. Traditionally, the cost of Windows has been high. Microsoft has been aggressively trying to reduce this factor but they're hardly going to give Windows away for free. The cost of running an ASP-based website implies a full Windows server platform; development costs are higher, software licenses are expensive and speed, security and flexibility are all sacrificed.



There's a reason that Unix and Linux are dominant in the server market; money, security and performance all speak volumes.



Article by Neeraj Yadav, software evaluer.
aplpie
2008-01-12 23:13:01 UTC
Hey,



Thats a great question.



Personally to more websites i go to, they are using ASP.



It is easy to learn, especially if you already know html.



Also i know many big companies who use ASP and they love it.



I think the best route for you would be to go ASP, language of the future
that_guy
2008-01-12 23:14:03 UTC
From what I hear as well, its PHP.



But I haven't actually used either. I'm just learning css/html ATM...so I'm just as and if not more confused as you.



PHP is very popular in the web design section of craigslist.



IDK if that helps, but goodluck.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...