hello everyone i am new in php..yesterday i was having problem with imagecreatefromjpeg()function.when i try to compile

the following code:

<?php
$myImage = imagecreatefromjpeg('L:\Wallpaper\fun\2668.jpg');
header("Content-type: image/jpeg");
imagejpeg($myImage);
imagedestroy($myImage);

?>

it says "Call to undefined function imagecreatefromjpeg()"

in my php5.ini file
extension=php_gd2.dll

i am using windows XP and using zend studio as IDE

what should i do??please help!!
thanx in advance

    Can you verify that gd is installed properly?
    Pls look at the output from

    phpinfo();

    to see that php actually sees gd. It could be something as trivial as proper path.

      in the output only gd type something i found is

      Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"

      what should i do?? 😕

        That looks strange. I am not running windows so i can't say how phpinfo() looks like on a windows server.
        Any way it does appear thet php is not seeing the GD library. Have you restarted apache after installing GD?
        On my machine i just installed GD and it did not show up in phpinfo(); before a restart of apache. Afterwards phpinfo(); shows me the following info regarding GD:

        GD Support 	enabled
        GD Version 	2.0 or higher
        FreeType Support 	enabled
        FreeType Linkage 	with freetype
        FreeType Version 	2.3.5
        T1Lib Support 	enabled
        GIF Read Support 	enabled
        GIF Create Support 	enabled
        JPG Support 	enabled
        PNG Support 	enabled
        WBMP Support 	enabled 

        Sorry for not knowing what to do with your configuration.

          Write a Reply...