GD Library related issues

Source: Internet
Author: User
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.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.