GD Library Issues
$im = Imagecreate (200,60);
$white = Imagecolorallocate ($im, 225,66,159);
Imagegif ($im);
?>
Output garbled
What's going on here. I just want to create a picture. GD Library has also been loaded AH.
By the way there is a Windows under 360 Jinshan and other antivirus software to detect appserv there is a virus is going on
Path Phpmyadmin/labraries/vls.exe
Virus name WIN32/TROJAN.E6D
------to solve the idea----------------------
Header ("Content-type:image/gif");
$im = Imagecreate (200,60);
$white = Imagecolorallocate ($im, 225,66,159);
Imagegif ($im);
------to solve the idea----------------------
It's normal to detect a virus.
I was also often detected by antivirus software virus
My way of handling it is to delete it directly
Also does not affect the use of
------to solve the idea----------------------
1. The output is garbled because you did not set the correct header, the program by default will use Text/plain as the header output.
The output GIF image should be the header (' content-type:image/gif ');
Change it to this.
$im = Imagecreate (200,60);
$white = Imagecolorallocate ($im, 225,66,159);
Imagegif ($im);
2.phpmyadmin is just a PHP program that manages MySQL and will not have EXE files. Phpmyadmin/labraries/vls.exe, this is a trojan.