Dot Net vs PHP Question

G

GuitarZilla

Hi,

I'm not trying to start and argument, but I'm wondering if PHP is as fast
all things being equal as asp.net in execution / sending the results of a
page either static or generated? I briefly looked at PHP and it reminds me
of classic ASP in that it seems you have to use the Top Down approach as far
as it is a scripting language instead of a real compiled language like Dot
Net uses for the web? Is this correct? I'm sure they both have their
advantages and disadvantages, but I'm wondering what these would be? Thanks
in advance from someone trying to figure out which to use / learn first..

Tim
 
C

Cowboy \(Gregory A Beamer\)

You have a basic analysis down. The main reason many go with PHP is the
predominance of Linux in the hosting world. If you stick around the web
boards, you will eventually here LAMP, which stands for Linux, Apache, MySQL
and PHP. I have also seen LAMR (is that pronounced lamer?) when Ruby (on
Rails?) is used. And AspPro magazine showed the LAMA stack (Linux, Apache,
MySQL and ASP.NET, via Mono).

PHP is similar is some ways to classic ASP, including the execution model.
It is not identical, however, and has some advantages in areas like string
handling (amongst others).

As far as a "what should I learn", I would aim for whatever your market
focuses on. In Nashville, where I am at, there is precious little PHP work,
so it would be a waste to focus on PHP. The same is true of Java, Ruby, etc.
ASP.NET is the wise choice. This is not true of all markets.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
C

Cor Ligthert[MVP]

In addition to Gregory,

The difference can be the Assynchronous possibilities (Ajax). The advantage
from the Net server side languages is that the JavaScript for those is
generated and then automaticly rendered by IIS. Those facts makes it easier
to use Ajax (In my experience far back, it is by hand a terrible job to make
and to tune it). Be aware that Ajax is not forever a solution to speed up.
However, as you have an application with few different screens, which use a
lot of interaction, which is to slow, then in my opinion for sure you would
try it.

Cor
 
M

Michel Posseth [MCP]

Cor


The "asynchronous thingy" on the web existed a long long time before .Net
even existed
PHP developers laugh at us if we tell them it is a new thing,,, they had
simular functionality when we played with classic ASP and .Net was not yet
invented .

Although you are right if you state that ASP.Net in combination with AJAX
makes it possible for developers who do not know javascript to develop such
websites .

IMHO

ASP.Net is currently superior from a developers perspective , and despite
what some people think ASP.Net can also be hosted on the UNIX / LINUX
platform ( MONO , GRASSHOPPER ) and it works verry good the last time i
tested it ( 3 years ago ).

However PHP has also some big advantages towards ASP.Net
.. Developers are much cheaper
.. Development environment is free
.. Hosting is verry cheap
.. verry large user base
.. Lots and lots of free resources and frameworks for CMS etc etc

So for Comapies the choice is often PHP as it is much cheaper to set up and
to maintain as ASP.Net ( look at only the hosting costs )

regards

Michel Posseth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top