Write a PHP script to get the directory path used for temporary files.



code:-



<?php
$file = tempnam(sys_get_temp_dir(), 'Tux');
echo $file."\n";
?>

output:-

C:\Users\VIKRAM SOMAI\AppData\Local\Temp\Tux2AF.tmp

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post