PEAR_Common::mkTempDir() – Create and register a temporary directory.


require_once 'PEAR/common.php';

string PEAR_Common::mkTempDir ( string $tmpdir = '' )


Create and register a temporary directory.


string $tmpdir

Directory to use as tmpdir. Will use system defaults (for example /tmp or c:\windows\temp) if not specified.

Return value

string name of created directory


This function can not be called statically.

Create a directory and necessary parent directories (Previous) Set object representing frontend to use. (Next)
Last updated: Sat, 28 Nov 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.