View file kodas.php
<?php header('Content-type: image/jpeg'); $kodas=@file_get_contents("zaidimas/kodreg.txt"); $source = imagecreatefromjpeg("bandom.JPG"); $text = imagecolorallocate($source, 009, 009, 009); imagestring($source, 3, 2, 2, "$kodas", $text); imagejpeg($source); ?>