Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: max(seven, zero)?
(Example: nine)

The Note You're Voting On

hm2k at php dot net
16 years ago
<?php

function tempdir($dir=false,$prefix='php') {
$tempfile=tempnam('','');
if (
file_exists($tempfile)) { unlink($tempfile); }
mkdir($tempfile);
if (
is_dir($tempfile)) { return $tempfile; }
}

/*example*/

echo tempdir();
// returns: /tmp/8e9MLi

?>

<< Back to user notes page

To Top