943,621 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1228
  • PHP RSS
Apr 6th, 2009
0

imagedestroy()

Expand Post »
Hi

imagedestroy()http://au.php.net/imagedestroy

I was just wondering because php.net states in the manual that it destroys the memory associated with the image rather than the image stored in the "/tmp" folder. Is this true?

Also how can you change your default tmp directory?
I think you go into the php.ini file and change a "temp line"?

Thanks, X
Similar Threads
Reputation Points: 31
Solved Threads: 10
Practically a Master Poster
OmniX is offline Offline
652 posts
since Dec 2007
Apr 7th, 2009
1

Re: imagedestroy()

imagedestroy() is used to free memory assigned to an image resource stream. I haven't tried it out, but I assume it can be used to free any image resource stream created by the GD package.

By tmp folder, are you referring to file upload tmp folder? If so, open the php.ini file and search for upload_tmp_dir. This is the setting that needs to be adjusted.

EDIT: Actually I just followed my own advice and found that the tmp directory for the upload_tmp_dir in my php.ini file is set to more than one setting, so it may need to be changed in more than one place in the ini file.
Last edited by darkagn; Apr 7th, 2009 at 3:45 am. Reason: Additional info
Reputation Points: 395
Solved Threads: 192
Veteran Poster
darkagn is offline Offline
1,136 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: using Class/Object sending HTML/text Email
Next Thread in PHP Forum Timeline: NEW to PHP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC