ASP.Net or PHP

Hi...
Im trying to choose which will i study for Web Programming either ASP .Net or PHP. Im currently studying the VB 2005 .Net 2.0 Framework and i would like to ask if the ASP .Net 2.0 coding style/syntax/etc. is almost the same with VB 2005 and if it is powerful enough for online gaming.

Any Suggestions, comments or recommendations are greatly appreciated...
[375 byte] By [NoviceProgrammer] at [2007-11-20 11:04:09]
# 1 Re: ASP.Net or PHP
[ moved ]
PeejAvery at 2007-11-10 3:56:13 >
# 2 Re: ASP.Net or PHP
It truly depends on what you are doing. Take a look at my article A Glimpse at Today's Server-Side Programming (http://www.dev-archive.com/cpp/i-n/network/basicnetworkoperations/article.php/c13867/). It will give you some good insight to them.

But, since you already work with the .NET framework in VS 2005, you might as well just stick with ASP.NET.
PeejAvery at 2007-11-10 3:57:14 >
# 3 Re: ASP.Net or PHP
i like lot php...i suggest it..
Rooting at 2007-11-10 3:58:09 >
# 4 Re: ASP.Net or PHP
Is coding/programming in ASP.Net almost the same or similar to VB.Net?

Is Visual Web Developer different from the ASP.Net Project Files in Visual Studio 2005?

If it is different, which one is better in creating an ASP .Net Project?
NoviceProgrammer at 2007-11-10 3:59:15 >
# 5 Re: ASP.Net or PHP
ASP.NET is very similar, but not the same to VB.NET; hence the reason why I suggested it. I personally favor PHP, but it is not for you because of your background.

You already have the .NET framework behind you. The only thing you should really have to do is create forms.
PeejAvery at 2007-11-10 4:00:13 >
# 6 Re: ASP.Net or PHP
Being the founder of several online web games, I would say that both PHP and ASP.NET are good choices.

I've made most my engines in PHP because it's straight-forward and efficient to program in. That is not to say that ASP.NET isn't efficient (the websites are compiled), but due to the number of layers that everything moves through, a lot of overhead is generated.

Unless you're a very experienced .NET programmer, I believe PHP will actually be easier for you to work with if you want a clean and efficient site. If you want to make something such as an online web game in ASP.NET it involves more coding for handling data, game logic and interface (and in order to be able to handle a lot of concurrent users you would have to handle the interface yourself entirely through .ashx pages rather than .aspx forms.)
andreasblixt at 2007-11-10 4:01:12 >
# 7 Re: ASP.Net or PHP
I actually just started studying the .Net Framework...
So im not an experienced programmer in the .Net world...

I think i'll go with PHP...

Can PHP do a Client Based MMORPG game? Just like Ragnarok Online and other online games.
NoviceProgrammer at 2007-11-10 4:02:11 >
# 8 Re: ASP.Net or PHP
Yes.

http://www.google.com/search?source=ig&hl=en&q=php+MMORPG&btnG=Google+Search
PeejAvery at 2007-11-10 4:03:13 >
# 9 Re: ASP.Net or PHP
From the vast minority of us out there, I recommend Ruby on Rails as a dev platform. It is much easier to use than PHP (in my opinion) and the Rails framework simplifies your life as a programmer tenfold. I used to work as a PHP programmer, however one company asked me to do a site in RoR and I have never looked back. Nowadays any time I do a website, I do it in RoR as it is much more of a pleasure to work with.

Why is it better than PHP? Using undefined variables in RoR causes an error, whereas in PHP they are given a default value of "". This may sound like PHP is better, however after I spent an hour trying to debug an app where the error was that I spelled $pageNum as $pageNUm I realized that it is not a very developer-friendly language.

Compared to ASP.NET, RoR programs seem small and bare. I had to translate a small app from ASP.NET to RoR at one point and the code size dropped by about a third. In addition, each line had much less text to it (using StringBuilders and System.Web.HttpUtility.UrlEncode() seems like a waste of time to me when there are solutions that require a lot less typing).

Like all languages, RoR is not without flaws. There is a slight performance hit to a RoR application in comparison, however when you properly use things like page caching and database indexes the performance issues are minimized (I remember doing page caching in PHP and it was a big pain). Also the documentation for RoR is not as well laid-out as with PHP or ASP.NET. I found with PHP that it was much easier to browse the knowledge base on their website than it is with RoR.
IllegalCharacter at 2007-11-10 4:04:22 >