Question:
what is better ASP.Net or Php?
sohail_mubeen
2008-09-05 07:06:46 UTC
Plz tell me with detail what is better for web developing asp.net or php
Eleven answers:
?
2008-09-05 10:25:41 UTC
ASP versus Php



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.
Pawan
2016-02-11 07:59:49 UTC
Allowed into a challenge regarding a couple of heavy weights. In one corner, we have PHP, typically the most popular scripting language on the internet along with countless specific builders and a fair bigger legion regarding lovers. Inside various other corner, we have the .NET, the software supported through ‘Microsoft‘ itself that can make use of just about any. NET reinforced language.



PHP Overview



phhp_vs_asp



PHP means Hypertext Preprocessor. PHP begun to be a scripting application which includes rapidly used online on account of it’s uncomplicated learning necessities and substantial programmer area. As outlined by a single approximate, PHP can be installed upon in excess of 244 thousand web sites using server service coming from practically all major website hosts. PHP can also be free and delivers numerous frameworks for you to easily simplify web progress.



A lot of the major web sites published within PHP consist of WordPress and Facebook or myspace.







ASP.NET Overview



ASP. NET originated by means of Microsoft company to supply designers by having an quick scripting tool regarding constructing webpages and web programs. It is just a successor to ASP (Active Server Pages), another platform pioneered by means of Microsoft company inside mid-90s. You can code ASP. INTERNET utilizing just about any. INTERNET reinforced dialect, which usually made it especially favorite between. INTERNET designers. Microsoft’s early domination with the web browser market using FOR INSTANCE ended up being likewise to blame for raising this acceptance connected with ASP. INTERNET.



A lot of the key web sites which employ ASP. INTERNET tend to be Plenty Offish. com and Myspace . com.



The particular dilemma now’s: what dialect if you choose if you are beginning as being a developer?







Costs



This can be a no-brainier – PHP is very no cost, though ASP. WEB is really a ‘Microsoft’ product or service. Therefore there are particular prices associated with ASP. WEB advancement, that is:



Buying House windows, given that ASP. WEB advancement can be done just on the House windows unit. This kind of shouldn’t be a problem for many individuals. The use of some sort of Mac PC or maybe Linux, you should use this Mono undertaking to use ASP. WEB with your unit.



ASP. WEB requires House windows hosting. Right up until many years before, House windows hosting used to be now more expensive in comparison with Linux web hosting service. This can be hardly legitimate these days; you can actually uncover House windows serves for almost identical cost because Linux internet serves.



The advancement setting. Typically the most popular IDE (Integrated Development Environment) intended for ASP. WEB is actually Visual Facilities. ‘Microsoft’ offers a free edition associated with VS termed VS Express.



Like a starter, people won’t have to especially shell out more intended for utilizing ASP. WEB, nevertheless when you upgrade towards expert stage, you will need such as Visual Facilities, which can be by the few $ 100 or so cash.



PHP, however, is actually completely no cost, extends on Linux web hosting service, can be used on House windows, Mac pc or maybe Linux, which is reinforced by means of a number of no cost and settled IDEs.







Performance



Efficiency for some internet purposes can be a function from the connection between the piece of software, your databases and also the server. Nearly all internet purposes prepared inside PHP stick to your LIGHT bunch – Linux (OS), Apache (server), MySQL (database) in addition to PHP (scripting language). The LIGHT bunch is incredibly well-known for internet advancement, thereby, continues to be optimized broadly for much better effectiveness.



The databases used quite often together with OR NET. INTERNET is MSSQL (Microsoft SQL Server), even though you can also employ MySQL about it. The effectiveness different between a new OR NET. NET+MSSQL bunch along with a PHP+MySQL bunch are incredibly little together with PHP+MySQL edging available OR NET. INTERNET.



An additional factor of which has effects on effectiveness would be the COMPUTER ITSELF in addition to record system applied to your server. Nearly all assessments suggest of which Linux in addition to ext4 record system include superior I/O effectiveness than Glass windows and also the NTFS record system. So, there’s a great probability a new PHP program managing with a Linux webhost will certainly a little outperform a similar OR NET. INTERNET program managing with a Glass windows number.



Winner: PHP.



Support



PHP is free and being among the most favorite scripting languages online. There’s a tremendous available source designer neighborhood that regularly plays a part in PHP improvement. The actual open-source neighborhood also is commonly very useful, a major extra for novices.



OR NET. ONLINE, alternatively, is usually a Ms residence. Whilst you’ll locate a good amount of designer panels function by OR NET. ONLINE enthusiasts, the particular landscape will be no place near since energetic since PHP’s.



Winner: PHP







Ease of Learning



PHP benefits that one, definitely. ASP. WEB is frequently published within C# (pronounced H ‘Sharp’). C# is created with H which may be challenging to learn for many of us rookies. It’s syntax will be intricate as well as challenging you just read, perhaps intended for experienced coders. People a new comer to development will see ASP. WEB challenging to pick up.



PHP, in contrast, is incredibly simple to pick up (so much so that most experienced builders consider PHP coders since ‘newbies’). It is possible to understand some simple collections associated with value and begin tinkering with WordPress subjects nearly immediately.



Winner: PHP







Conclusion



If you do not happen to be familiar with the particular .NET framework or even desire to stick to ‘Microsoft’ engineering, there isn’t any tangible should work with .NET more than PHP. PHP is able to do precisely what .NET may, and it also is able to do it without cost.



Ever since you’ve chose to work with PHP, take this course to understand PHP programming from scratch .



Precisely what will you choose – PHP or even .NET ? Let us know inside the responses below! .
anonymous
2014-10-09 04:12:39 UTC
Hello dear i am sharing you one Article's link here, You can Get complete solution there,



PHP vs ASP.NET : Which programming language is the best?

http://www.tops-int.com/blog/php-vs-asp-net-which-programming-language-is-the-best/
damnyankeega
2008-09-05 07:15:16 UTC
IMO, PHP. Mainly because it is platform independent. With ASP.Net you are stuck on a Windows platform.
F
2015-11-24 07:21:15 UTC
we need to be comparing apples to apples. So what is the apple to ASP.NET MVC and WebAPI? Well, there are a lot of apples out there. These are generally called frameworks and you can see a lot of them by just Googling ‘PHP frameworks’.
atif
2015-11-16 04:07:05 UTC
PHP is open source, widely supported by webhosts, It is easy to setup with low requirements for workstation.In contrast, ASP.net is a framework developed by microsoft. Everything which can be done in PHP can also be done in ASP.net.Both the languages provide the same level of security.Development time in PHP is lesser according to many software developers. ASP.net development is costly as compared to PHP. There are more frameworks available in PHP as compared to the number of frameworks of ASP.net.
Ionut
2015-01-17 11:57:06 UTC
test
Dave
2014-12-09 01:43:54 UTC
PHP is a open source language and it is best for web development.



ASP is good. When your particular about web based applications php is best option.
no1home2day
2008-09-05 07:10:25 UTC
Likewise, I would ask YOU, which is better, a hammer, or a screw driver?



It depends on what you're trying to do.
kryzchek79
2008-09-05 07:10:15 UTC
Depends on what you want to accomplish. I'm biased towards ASP.NET, but you'd most likely find more hosting opportunities (and cheaper hosting) in a PHP environment.
arushcapoor
2016-07-27 05:11:34 UTC
In my opinion Asp.net is much better instead of PHP because of the Object oriented Programming concepts.


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