Cue 1000 server admins calling PHP a shit language whilst providing no superior alternative.
The developers of PHP have released updates to thwart fresh attacks against systems that use the scripting language to dynamically generate web pages. All users are encouraged to upgrade to PHP 5.4.3 or PHP 5.3.13, as appropriate, after a serious security bug in PHP-CGI-based setups was disclosed. Developers attempted to fix …
Wednesday 9th May 2012 14:36 GMT Cazzo Enorme
I'm not a "server admin", but here are a few superior alternatives:
Ruby on Rails
Python on Django or various alternatives
Java with Spring
Groovy on Grails
Scala with Lift
Smalltalk on Seaside
Hell, even C# if you're happy with Windows as a platform.
They are all programming languages designed and maintained by people way more competent than those responsible for PHP.
Wednesday 9th May 2012 15:41 GMT Rob Carriere
You're right, all of those are superior to to PHP as a language.
Which is nice when I'm toying around at home, or when I'm working for a business that does their own hosting and is willing to configure their webserver according to my wishes. It's completely irrelevant when you're dealing with hosting providers, who typically provide a choice between static HTML or PHP.
This in turn means that if you're not in the mood to invent your own CMS from scratch, you're doing PHP.
The world would be a much simpler place if technical merit were the only criterion for choosing a programming language.
Wednesday 9th May 2012 22:53 GMT Peter Murphy
That means a lot of hosting services need to lift their game.
It's not good enough to just offer PHP or straight HTML any more. My hosting service, Webfaction, also offers Perl, Ruby, and Python as well, as well as their frameworks like Rails and Django. Other firms have similar facilities available.
Thursday 10th May 2012 11:48 GMT James Dunmore
Sorry, but PHP is fantastic as a lightweight front end (website) programming language. It has the smallest, easiest hello world of any of them. It's only a bad language when you write bad code - sure, the difference is in PHP it's easier to write bad code, but that's down to a bad programmer, not a bad language.
I've seen plenty of C# and Java websites that run badly, and have been written badly (not to mention how slow Java and c# are). Don't use a sledge hammer, and all that, PHP is great for it's job - it's why it is used so widely
Don't get me started on how dead Ruby, etc. are.
I'd agree that Python on Diango is a good alternative, but I'd argue against it being superior.
Wednesday 9th May 2012 14:47 GMT cynic 2
Wednesday 9th May 2012 15:28 GMT Steve Knox
Thursday 10th May 2012 10:03 GMT SYNTAX__ERROR
Re: Pick a side!
That's just John Leyden for you. He doesn't know whether he is British or American.
His brain immediately forgets the keys his fingers press as he is typing. If his eyes were ever to move back along the line of text to verify the words he has just written, then his head would immediately explode. Not to mention the implications for the space-time continuum.
Even the sub-editors daren't read his work as it will forever haunt them in their sleep.
Wednesday 9th May 2012 19:46 GMT iamzippy