[eluser]Unknown[/eluser]
Hello every one.
I have some troubles to make my code to work properly.
In my local server (that run PHP 5.2), my application works fine. But when I upload my code on a distant server using PHP 5.2, it doesn't work.
Here is the trouble: I want to resize an uploaded picture using GD library and I receive this error message: Your server does not support the GD function required to process this type of image. The phpinfo() shows me that this library is active in the server.
So what is the matter. Could someone explain to me.
Below is my code:
Code:
//Thumb creator
$config['image_library'] = 'gd';
$config['source_image'] = './ressources/'.$screenshot;
$config['new_image'] = './ressources/thumb/'.$screenshot;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 126;
$config['height'] = 100;
$this->load->library('image_lib', $config);
if(!$this->image_lib->resize())
{
$erreur.=$this->image_lib->display_errors();
$err=1;
}
I will use $err to consider the error level.
I am thankfull to every advice.
Thierry