PHP vs ASP
Overview: Comparison between ASP and PHP
Active Server Pages (ASP) is Microsoft's technology for displaying dynamic web pages, ASP programmes mostly use VBScript, JScript. PHP is the open source alternative to ASP that runs on multiple operating systems, incuding Linux and Windows.
Speed PHP is relatively much more faster and stable than ASP. ASP is built on a COM-based architecture so when ever a programmes tries to connect to a database or he calls a COM object again when he tries to access the file system he calls another COM object, All this COM overhead adds up and slows things down.
In PHP modules, everything runs in PHP's memory space. This means that PHP code will run faster because there is no overhead of communicating with different COM objects in different processes. Again ASP is slower and more memory intensive than PHP's model because each ASP language compiler runs in its own process.
Price PHP installtions are definetly cheaper to install PHP runs great on Linux which is free, on the other hand ASP runs on the IIS Server (Internet Information Server) which need's Windows N.T/2000/XP.
Apart from that ASP mostly uses MS-SQL Server as the back end which again is expensive, Where as PHP programmes mostly use MySQL which is FREE!
| ||Editor: I have built sites both with ASP and PHP (Funtoosh.com was built on ASP now I am converting it to PHP) I have to pay 3 times more for hosting my ASP site than what I pay for my PHP sites and my PHP sites are much faster!|
No Hidden Cost With ASP if you need to upload files, then you would need a third party component ASPuplod, similarly if you need to send mail you need another component and so on.
In PHP ftp, encrypt passwords in MD5, or send email from a web page all are built in no hidden cost, and as PHP is Open source there is a lot of free code available for PHP.
Cross Platform compatablily As stated earlier PHP programms run on Unix, Linux, Solaris and Window's with ASP you are stuck with Windows.
Editor: This article just tries to differentiate between ASP and PHP, ASP is also a very good language and I have personally used it for over 3 year's I have built several popular site's with ASP, the most popular being funtoosh.com which get over 2 million page views per month. I think ASP is a good and useful technology, but in the long run I feel PHP is better.
Next: Your first PHP Code
| Terms of Service
(c) 2002 - 2014 PHPbuddy.com Unauthorized reproduction/replication of any part of this site is prohibited.