imagedestroy()

Reply

Join Date: Dec 2007
Posts: 610
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

imagedestroy()

 
0
  #1
Apr 6th, 2009
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
"You never stop learning." - OmniX
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 798
Reputation: darkagn has a spectacular aura about darkagn has a spectacular aura about darkagn has a spectacular aura about 
Solved Threads: 110
darkagn's Avatar
darkagn darkagn is offline Offline
Master Poster

Re: imagedestroy()

 
1
  #2
Apr 7th, 2009
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
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC