| | |
imagedestroy()
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
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
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.
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. ![]() |
Similar Threads
- Generate Thumbnail images on the fly. (PHP)
- image verification problem (PHP)
- Help with CAPTCHA (PHP)
- Image Generation Problem (PHP)
- php mysql image again PLEASE HELP (PHP)
- Php Mysql Image Question (PHP)
- bar graph & _POST variables (PHP)
- Tut : Make Your-Self a IP Showing Siggy & hit counter (PHP)
Other Threads in the PHP Forum
- Previous Thread: using Class/Object sending HTML/text Email
- Next Thread: NEW to PHP
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary broken buttons cakephp checkbox class cms code cron curl database date directory display dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail mediawiki menu mlm mod_rewrite multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search server sessions sms soap source sp space speed sql subdomain syntax system table tag tutorial update upload url validation validator variable vbulletin video web webdesign websphere white xml youtube





