473,395 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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
4 1980
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
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

"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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
4
by: Japhy | last post by:
Hello, I'm am pulling data from a mysql db and want to use the data to populate a <ul. Here are relavent parts of my code : $wohdate = mysql_result($wohRS,$wohndx,woh_date); $woh_display...
8
by: Marcel | last post by:
I have a problem with a PHP page that seems to get executed twice. I am running PHP5 ISAPI on 2003 server. The script is a PHP page with a form. When the form is submitted one record have to...
1
by: jdurden | last post by:
am currently woking on building this site: www.maverick-spirit.com. everything seems to be fine except the press releases page. When you click on one of the press releases in the left column under...
1
by: ansc1 | last post by:
Hello, I'm new to using php coding. I need help with the following: 1. There is a submit button on the form and is saves information to my database. After clicking on "Save Measurement" it...
26
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any...
0
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along...
3
by: jaddi1 | last post by:
Hi, I am trying to make a multi-level drop-down menu similar to what is seen here: http://www.cssplay.co.uk/menus/simple_vertical.html. My problem is that some of the menu will be populated from...
0
by: Patriot89 | last post by:
I have a quick question in reference to php file extenstions... I have code for example like this... This is all located on this site www.ixalliance.com/BHS/Default (This is my nav.php file) ...
4
by: mechphisto | last post by:
I'm working on a friend's box, Fedora Core 6. It has PHP 5.1.6. I need to install mcrypt into it, and the only way I can find to do it is from source then recompile PHP. So I did all that, and got...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.