Link to home
Create AccountLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

PHP versus Razor

I have been using Razor and MVC3 since January (MVC1 and MVC2 before that), but only now got exposed to PHP.

1) What advantage does Razor have over PHP?
2) Is PHP object oriented? Is it a scripting language?
3) For PHP to be used in creating the View, what back-end technologies could be used to create the Model and the Controller?

I presume if I could find PHP to be a fair alternative to Razor that once I find an alternative back-end technology to C#, I could then host the solution on LINUX. True?

Thanks,
newbieweb
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of curiouswebster

ASKER

So, it's server side scripting since the sérver interprets it and renders HTML it then sends back to the client.

It uses OOP and the correlary in ASP.NET is the C sharp that's integrated into theRazor file through the use of the @ symbol.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Thanks!