Code: Select all
<pre>
<?php
$img = imagecreatefrompng ('http://www.hacker.org/challenge/img/blue.png');
for ($h = 11; $h >= 0; $h--)
{
for ($w = 0; $w < 33; $w++)
echo chr (imagecolorat ($img, $w, $h) & 0xFF);
echo '<br />';
}
?>
Code: Select all
<pre>
<?php
$img = imagecreatefrompng ('http://www.hacker.org/challenge/img/blue.png');
for ($h = 11; $h >= 0; $h--)
{
for ($w = 0; $w < 33; $w++)
echo chr (imagecolorat ($img, $w, $h) & 0xFF);
echo '<br />';
}
?>