|
Php
|
Asp
|
Java
|
|
No server Dependency means work nice with Apache,IIS,bad blue etc.
|
Works only with IIS
|
|
|
PHP has it's own language and syntax, the language is simplified due to the programs incorporation of a parsing engine that is especially designed to make short work of translating PHP code into machine language that executes commands.
|
ASP makes use of a language that was dying before Microsoft managed to breathe new life into it. Visual Basic Script is the language used in ASP and was formerly used (and still is used by some developers) as a client side scripting language that was in direct competitions with JavaScript. This was back when Internet Explorer was still the #2 browser behind Netscape Navigator. During this era, JavaScript was whooping the pants of Visual Basic Script with its wide acceptance amongst Web developers
|
|
|
PHP programs run on Linux, which is free.
|
To run ASP programs one needs IIS installed on a Windows platform server, which is not free.
|
|
|
PHP generally uses MySQL, which is freely available.
|
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 code runs faster than ASP b’coz PHP code runs in its own memory space.
|
ASP is built on COM based architecture, which is an overhead for the server so runs slower than php
|
|
|
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.
|
|
|
PHP has inbuilt features like ftp, email from a web page or even encryption mechanisms.
|
In ASP such features are not built in and some additional components are required. Therefore an additional cost is incurred for such components.
|
|
|
PHP 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
|
|
|
PHP, being extremely flexible, can connect to various databases, the most popular being MySQL
|
ASP mainly uses MS-SQL
|
|
|
flexible, variable behave 'naturally' alltough they all have a type
defined behind the scenes (like integer, string, etc)
|
|
strongtyped data. All variables should be declared.
|
|
You can mix in Objectoriented stuff to your liking.
|
|
Objectoriented, always.
|
|
Will fire up the php-engine when a request arives from a client.
So if you need sheduled tasks, you have to fall back to cron and the like.
|
|
Really resident and running on a server, so you always have some
running processes you can use for timers, etc
|
|
|
|
|