Forum Moderators: phranque
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
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.
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
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.....
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
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.