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...
imagecreatefromjpeg()
Moderator: General Moderators
compiling with gd library
Thanks for the reply... how do I do that exactly? Something i can do or something I have to ask Earthlink to do?
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.
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
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..
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
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:
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
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(); ?>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