Ian Bicking: the old part of his blog

Re: Towards PHP

I love Python. But my first choice for web development is still PHP. Briefly, here's why:

$> apt-get install php

$> echo '<?php
$_SESSION["world"] = "world";
$world = htmlspecialchars($_SESSION["world"]);
echo "Hello $world";
?>' > /var/www/html/test.php

Load up browser to test.php. Done. (did this from memory, syntax might not be correct, but you get the idea -- installs in one line, built in support for sessions (that use cookies OR urls), built in functions for common web chores, everything can go in one php file for quick prototyping.)

Comment on Towards PHP
by sjbrown