PHP, GD Lib pb?

software development

#1

Hi every one
first of all I’m new to this forum, thanks for existing and hi to every one.

I’m having trouble with a functionality that works fine on other hostings but I run into problems on DH.
I use GD Lib which is available, that’s great allready.
Then when I try using a simple function like :
imagecreatefromjpeg(“http://path to my img.jpg”)
I get a surprising 503 error Service temporarly Unavailable ???

does anyone have an idea of what I can do to reapir this ?
Any advice is gratelly appreciated
Regards
Tibor


#2

[quote]I use GD Lib which is available, that’s great allready.
Then when I try using a simple function like :
imagecreatefromjpeg(“http://path to my img.jpg”)
I get a surprising 503 error Service temporarly Unavailable ???[/quote]
On DreamhHost, for security reasons, allow_url_fopen has been disabled, so you will not be able to use a url to specify the file name. From the PHP manual:

The easiest workaround for your example is to use a path instead of a url to specify the filename, as in:

imagecreatefromjpeg("/home/username/domain.tld/images/img.jpg");

–rlparker