Bit of PHP

February 28, 2008 on 9:50 pm | In general | No Comments

 Can you guess what this does?


// phpexample.php
$num = 0;
$spaces = 1;
while ($num < 15)
{
$count = 0;
while ($count&<$spaces)
{
echo " ";
$count++;
}
echo $num;
echo "
";
$num++;
$spaces=$spaces+3;
}
for($x=0; $x<$spaces; $x++)
{
echo " ";
}
echo $num;
echo "
";
?>

Try it.

Just a PHP exercise Joe needed to do.

phpexample1.php

Quote of the day

February 27, 2008 on 7:58 pm | In general | No Comments

 Oh, I have slipped the surly bonds of earth,
And danced the skies on laughter silvered wings;
Sunward I’ve climbed and joined the tumbling mirth
Of sun-split clouds and done a hundred things
You have not dreamed of –
Wheeled and soared and swung
High in the sunlit silence.
Hovering there
I’ve chased the shouting wind along and flung
My eager craft through footless halls of air.
Up, up along delirious, burning blue
I’ve topped the wind-swept heights with easy grace,
Where never lark, or even eagle flew;
And, while with silent, lifting mind I’ve trod
The high untrespassed sanctity of space,
Put out my hand, and touched the face of God.
– John Gillespie Magee Jr., “High Flight”

Good luck to XH558.

Teenagers

February 26, 2008 on 10:31 am | In education, general, kids | No Comments

Take note – this means you . . .

Teenagers

Just superb.

Random notes

February 23, 2008 on 10:30 am | In general | No Comments

My Wordpress updated to latest version after Zen server it was on went down for a couple of days. Zen’s overall service is excellent, and the cPanel control brilliant for anyone not fully techie.

Great rants to be had here. Just like grumpy old men in realtime. Very entertaining.

Another anti-spam system.

February 12, 2008 on 7:48 pm | In general | No Comments

What the heck.

Worth a try.

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^