ImageJPEG Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lemonsluts
Forum Newbie
Posts: 1
Joined: Thu Jul 28, 2005 7:57 pm

ImageJPEG Problem

Post by lemonsluts »

HI,

On my previous server, I could use this function in GD :

Code:

Code: Select all

ImageJPEG ($img_handle, &quote;image.jpg&quote;, 75);


However, I moved to another server. Now when I put that code in, my GD script returns errors. However, when I put this code in and upload it to my new server, it works!

Code:

Code: Select all

ImageJPEG ($img_handle, &quote;&quote;, 75);


Problem is, I dearly need to save the image on my website. What should I do?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

It sounds like ImageJPEG doesn't have permission to write to the place you're trying to save to. Try setting the directory as writable for everyone (0777).
Post Reply