Mambug
06-25-2005, 07:46 PM
Hello everyone. Im learning PHP, and as you already know i ran into a little problem. I got this software called Alstrasoft E-Friends, and i renamed it EFriends for short and so i don't have the creators name in there. Anyways, long store short, its a community website, and my friends just tried uploading images and both them and me get this message:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/jordan/public_html/efriends/user.php on line 926
Now, im not really sure what its doing, or what the problem is... Can anyone please help me out with this? As for the website, if you need anymore information about it, it is located at http://efriends.atcomputers.us I really need to fix this, so if you have any information that i can provide so you can help, please let me know.
Thank you!
sojish
06-25-2005, 08:54 PM
imagecreatefromjpeg() is function that comes with GD . You need to compile your PHP with GD before you can use it .
Use a phpinfo() to find if the current PHP is compiled with GD support .
More info on this is available at http://www.php.net/manual/en/ref.image.php
Mambug
06-25-2005, 09:04 PM
Thanks! So basically i need to install GD Libraries on our web servers correct?
sojish
06-25-2005, 09:21 PM
yes . If GD is not installed you'll have to install them first and then compile PHP with "--with-gd" option.
Mambug
06-25-2005, 09:32 PM
I will get on installing them right now. But compiling? I will have to have a tech do that..
sojish
06-25-2005, 09:51 PM
But compiling? I will have to have a tech do that..
If you installed PHP with RPM version, you just need to install the corresponding php-gd rpm . You wont require a tech to do that .
Just create a phpinfo file with the following content .
<?
phpinfo();
?>
And give the link . I would be able to guide you better , after seeing the phpinfo. Also give the RPM versions of php software in your machine.
# rpm -qa | grep php
Mambug
06-25-2005, 09:54 PM
Im updating apache right now on my own, i will check it out if it doesn't work right i will be sure to tell you. :P Thanks for the help as well. :D
Mambug
06-25-2005, 10:06 PM
I have it working! Woohoo. Thanks for your help!
http://www.efriends.atcomputers.us//index.php?mode=people_card&p_id=52
Look at my picture, i believe it should be working.
Mambug
06-25-2005, 10:11 PM
Whoa! After updating apache, i now receive a new error! Yikes!
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/jordan/public_html/efriends/functions.php on line 1030
Any suggestions?
Burhan
06-27-2005, 03:41 AM
This is not an error but a Warning. Paste some code so we can see what is going on. If you didn't write this script yourself, ask the author to fix it for you :)
Mambug
06-27-2005, 01:58 PM
Ah, i think i figured it out. I just had to clear the website's cookies after updating apache becuase it stored that information in my browser while i was in the process of updating the apache. Thanks for all your help everyone.
sojish
06-27-2005, 09:32 PM
:-) Pleasure to know that you were able to solve it yourself.