Reply
getting an error using imagecreatefromjpeg(). help
Old 04-30-2008, 10:23 AM getting an error using imagecreatefromjpeg(). help
Novice Talker

Posts: 6
Update. does GD support just need to be enabled? is that the issue? Will that be pretty basic if i ask my web host to enable GD support?

so i've been looking at this for a couple hours now, it's really bugging me. Im using the above function, and it works on two of my servers, but not on the all important third one that i need it on.

Third server is running php 4.3.2 if that helps. i get the following error when running the script

Code:
Fatal error: Call to undefined function: imagecreatefromjpeg()
any idea why this is crashing? im thinking it's something to do with the server/php.ini file but i don't have much knowledge in that area. Stressing me big time, have this due today

Last edited by strungoutyeh : 04-30-2008 at 10:29 AM.
strungoutyeh is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-30-2008, 10:35 AM Re: getting an error using imagecreatefromjpeg(). help
addonchat's Avatar
Skilled Talker

Posts: 97
Name: Chris Duerr
Very likely. Run this script.

PHP Code:
<?php 
   php_info
(INFO_MODULES);
   echo 
"<br><br>GD INFO:<br><br>";
   
var_dump(gd_info()); 
?>
__________________
Chris Duerr
AddonChat Java Chat Software
http://www.addonchat.com/ - Affiliate Program
addonchat is offline
Reply With Quote
View Public Profile
 
Old 05-02-2008, 11:10 AM Re: getting an error using imagecreatefromjpeg(). help
nickohrn's Avatar
Weightlifting CS Student

Posts: 505
Name: Nick Ohrn
strungoutyeh - Yes, you look like you just need to get GD enabled on your server. Honestly, I'm surprised it wasn't pre-enabled. If you ask your host to enable it, they really shouldn't have a problem doing so.

You could also write a simple script that sees whether that function exists on your server at all:

PHP Code:
<?php
if(function_exists('imagecreatefromjpeg')) {
echo 
'It exists!';
} else {
echo 
'It doesn\'t exist :(';
}
?>
__________________
Plugin-Developer.com - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
nickohrn is offline
Reply With Quote
View Public Profile Visit nickohrn's homepage!
 
Reply     « Reply to getting an error using imagecreatefromjpeg(). help
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11960 seconds with 13 queries