By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

php-extension gd_2 not installed on server; any alternatives?

P: n/a
Hi!
I've just experiences a nightmare... I have made a quite good image-upload
system in PHP, which make two versions of the image uploaded; one with the
size 350*263, and a small thumbnail. I have used the function
ImageCreateFromJPEG, and everything worked fine when I tested it on my local
server. But when uploading the PHP-files to an extern server, I got the
error message "Call to undefined function: imagecreatefromjpeg() in
c:\easyphp1-7\www\"... etc

The reason for this, as far as I know, is that the server has not installed
the php-extension php_gd2. And they do not want to install it either...

So, my question is: What to do? Are there other ways in PHP to upload and
manipulate images (such as size...), or do I have to make a system with for
example perl (cgi)? If so, does anyone know a good example of how to do
this?

ojorus
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
I noticed that Message-ID: <glFFc.981$vH5.277@amstwist00> from ojorus
contained the following:
The reason for this, as far as I know, is that the server has not installed
the php-extension php_gd2. And they do not want to install it either...


Just happened to me too.

We got another provider.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2

P: n/a
On Sun, 4 Jul 2004 23:14:48 +0200, "ojorus" <oj****@hotmail.com> wrote:
I've just experiences a nightmare... I have made a quite good image-upload
system in PHP, which make two versions of the image uploaded; one with the
size 350*263, and a small thumbnail. I have used the function
ImageCreateFromJPEG, and everything worked fine when I tested it on my local
server. But when uploading the PHP-files to an extern server, I got the
error message "Call to undefined function: imagecreatefromjpeg() in
c:\easyphp1-7\www\"... etc

The reason for this, as far as I know, is that the server has not installed
the php-extension php_gd2. And they do not want to install it either...

So, my question is: What to do? Are there other ways in PHP to upload and
manipulate images (such as size...), or do I have to make a system with for
example perl (cgi)? If so, does anyone know a good example of how to do
this?


If you're allowed to execute external processes, then ImageMagick is good.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #3

P: n/a

"ojorus" <oj****@hotmail.com> wrote in message
news:glFFc.981$vH5.277@amstwist00...
Hi!
I've just experiences a nightmare... I have made a quite good image-upload
system in PHP, which make two versions of the image uploaded; one with the
size 350*263, and a small thumbnail. I have used the function
ImageCreateFromJPEG, and everything worked fine when I tested it on my local server. But when uploading the PHP-files to an extern server, I got the
error message "Call to undefined function: imagecreatefromjpeg() in
c:\easyphp1-7\www\"... etc

The reason for this, as far as I know, is that the server has not installed the php-extension php_gd2. And they do not want to install it either...

So, my question is: What to do? Are there other ways in PHP to upload and
manipulate images (such as size...), or do I have to make a system with for example perl (cgi)? If so, does anyone know a good example of how to do
this?

ojorus


If you can, vote with your feet, but give them a chance to install it first
but then GO if they don't. Give them your reasons for wanting it and ask for
their reasons for not giving it to you - and don't tolerate "because we
don't want to".

Garp
Jul 17 '05 #4

P: n/a
"ojorus" <oj****@hotmail.com> wrote in message
news:glFFc.981$vH5.277@amstwist00...
Hi!
I've just experiences a nightmare... I have made a quite good image-upload
system in PHP, which make two versions of the image uploaded; one with the
size 350*263, and a small thumbnail. I have used the function
ImageCreateFromJPEG, and everything worked fine when I tested it on my local server. But when uploading the PHP-files to an extern server, I got the
error message "Call to undefined function: imagecreatefromjpeg() in
c:\easyphp1-7\www\"... etc


Sounds like you're on a Windows environment, where the web server often runs
with absurdly high privilege. You might just be able to change the setting
in php.ini, or throw a php-isapi.ini into C:\WinNT :-)

The default in Windows is to allow execution. If you upload a .exe (like
ImageMagick) onto the server there's a good chance it'll work. If your
folder is locked down, try creating a copy of the file in the temp folder
(so that it acquire that folder's attributes), then moving it into your own
folder. It's pretty hard to lock down Windows, so you can probably find a
way.
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.