I understand your code, thank you
<?php
header('Content-type: image/png');
$file = @file('./file_name.php');
if ($file)
{
$special = array("\r", "\t", "\n");
for ($i = 0; $i < count($special); $i++)
{
$file = str_replace($special[$i], ' ', $file);
}
}
else
{
$file = array('cannot', 'read', 'file', 'content');
}
$im = imagecreate(100, 110);
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 255, 255, 255);
$line = 1;
for ($i = 0; $i < count($file); $i++)
{
imagestring($im, 2, 1, $line, $file[$i], $text_color);
$line = $line + 15;
}
imagepng($im);
?>