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: Fri, 19 Oct 2018 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.