Quote:
Originally Posted by lierduh
Do you have a directory under your control that php can write temp files to it?
|
Lierduh,
It's my own leased server (although I'm stuffed when it comes to knowing how to configure it :ninja: ). I tried creating the directories and changing the path in the script but it had the same error. I then tried changing the v+ to w+ in the fopen statement and the script loops through the attachments without breaking, but produces the following error upon with each attachment:
Code:
Warning: imagecreatefromjpeg: '/tmp/temp.bin' is not a valid JPEG file in /home/httpd/vhosts/ukgardenforum.co.uk/httpdocs/includes/functions_image.php on line 117
The attachment is downloaded and inserted correctly for viewing, except for the thumbnail.