Hi All
I'm trying to install the gd library. I previously had php installed and working just fine until I wanted to use the imagecreatefromjpeg() method. I looked online and found that if I wanted to use this I needed the gd library. I looked in my php.ini file and there wasn't a gd.dll line to uncomment, like websites had suggested I do to use this library.
So I got a more recent version of php, I uncommented the gd2.dll in the php.ini file. I checked that it was installed by running <?php phpinfo() ?> and it said the gd library was enabled.
However, when I try and run this code..
<? php
$imagepath="ireland_outline.jpg";
$image=imagecreatefromjpeg($imagepath);
header('Content-Type: image/jpeg');
imagejpeg($image);
?>
This is what I get on screen..........
Qa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö
Can anyone help and guide me through how to get it working properly.
I'm using php 5.2.8 and have windows vista.
Thanks much!