Translate

Sunday, August 30, 2009

asp Vs PHP

ASP vs. PHP
By Praveen Thappily
Hi,You are confused, ASP or PHP is better?
In my opinion it is PHP.because I am familiar with both scripts. But it doesn’t mean ASP is not good for creating dynamic pages. ASP (Active Server Pages) is from Microsoft and is used with IIS (Internet Information Server) that runs on Microsoft Servers. While PHP (PHP: Hypertext Preprocessor) is from Rasmus Lerdorf(Personal Home Page-PHP), who originally designed this parsing language which was later modified by different people. It runs on Unix and Linux servers and it also has an NT server version.
Now we can watch main differences of ASP and PHP
First we can discuss about cost of these scripts. To run ASP programs one need IIS installed on a Windows platform server, which is not free. PHP programs run on Linux, which is free. Even the connectivity of the database is expensive in the case of ASP as MS-SQL is a product of Microsoft that needs to be purchased. PHP generally uses MySQL, which is freely available. There is no hidden cost for PHP .But buying ASP is a bit confusing one. If you need encryption utilities you have to buy ASP Encrypt. If you need email management you have to buy Server Object’s QMail. If you need file uploading you have to buy Software Artisans SA-File Up. All this is built into PHP for free. Means you can directly download PHP from www.php.net with free of cost!!
Now we can discuss about the execution speed of both scripts. If we compare the speed of ASP and PHP then PHP has an upper hand. PHP code runs faster than ASP. ASP is built on COM based architecture, which is an overhead for the server whereas PHP code runs in its own memory space.
Now we can look on Platform Compatibility of both scripts.PHP programs can run on various platforms like Linux, UNIX, Windows and Solaris whereas ASP is mainly associated with Windows platforms. However, ASP can run on a Linux platform with ASP-Apache installed on the server.
In my opinion, for a beginner PHP is most suitable. PHP is really a PERL like language And also loosely typed language. And is based on C++ language and the syntax used in PHP is quite similar to C/C++. C/C++ is still considered the best programming language by many programmers and people who love this language would surely feel more comfortable with the syntax of PHP. ASP on the other hand has a more Visual Basic kind of syntax that again is closely related to only Microsoft products. So, it depends on a person-to-person which language he or she is comfortable
There is a funny think please look on keyboard our php tages < > ? / are situated nearby.but ASP tags < > \ and % are away ….Don’t take it is serious think….



Database Connectivity
PHP, being extremely flexible, can connect to various databases, the most popular being MySQL. ASP mainly uses MS-SQL. I am open source software developer and adviser. So I like Apache, Ubuntu(Linux Os www.ubuntu.com ), PHP(www.php.net) , MySQL(www.mysql.org ), Mozilla Firefox(Great browser) combination. Please use these great tools. Now we can conclude our topic. Both languages have their advantages specific to users... If we talk about developing a discussion board then ASP is equally capable but many feel the best discussion boards are developed in PHP. If a user is looking for some e-commerce application development then many would call ASP the ideal choice. This does not mean that PHP cannot provide e-commerce solutions only that many people choose ASP. So now take a good decision.
IF you find any wrong content in this blog please mail me pravymon@gmail.com .Please comment on this article Praveen Thappily, PravySoft