<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("bg.png");
<?php $im = ImageCreateFromPng("bg.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wow4all.ru:8000/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current="track".$mass [16]; imagettftext ($im, 6, 0, 15, 20, $color, "ft.ttf",$current); imagepng ($im); imagedestroy ($im); ?>
‰PNG [кракозябры....]
<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("bg.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wow4all.ru:8000/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current="track".$mass [16]; imagettftext ($im, 6, 0, 15, 20, $color, "ft.ttf",$current); imagepng ($im); imagedestroy ($im); ?>
PHP Warning: imagecreatefrompng(): 'bg.png' is not a valid PNG file in /var/www/bg2.php on line 3 PHP Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /var/www/bg2.php on line 4 PHP Warning: imagettftext() expects parameter 1 to be resource, boolean given in /var/www/bg2.php on line 14 PHP Warning: imagepng() expects parameter 1 to be resource, boolean given in /var/www/bg2.php on line 15 PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /var/www/bg2.php on line 16
<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("bg1.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wow4all.ru:8000/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current="track".$mass [16]; imagettftext ($im, 6, 0, 15, 20, $color, "/var/www/ft.ttf",$current); imagepng ($im); imagedestroy ($im); ?>
<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("bg.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wow4all.ru:8000/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current="track".$mass [16]; imagettftext ($im, 6, 0, 15, 20, $color, "/var/www/ft.ttf",$current); imagepng ($im); imagedestroy ($im); ?>
<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("bg2.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wow4all.ru:8000/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current="track".$mass [16]; imagettftext ($im, 6, 0, 15, 20, $color, "/home/trinity/www/html/ft.ttf",$current); imagepng ($im); imagedestroy ($im); ?>