Everything posted by prom3th3an
It fails also, Fatal error: Call to undefined function ImageCreateFromjpeg() in C:\Documents an d Settings\Administrator\Desktop\test.php on line 5 *face palms so hard it leaves a crator* Its always something obvious, in this instance the gd2 extension wasnt being loaded in the php-cli.ini file (but was loaded in php.ini). So it worked for websties (and phpinfo()) but not for command line scripts. Might be worth changing that default ini file to include things such as that extension.
Im running the latest version of Uniform Server. It has the GD2 extension installed and enabled. I used to run XAMPP but was tired of the lack of updates. I have a script that does some image editing based on the GD2 extension that will not work with Uniform Server, but works perfectly fine on XAMPP. Having read around about this issue, it seems to be commonly due to the directives being out of order when PHP was compiled however theres probably other things at play. The error I recieve when I try to run the script is "Fatal error: Call to undefined function imagecreatefromjpeg()" - imagecreatefromjpeg() is part of the GD2 php extension Can you guys please look into this? Ive pasted the GD part of my PHP info. gd GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.9 GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 6b PNG Support enabled libPNG Version 1.2.44 WBMP Support enabled XBM Support enabled Directive Local Value Master Value gd.jpeg_ignore_warning 0 0