Forum Moderators: phranque

Message Too Old, No Replies

PHP or ASP.net or Java?

which technology is better?

         

mini

12:44 pm on Aug 26, 2007 (gmt 0)

10+ Year Member



Hey guys I want to know which tachnology you prefer for building websites.

And I have heard that .net and java are more secure...and that is why banking websites are built in ASP.net or java( or jsp).

Recently I have started learning PHP...but I am confused ....is PHP really worth learning?

Little_G

12:51 pm on Aug 26, 2007 (gmt 0)

10+ Year Member



Hi,

PHP is a perfectly valid language, some major sites are built with PHP (facebook) and they work just fine.
You'll find that compiled languages like Java will run faster so if you are expecting massive traffic then Java may be better, if you are expecting medium to large amounts of traffic then PHP will do just fine.
Also I have never heard of PHP being less secure than Java, I think it largely depends on the person doing the programing.

Andrew

jatar_k

1:09 pm on Aug 26, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



well, I definitely don't agree that java is faster but maybe that's me

if you started learning php then that's fine, it is supported by almost any host, lots of community support and tons of online resources. Of the three you mentioned I would have said PHP or .NET are your best bets.

here's a good thread from our PHP Library [webmasterworld.com] with some resources
Learning PHP - Books, Tutorials and Online Resources [webmasterworld.com]

>> if you are expecting massive traffic then Java may be better

umm, php seems to be ok for yahoo, digg and facebook so I'm not sure how much more traffic you could have.

Little_G

1:14 pm on Aug 26, 2007 (gmt 0)

10+ Year Member



Hi,

Normally Java is compiled into bytecode whereas PHP is interpreted on every execution, with that set up Java is going to be faster. There are 3rd party products from people like Zend that cache and compile PHP into bytecode, which is probably what larger sites use, also you must keep in mind that larger sites have considerable server power and resources, most of us can't make that same claim.

Andrew

mini

1:16 pm on Aug 26, 2007 (gmt 0)

10+ Year Member



Thanks Andrew.

The company at which I am working uses PHP. I am into website promotion(SEO)but I do have the scope of learning PHP here. I welcome your positive answers for PHP as this is the one which I am going to learn......I am just trying to assess it as a neutral person(without any bias).

Before I posted this topic here, I had put this question in another forum also where most of the replies were against PHP...Search with "php exploit" in google:

[google.com...]

I just want you to have a look at it.....

Wlauzon

1:24 pm on Aug 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



PHP is the most common, but ASP.NET 2.0 (soon to be 3.0) is by far the most versatile but has a really steep learning curve, and requires that ASP.NET be on the server.

Not sure that Java really fits in there as it is works a bit different.

[edited by: Wlauzon at 1:25 pm (utc) on Aug. 26, 2007]

Little_G

1:24 pm on Aug 26, 2007 (gmt 0)

10+ Year Member



Hi,

Exploits in PHP are rare and are normally fixed quickly, alot of them can also be negated by defensive programing. I don't think exploits in PHP are anything to put you off using it.
ps. I couldn't see what I was supposed to be looking for in that Google search. You can sticky me a link if you like.

Andrew

jatar_k

1:37 pm on Aug 26, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



the security of code in any language is, most of the time, as strong as the coder

if the company you are with is using php I don't see any reason to switch to anything else

mini

1:49 pm on Aug 26, 2007 (gmt 0)

10+ Year Member



Thanks jatar_k and wlauzon

jecasc

1:57 pm on Aug 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know if its only me but about every second page that runs a java applet freezes or crashes my browser.

Something that has never happened with PHP.

celgins

9:13 pm on Aug 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As Wlauzon said, you must have an ASP.NET enabled server to run ASP.NET and the learning curve is a bit challenging (especially for those new to Visual Basic style programming.

For diversity sake, I would learn both PHP and ASP.NET.

Wlauzon

9:47 am on Aug 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can do almost anything and everything with ASP.NET 2.0+.

But as noted, prepare yourself for a pretty heavy learning curve.

But on the plus side, as it gradually comes into more common use, there are more and more code snippets, plug-ins, and the like out there, though not near as many as there are for PHP yet.

The Microsoft site [asp.net...] has tons of info and links if you want to take a look at that route.