i'm trying to resize an image using function imagecreatefromjpeg() but getting an error Fatal error: Call to undefined function: imagecreatefromjpeg().
i search for help most sites says to configure php for gd lib support,but no body says how to configure.
bcz i installed php 4.3.1 by php installer.i never installed gd.
Is gd is not inbuid with php? how can i check?
can any body help me to configure gd?

now i'v change extension=php_gd.dll in php.in
but geting new error
PHP Warning: Unknown(): Unable to load dynamic library './php_gd.dll' - The specified module could not be found. in Unknown on line 0 PHP Fatal error: Call to undefined function: imagecreatefromjpeg

    What operating system are you using?

      Assuming you're on Windows:
      Open a text editor (notepad, etc.).
      Open php.ini.
      Look for a line like this:
      ;extension=php_gd.dll
      Erase the semicolon (😉.

      Voila, GD is installed. It comes bundled with PHP (you may have to upgrade it), but it does not install it automatically.

        now i'v change extension=php_gd.dll in php.in
        but geting new error
        PHP Warning: Unknown(): Unable to load dynamic library './php_gd.dll' - The specified module could not be found. in Unknown on line 0 PHP Fatal error: Call to undefined function: imagecreatefromjpeg

          Originally posted by jjoske
          What operating system are you using?

          i'm using win2000

            I've got the same problem - when I make the change in the php.ini-file, i get the unable to load dynamic extension error. I'm using both win2000 and winNT... Would you please let me know if you crack it?

            /nina

              hello again...

              I think I've cracked it now... when looking at the php.ini file, I realised that the extension directory was set to the same directory as the php.ini itself. In my case, the extensions were not in that directory, thus the error message. If you have the same problem, you can either move the .dll file to the php.ini directory, or you change the extension path in php.ini.

              Hope this solves it for you!

              /nina

                Write a Reply...