why is it that when i try to overlay a text file with line breaks, it shows some random symbol instead?
should be
Some
Random
Text
code:
<?php
header("Content-type: image/png");
$im = imagecreatefrompng("sigs/chichan.png");
$color = imagecolorallocate($im, 0, 0, 0);
$file = fopen("text.txt","r");
$text = fread($file, filesize("text.txt"));
$text2 = str_replace("<br />", "\n", $text);
imagestring($im, 2, 100, 20, $text2, $color);
imagepng($im);
imagedestroy($im);
fclose ($file);
?>
(it shows the symbol when the txt just has line breaks or when i replace something with \n)
-this is ansi, utf doesnt work either