PDA

View Full Version : Requirements GD and php?


olle189996
05-24-2009, 10:03 AM
Hi
I have a little question about the reqirements of GD library and php on my local machine.

I'm trying to upload two images at the same time. one large image and one thumb to different locations. I do this by making two uploads on the same form post.

This works ok on the remote server. And on my local macine with MAMP 1.72.
But not with the leopard websharing and php (Entropy PHP 5.2.9-7). With that only one of the images is uploaded. The first one.

So I think it is some setting in the php.ini perhaps? So what do I need for settings for that? Or how can I figure out what is wrong?

I rather run with the leopard installation of apache and php than MAMP.

Regards
olle

this_is_me
05-25-2009, 04:23 AM
Hi,
best to check if it is enabled. upload a file to your server with nothing but
<?php
phpinfo();
?>
in it
it should show a lot of information about your server. Further down, you should find an entry similar to this:

gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.7
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

hope that helps

olle189996
05-25-2009, 04:30 AM
Yes its enabled. If you reed my post above. The problem is that its not working with double upload from the same form.

GD is working but only fore one image.

MAMP and remote server works ok.

So what can be the trouble with this perticular php GD installation?

regards
olle

this_is_me
05-30-2009, 04:12 AM
What happens if you put both files in the same directory? Have you checked write permissions on the thumbnail folder?
It is normal to submit two files within one post if you need thumbnails. I do it even with 4 different sizes at once. No probs at all.
Most common problems with php.ini settings are file sizes.

olle189996
05-30-2009, 04:32 AM
Hi
Well, it's working with MAMP so i'ts not a big problem. I'm just qurious why it wont work with the other installation of php. So what are the most important settings in the php.ini file?

Would it be safe to post link to my php info on this server here? Or the php ini.
Or what else can I do?

PHP Version 5.2.9

www.entropy.ch Release 7

Universal Binary i386/x86_64/ppc7400/ppc64

GD is enabled.

GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.5
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Regards
Olle