Jump to content


Photo

I need help with an error i keep getting


  • Please log in to reply
2 replies to this topic

#1 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 06 October 2006 - 12:54 AM

i have this error that keeps showing up and i dont know what caused it

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


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


#2 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 06 October 2006 - 12:58 AM

i need help desperately

#3 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 06 October 2006 - 08:26 AM

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 imagecreatetruecolor()
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
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users