Jump to content

Archived

This topic is now archived and is closed to further replies.

perezf

I need help with an error i keep getting

Recommended Posts

i have this error that keeps showing up and i dont know what caused it
[quote]
Warning: imagejpeg(): Unable to open '/hsphere/local/home/way2fr3s/euroclassmotors.com/image/Palm_Z22_Handheld-100x100.jpg' for writing in /hsphere/local/home/way2fr3s/euroclassmotors.com/include/image.php on line 56[/quote]

below is the code for line 56
[code] imagejpeg($destImg, DIR_IMAGE.$new_image, 90);[/code]

Share this post


Link to post
Share on other sites
OK, Unless you provide all of the code you're using for this image, I can only help from what you've provided, which is likely to be incomplete.

1. Make sure you've already called [color=green]imagecreatetruecolor()[/color]
2. Make sure you've defined the constant DIR_IMAGE.
3. Try echoing both $destImg and $new_image to make sure they look as expected.

Regards
Huggie

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.