Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > PHP
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 05-17-2007, 07:25 AM   #1 (permalink)
NashTax
Recruit
 
Join Date: May 2007
Posts: 6
NashTax is an unknown quantity at this point
Arrow Help me with this image uploader

Hello all.

I bought Fast and Free Image Host | Pic-Spot.com on SitePoint a few weeks back, and everything worked fine with no problems at all until I had to move servers.

When I try and upload a pic file, I'm getting errors (try for yourself).

Can anyone please help me with this?
__________________
NashTax is offline   Reply With Quote
Old 05-17-2007, 08:25 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
you probably need to change permissions on the directory the files get uploaded to. most ftp programs allow you to do this. they usually call it 'world write' or something like that.
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 05-17-2007, 08:28 AM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
actually no, did you move servers within the same hosting company? i'm not familiar with their services.

send this error to their tech support. if it's the same company and they just moved you to a different server, then they need to re-compile PHP to support everything the other one did. in this case, PHP needs to be compiled against GD 1.8 or higher with jpeg support enabled.

Quote:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/picspot/public_html/basic.php on line 82
imagecreatefromjpeg
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 05-17-2007, 08:45 AM   #4 (permalink)
NashTax
Recruit
 
Join Date: May 2007
Posts: 6
NashTax is an unknown quantity at this point
It is hosted on my dedicated server, I'm not on a shared account.

I believe I just need to change the permissions, am I correct?

Thanks
__________________
NashTax is offline   Reply With Quote
Old 05-17-2007, 09:00 AM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
no, php doesn't recognize imagecreatefromjpgeg(). can you link a phpinfo() page?
PHP Code:
<?php
phpinfo
();
?>
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 05-17-2007, 09:24 AM   #6 (permalink)
NashTax
Recruit
 
Join Date: May 2007
Posts: 6
NashTax is an unknown quantity at this point
What is the code to do that? (sorry I'm new :p to all of this!)
__________________
NashTax is offline   Reply With Quote
Old 05-17-2007, 09:33 AM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
i posted the code, .. just make a new file with that code and name it phpinfo.php or something.
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 05-17-2007, 10:57 AM   #8 (permalink)
NashTax
Recruit
 
Join Date: May 2007
Posts: 6
NashTax is an unknown quantity at this point
Thanks and I've done that.

www.pic-spot.com
__________________
NashTax is offline   Reply With Quote
Old 05-17-2007, 12:42 PM   #9 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
GD isn't installed, either recompile PHP or load the module.
This depends on your CentOS/RedHat version so it's best to contact your hosting provider.

Because your current PHP compile command is
Code:
./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib
And for full control it should look more like
Code:
./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --with-mm --enable-bcmath --enable-calendar --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --enable-memory-limit --with-mm --with-mysqli --with-mysql=/usr --with-openssl --enable-discard-path --with-pgsql=/usr --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-zip --with-zlib
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 05-17-2007, 12:52 PM   #10 (permalink)
NashTax
Recruit
 
Join Date: May 2007
Posts: 6
NashTax is an unknown quantity at this point
Thank you DJ, I will contact support now
__________________
NashTax is offline   Reply With Quote
Old 05-20-2007, 01:11 PM   #11 (permalink)
NashTax
Recruit
 
Join Date: May 2007
Posts: 6
NashTax is an unknown quantity at this point
All working now, thank you very much.

Fast and Free Image Host | Pic-Spot.com
__________________
NashTax is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
switch a .gif image in asp.net datagrid rikb53 MS Technologies ( ASP, VB, C#, .NET ) 0 02-17-2006 12:39 PM
Stationary Image joehouse HTML, XML, Javascript, AJAX 4 08-05-2005 07:03 PM
.htaccess -- Image Hotlinking Prevention DavH27 HTML / CSS 0 08-27-2004 03:43 AM
I am a newb, how do you set multiple parts of an image as a link? I sniper baby HTML, XML, Javascript, AJAX 5 02-10-2003 06:40 PM
Stable Graphical FTP Client, HTML editor, & Image Manipulation for RedHat 7.3? Admin Linux / BSD / OS X 2 08-30-2002 04:55 PM


All times are GMT -8. The time now is 05:00 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle