I have come across the strangest thing..I hope someone in here can help
me understand whats up.
i have a php image http://sigs.hopto.org/sigs/mysig/sig51.php
which looks like this
<?
$colort="000000 000";
$sizet="20";
$fontt="arial.t tf";
$rightt="200";
$downt="50";
$rotatet="0";
$addliner='1 random 1
2 random 2
3 random 3
4 random 4';
$colorr="000000 000";
$sizer="20";
$fontr="BNKGOTH L.TTF";
$rightr="20";
$downr="50";
$rotater="0";
$back1="frame_o range.png";
include("../thepic.php");
?>
and the pic.php is
<?
Header( "Content-type: image/png");
$time = strftime("%I:%M ", time());
$liner = split("\n", $addliner );
$p = rand(0,(count($ liner)-1));
$addliner = $liner[$p];
$image = imagecreatefrom png('backs/'.$back1);
$colorrr = substr($colorr, 0,3);
$colorrg = substr($colorr, 3,3);
$colorrb = substr($colorr,-3,3);
$colorr = ImageColorAlloc ate($image,$col orrr,$colorrg,$ colorrb);
$colortr = substr($colort, 0,3);
$colortg = substr($colort, 3,3);
$colortb = substr($colort,-3,3);
$colort = ImageColorAlloc ate($image,$col ortr,$colortg,$ colortb);
ImageTTFText ($image,$sizer, $rotater, $rightr, $downr,$colorr,
'fonts/'.$fontr,$addli ner);
ImageTTFText ($image,$sizet, $rotatet, $rightt, $downt,
$colort,'fonts/'.$fontt,$time) ;
Imagepng($image );
ImageDestroy($i mage);
?>
someone please tell me why this image can be viewed fine on ie and work
perfect showing a random line each time you view it
but in Opera or Mozilla the time updates fine (so we know it's
refreshing) but the random line doesnt change much, if at all...)
go to the link above ...it doesnt make sense....
me understand whats up.
i have a php image http://sigs.hopto.org/sigs/mysig/sig51.php
which looks like this
<?
$colort="000000 000";
$sizet="20";
$fontt="arial.t tf";
$rightt="200";
$downt="50";
$rotatet="0";
$addliner='1 random 1
2 random 2
3 random 3
4 random 4';
$colorr="000000 000";
$sizer="20";
$fontr="BNKGOTH L.TTF";
$rightr="20";
$downr="50";
$rotater="0";
$back1="frame_o range.png";
include("../thepic.php");
?>
and the pic.php is
<?
Header( "Content-type: image/png");
$time = strftime("%I:%M ", time());
$liner = split("\n", $addliner );
$p = rand(0,(count($ liner)-1));
$addliner = $liner[$p];
$image = imagecreatefrom png('backs/'.$back1);
$colorrr = substr($colorr, 0,3);
$colorrg = substr($colorr, 3,3);
$colorrb = substr($colorr,-3,3);
$colorr = ImageColorAlloc ate($image,$col orrr,$colorrg,$ colorrb);
$colortr = substr($colort, 0,3);
$colortg = substr($colort, 3,3);
$colortb = substr($colort,-3,3);
$colort = ImageColorAlloc ate($image,$col ortr,$colortg,$ colortb);
ImageTTFText ($image,$sizer, $rotater, $rightr, $downr,$colorr,
'fonts/'.$fontr,$addli ner);
ImageTTFText ($image,$sizet, $rotatet, $rightt, $downt,
$colort,'fonts/'.$fontt,$time) ;
Imagepng($image );
ImageDestroy($i mage);
?>
someone please tell me why this image can be viewed fine on ie and work
perfect showing a random line each time you view it
but in Opera or Mozilla the time updates fine (so we know it's
refreshing) but the random line doesnt change much, if at all...)
go to the link above ...it doesnt make sense....
Comment