What should an experienced Asp.net programmer know when upgrading to PHP?

I would like to think of myself as some kind of experienced asp.net/c# programmer. I love asp.net object oriented kindness. I like typed variables. I like to work in Visual Studio.

However, this afternoon I was hit in the face with a desire to write a web application using php / mysql.

I am interested, S.O., as a confident Asp.net programmer, what do I need to know about the basics of PHP (the whole lamp system, I suppose), which will ease the learning curve?

Are there any comparisons or analogies you can make? Cross-quote tricks, how am I? Etc?

One thing I'm not looking for is a reasoned or biased comparison. Heaven knows that they are already enough on the Internet.

+3
source share
4 answers

If you are switching from ASP.NET WebForms (I assume you are), the most important thing you need to understand is that the many classes that .NET provides you for web development do not exist in PHP - nothing is wrong with that : PHP gives you much more control to take your web application in whatever direction you want to go.

In short, ASP.NET is a full-blown infrastructure for developing web applications, PHP is just a programming language. However, like .NET, there is a framework to help build web applications.

The most important things you need to remember:

  • No code pages. PHP does not support partial classes, so you cannot use this function. Some structures, such as Prado, do a wonderful job of emulating this.
  • . GET POST.
  • . , , HTML .
  • - , include require. PHP , , .
+1

PHP → . NET/#, PHP , , , PHP, , , 80% PHP. 70% PHP - 30% Java-: , . PHP : , , , , , , , .

: Java = Military Dictatorship ( Java - ) PHP = Hippie Haven ( , ), , " ", " "... , .

, eFront elearning ( eLeraning ).

, Joomla Magento. ( ).

PHP, , .

+3

PHP . . ===, ==, , . ( )

, , - , .NET . , ; .

, , php , .

PHP - - , . PHP , , .

, PHP, , , PHP. CakePHP, , . , MVC, PHP.

, .

+2
+1

Source: https://habr.com/ru/post/1795242/


All Articles