Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php temp directory

<?php
//To get the name of the temp directory use the below
sys_get_temp_dir(); // outputs the temp directory's name ..
// To create a temporary file in the 
// temporary files directory using sys_get_temp_dir()
$temp_file = tempnam(sys_get_temp_dir(), 'Tux');
echo $temp_file;
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #temp #directory
ADD COMMENT
Topic
Name
9+9 =