Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 6
Trades: 0
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 11:29 AM..
strungoutyeh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-30-2008, 11:35 AM Re: getting an error using imagecreatefromjpeg(). help
addonchat's Avatar
Super Talker

Posts: 115
Name: Chris Duerr
Trades: 0
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

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
addonchat is offline
Reply With Quote
View Public Profile
 
Old 05-02-2008, 12:10 PM Re: getting an error using imagecreatefromjpeg(). help
Plugin-Developer's Avatar
Weightlifting CS Student

Posts: 504
Name: Nick Ohrn
Trades: 0
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 :(';
}
?>
__________________

Please login or register to view this content. Registration is FREE
- Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
Plugin-Developer is offline
Reply With Quote
View Public Profile Visit Plugin-Developer's homepage!
 
Reply     « Reply to getting an error using imagecreatefromjpeg(). help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.11303 seconds with 12 queries