hm, tak jeden eval jsem uz prekonal, ale mam problemy s druhym...
Kód:
$image_types_load = array(1=>"gif",2=>"jpeg",3=>"png",15=>"wbmp",16=>"xbm");
$image_types_output = array(2=>"jpeg",3=>"png",15=>"wbmp");
list($original_width,$original_height,$original_type) = getimagesize($file);
eval("\$image = imagecreatefrom{$image_types_load[$original_type]}(\$file);");
$command = "image{$image_types_output[2]}(\$image)";
eval($command);
hlasi mi
Kód:
parse error, unexpected $ in thumb.php(19) : eval()'d code on line 1
(line 19 je prave ta s tim 2. evalem)
cim to je