Questo è quello che ho scritto...
<?php
echo "<html>\r";
echo "<body>\r";
echo "<table width= 50% style=\"border: 1px solid #000000\">\r";
$R = dechex (255);
$G = dechex (0);
$B = dechex (0);
$color = "#".$R.$G.$B;
$R_count = dechex (0);
echo "<tr>\r";
while ($R_count < $R)
{
echo "<td style=\"border: 1px solid #000000\" bgcolor=\"$color\">\r";
echo "A"\r;
echo "</td>\r";
$R_count = dechex (0++);
}
echo " </tr>\r";
echo "</table>\r";
echo "</body>\r";
echo "</html>\r";
?>