Monday, July 13, 2009

What is the differnces between php and asp?

can they do the same things? i think asp can do more stuff with cookies etc, not sure though, which one is easier to learn

What is the differnces between php and asp?
Generally speaking, PHP and ASP are functionally equivalent. Everything that can be done in one can be done in the other (including cookies). Technical approaches may differ, but the end user most likely wouldn't see a difference.





ASP runs only on Windows and requires IIS (Internet Information Services) to be enabled in order to run.





PHP runs on virtually anything, including Linux, Windows, BSD (and, by extension, MacOS X), AS/400, and pretty much every commercial Unix implementation there is. PHP can work with almost any HTTP server out there, since it can be configured either as a server module or as a CGI/FastCGI executable. On Windows, PHP can be configured to run under either Apache or IIS; the latter allows the developer to develop and test in either PHP or ASP on the same machine.





Both PHP and ASP can integrate with a variety of database engines, either natively or via ODBC (PHP is more likely to integrate natively though).





Generally, PHP is cheaper to host, because it can be deployed on an open-source software stack (Linux/FreeBSD, Apache, MySQL). ASP requires Windows Server and IIS (plus, most hosting companies provide either Access or SQL Server), which brings the cost of hosting up somewhat.





Most people without prior programming experience find PHP easier to learn, because it does not require object-oriented programming and its interfaces to the operating system are based on functions, rather than objects, which makes writing code much easier for a novice programmer.
Reply:php is open source


free source ,free database( mysql)


free forum(phpbb and other)


free e-learning(moodle)





but asp(asp.net now)


you must have visual studio ,sql server








php more easier





asp.net have many wizard to do some tasks without code
Reply:Thousands of dollars.
Reply:Basically, they are just two different kind of programming languages, mostly used for web page design. They both have their attributes but it depends on how you wish to build the site.





"PHP" is generally used by the "linux" users or the people that wish to use free / open source software.





"ASP" is a Microsoft language and will allow the site to more easily communicate with your computer.





LEARNING - Both are about the same, if you learn one you can learn the other with ease. The main difference is in the syntax's and how their used. Both can do alot with cookies but ASP allows for a more interactive system for example "Microsoft Exchange 2003 web-mail system" runs off asp which allows the web-site (thru Internet Explorer) to open up and be used, as if you actually had the "Microsoft Outlook" program opened, this is something that PHP can't do that well.





So in learning, you can learn anyone to start, I am guessing that PHP might be easier, however once you get it you should then be able to pickup the rest (i.e. - Javascript, C, C++, etc.) pretty easy because the concept is pretty much the same.


No comments:

Post a Comment