This code is in img.php
<?php $a=rand(0,9); $b=rand(1,9); $c=$a+$b; $text=''.$a.'+'.$b.'='; $im = imagecreate(100, 30); imagecolorallocate($im, 255, 255, 255); $color = imagecolorallocate($im, 0, 0, 0); imagestring($im, 4, 3, 2, $text, $color); header('Content-type: image/png'); imagepng($im); ?> Then I prescribe the following in another file, content.php
<img src="img.php"/> Nothing happens, please help. The picture is not displayed.
http://site/path/to/img.php- chernomyrdin