Skip to content
Advertisement

Tag: temporary-files

Do I need to cleanup files created by tempnam() myself?

I created a bunch of tempnam() files for use during my request. Do I need to specifically unlink() them when they’re not needed anymore, or will PHP / the system take care of it themselves? Answer Files created by tempnam() will not be deleted by PHP. You’ll have to unlink() them manually. If you need a temporary file thats automatically

Advertisement