Page 1 of 1

imagecreatefromjpeg()

Posted: Wed Nov 27, 2002 12:57 pm
by ktrout
I understand that something needs to be done to use this function successfully? What needs to be done and how? My web hosting is on earthlink.

thank you...

GD

Posted: Wed Nov 27, 2002 1:12 pm
by AVATAr
i think you need the GD library compiled with php...

compiling with gd library

Posted: Wed Nov 27, 2002 5:00 pm
by ktrout
Thanks for the reply... how do I do that exactly? Something i can do or something I have to ask Earthlink to do?

Posted: Wed Nov 27, 2002 6:40 pm
by m3mn0n
I doubt ISP hosts give you php support, i know of none that do. Maybe in a few years time everyone will run php as a standard neccesity instead of charging loads more cash per month, but that ain't happening right now.

If it does support php, i suggest as he said and use the GD library, you can grab it from http://www.php.net

Once that is up, the functions that go along with it will be enabled on your server for your use. If you have php without it, i don't think any image creation funcs work.

using gd lib

Posted: Wed Nov 27, 2002 7:40 pm
by ktrout
Hi, forgive my ignorance, but that is my question: how do i "use gd lib"? where can i find the instructions, and where exactly is it on php.net? the standard php download or is it available separately?.. thanks..

Posted: Thu Nov 28, 2002 2:45 am
by twigletmac
Information on using the GD functions:
http://www.php.net/manual/en/ref.image.php

If you want to see if your host has GD installed (and what else they've done to configure PHP) put a file containing the following:

Code: Select all

<?php phpinfo(); ?>
in you webspace and run it.

To get a copy of GD on your local machine depends on your OS. If you are using Windows installing the PHP 4.2.3 zip package which comes with loads of extensions for PHP including GD 1.8 and 2. For *nix you should just be able to compile the code linked to from the image function reference page.

Mac