I have html file with entry "<img src="pic_Kayrat.php" />"
I have some for loops in pic_Kayrat.php. If I run the page code without
Code: Select all
header ("Content-type: image/png"); imagepng($im);
If I run it as a image, it prints nothing.
I have code example:
Code: Select all
for ($j = 1; $j < count($Aika); $j++) { echo "what ever"; }
Code: Select all
for ($j = 1; $j < count($Aika); $j++) { imageline($im, 50, 100, 500, 100, $blue); }
If I use
Code: Select all
for ($j = 1; $j < 15; $j++) { imageline($im, 50, 100, 500, 100, $blue); }
Does anybody have a glue what is happening in my code?
Why my variables are not valid?