PHP is an abomination

I wonder if there are many reasons besides historical for PHP to still be alive.
Of course there is cheap hosting reason, but let’s then call every site running on PHP “cheap” (-;
Here we are on WordPress.com, and it’s in PHP. Why? Probably because I pay nothing to use it ((-:

Somehow web-developers became the lowest forms of software developers life – and that’s probably because of PHP.
What can explain all the security vulnerabilities revealed by recent hack in PHP BB site?

Now some nail in PHP coffin.

Credits: problem originally posted (russian language) by LJ user AlexClear.

<?php
$jan=01;
$feb=02;
$mar=03;
$apr=04;
$may=05;
$jun=06;
$jul=07;
$aug=08;
$sep=09;
$oct=10;
$nov=11;
$dec=12;
echo $dec-$jul."\n";
echo $dec-$aug."\n";
echo $dec-$sep."\n";
echo $dec-$oct."\n";
header('Location: I want warning here');
?>

Some might already see the problem, but I wonder if you know what result will be. And it is…
Continue reading

Advertisements