Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 15th, 2009, 03:44 AM
Authorized User
 
Join Date: Dec 2007
Posts: 65
Thanks: 9
Thanked 2 Times in 2 Posts
Send a message via AIM to sandeepgreaternoida Send a message via MSN to sandeepgreaternoida Send a message via Yahoo to sandeepgreaternoida
Exclamation difference between php and .net

what is the basic difference between php and .net ....i personally feel that most of the people use php rather .net.
which is good and easy to learn
 
Old January 15th, 2009, 06:35 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

What's the difference between English and Hindi?

They are both languages. There are a few root words and root grammatical concepts in common. But to be fluent in either one you have to learn it from the ground up.

Perhaps the biggest difference is that ASP.NET is built on top of a framework (that is, the .NET framework) whereas PHP "grew up" from an unstructured non-object-oriented language and doesn't inherently depend on any one framework. (Though there are clearly various frameworks in use by the PHP community today.)

And with .NET, even the languages *CAN* be very different. Clearly VB.NET and PHP have very very little in common. (Again, maybe as much as English and Hindi?) Whereas C# and PHP at least use MOSTLY the same "alphabet" (maybe like Hindi and Bengali??) but have many "words" that are very different.

And of course you neglected to mention JSP (which is sort of midway between PHP and C#/ASP.NET) and ASP and Cold Fusion and...
 
Old March 5th, 2009, 05:53 AM
Authorized User
 
Join Date: Feb 2009
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

.Net is not a language; it is a framework that can incorporate multiple languages. Source code is first pre-compiled into something called MSIL (Microsoft Intermediate Language) and then translated into actual executables. Out of the box, .Net supports VB.Net, JScript.Net, C#, and C++. Third-party products are available to extend .Net to supporting other languages, including Perl, Python, and PHP.

Advantages (when it comes to Web application development, that is) are very clear.

* PHP is much easier to learn, partly because it requires no adherence to a particular programming style; .Net languages and Java tend to require object-oriented programming.

* PHP runs on virtually any operating system (including Linux and FreeBSD, the workhorses of affordable Web hosting) and HTTP server (which means that you can develop on WIndows/IIS and host on BSD/Apache); .Net runs only on Windows/IIS, while Java requires an application server (Tomcat, WebSphere, WebLogic, etc.), some of which are OS-dependent. Additionally, Java code may not always be portable between different application servers.

* PHP is free, so instead of spending money on software licenses, you can upgrade your hardware.

* PHP natively integrates with a large array of database engines, both open-source (MySQL, PostgreSQL, SQLite) and commercial (Oracle, MS SQL Server); .Net tends to work better with MS SQL Server and draw on ODBC for database connectivity with other engines, while Java relies on JDBC drivers for database connectivity.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between VB.Net and Visual Basic 2005 dotnetDeveloper Visual Basic 2005 Basics 1 June 27th, 2008 07:51 AM
Difference between ASP.NET programmer v/s C# prog myquery General .NET 1 October 20th, 2007 06:43 AM
Functional Difference Between VB .net And C# Amitchoudhary .NET Framework 2.0 7 September 15th, 2006 08:06 AM
Difference between VB6.0 and VB.Net-illustrational ramk_1978 General .NET 1 December 31st, 2004 01:57 PM
Difference between two dates in Vb.net bimal VS.NET 2002/2003 5 August 15th, 2004 11:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.