Image not showing when calling function
Posted: Mon Jan 12, 2009 8:50 am
I have a verification image on my site that is not working. I get the 'red x' instead of the image. The person that wrote the code for this particular page sent me this message when I asked him about it.
I need to see the error when calling the function: ImageCreate(). It
appears that on your server, I cannot create a simple image using this php
function.
<?php header ("Content-type: image/png");
$handle = ImageCreate (130, 50) or die ("Cannot Create image");
$bg_color = ImageColorAllocate ($handle, 255, 0, 0);
ImagePng ($handle);
?>
You might need to refer to your hosting support to find out why. Once
that's resolve, I am sure the image verification image will appear.
I'm not a PHP person so does anyone know what might be happening and what I might do to solve the problem? If it's a server problem what can I do also? Thanks a lot.
I need to see the error when calling the function: ImageCreate(). It
appears that on your server, I cannot create a simple image using this php
function.
<?php header ("Content-type: image/png");
$handle = ImageCreate (130, 50) or die ("Cannot Create image");
$bg_color = ImageColorAllocate ($handle, 255, 0, 0);
ImagePng ($handle);
?>
You might need to refer to your hosting support to find out why. Once
that's resolve, I am sure the image verification image will appear.
I'm not a PHP person so does anyone know what might be happening and what I might do to solve the problem? If it's a server problem what can I do also? Thanks a lot.