Jump to content

Why won't this display my image!?


Johng123

Recommended Posts

Why won't this work??  I get the error "The image “http://*******.net/itemGuide.php” cannot be displayed, because it contains errors."

 

<php>

if($_POST['field_1'] == "24k Gold Chain Gun") {

echo "Req. Level 10 Eliminate Pro Special. Arsenal Megacorp issue sidearm level 1. +20 Attack, +30 Max HP, +3 Max Energy  ";

header('Content-Type: image/png');

$imgname = "http://image.epicpetwars.com/epw/square_".$_POST['field_2']."/items/gatling_gun_gold.png";

$im = @imagecreatefrompng($imgname);

imagepng($im);

}

php?>

</php>

Link to comment
https://forums.phpfreaks.com/topic/189661-why-wont-this-display-my-image/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.