Jump to content

I need help with an error i keep getting


perezf

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]
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.