Hello, Firstly, you should download latest GD library and Jpeg library and then you should compile your GD with jpeg enabled option and then compile jpeg. After this step, you can compile Apache and PHP. In PHP installation, you should use such as --with-gd=/usr/local option for gd library and such as --with-jpeg-dir option for jpeg library. If you use --with-gd option without not write any folder name , PHP will use default GD folder ( extension directory). http://www.libgd.org/Downloads ftp://ftp.uu.net/graphics/jpeg/ -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net <afan@xxxxxxxx> wrote in message news:6227.69.66.68.21.1172152233.squirrel@xxxxxxxxxxxxxxx > after we (company I work for) mmoved to new hosting company (dedicated > server), I requested from them to instal php5 with GDlib to be able play > with images. > they did. > and then yesterday (2 months after we moved) I wasn't able to use > ImageCreateFromJpeg() function: > "Fatal error: Call to undefined function ImageCreateFromJpeg() in > /srv/www/mydomain.com/image_resize.php on line 11" > > Then, I was searching a little bit and found this from gd_info() > Array > ( > [GD Version] => bundled (2.0.28 compatible) > [FreeType Support] => > [T1Lib Support] => > [GIF Read Support] => 1 > [GIF Create Support] => 1 > [JPG Support] => > [PNG Support] => 1 > [WBMP Support] => 1 > [XPM Support] => > [XBM Support] => 1 > [JIS-mapped Japanese Font Support] => > ) > > Looks like they didn't do correctly because JPG is not supported? > > In phpinfo() found this: > Configure Command './configure' '--with-apxs2=/etc/apache2/bin/apxs' > '--with-mysql' '--with-gd' '--with-zlib-dir=/usr/local/lib' > > and this: > gd > GD Support enabled > GD Version bundled (2.0.28 compatible) > GIF Read Support enabled > GIF Create Support enabled > PNG Support enabled > WBMP Support enabled > XBM Support enabled > > Now, when I talk to them they said we have to pay $250 to be fixed?!? > > I have root access and have some php/mysql/apache installation experience > and want to fix myself - can somebody point me to the right direction? > > Thanks. > > -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php