image - What's the problem with my php generated png file? -


I want to create a unique platform signature in PHP with my latest viewed animes. It is contained in an RSS feed on my local Apache server, the image is generated well, but as I upload it to the server, I get an error, the picture is not ready at all.

Here's my code and I wonder if any problem does not show any errors since Dreamweaver CS5 or phpDesigner 7, however, if I press the play button in phpDesigner, I get an error, But I do not know what it means.

Then the code is as follows:

Line: 6 - Fatal error: Call for unchanged functions in imagecreatefrompng () [php path here] < / P>

is the following:

  & lt ;? Php // title & amp; Description arrays $ headline = array (); $ DescCuts = array (); // bg image $ bgimg = imagecreatefrompng ('sig_robin.png'); // colors $ white = imagecolorallocate ($ bgimg, 255, 255, 255); $ Text color = picture algorithm ($ BGMG, 245, 193, 9); $ Size color = picture calculator ($ BGIM, 27, 20, 0); // SXE and LT; - XML ​​URL $ sxe = new simple explanation ('http://myanimelist.net/rss.php?type=rw&u=fema', NULL, TRUE); // Figure mapping ($ bgimg, 255, 20, 567, 279, $ size calculator); // Textures ImageText ($ BGMG, 20, 0, 263, 52, White, "Mary.Tttf", "Latest Viewed:"); // episode 'Text ($ i = 0; $ i <5; $ i ++) {// Title Cut and Combined $ Title Cut = Explode (' ', $ sxe-> Channel- & Gt; Items [$ i] - & gt; Title, -2); $ TitleCut = implode ('', $ title cut); // Description (AP) cut and add $ descCuts = explosion ('', $ sxe-> channel- & gt; items [$ i] - & gt; description); // output colorfax ($ bgimg, 10, 0, 270, 77 + ($ i * 45), $ textcleller, "my.ttf", $ titleCut); Imagatex ($ bgimg, 10, 0, 270+ (Stellon ($ title cut) * 7.2), 92 + ($ i * 45), $ textcleller, "my.ttf", "ep." $. $ DescCuts [2] ); } Header ('Content-Type: Image / PNG'); // image imagepng generated ($ bgimg); ? & Gt;  

Thanks in advance. Edit:
As I removed the header, I get a lot of mistake now that I did not find the font file, but I'm sure I wrote it correctly.

They look like this:

WARNING: FANTASY (). [Function.imagettftext]: In the font ... on row 1

OK, The solution to the second problem is that it is a php bug

but it is easy to resolve, in the following manner:

one ./ to each * .ttf file Give examples like before:

  imageext (image, 0, 0, 0, Tex T_COLOR, "./ttf_file.ttf", TEXT);  

Comments