there is no such tmp dir
I suppose php use the systems temp, for example: C:\WINDOWS\TEMP
but there is one directory you might use.
I have made a specific directory for session files:
session.save_path c:/sessions/tmp c:/sessions/tmp
you can run phpinfo(); to see what your php uses
function to get current
session_save_path
(PHP 4, PHP 5)
session_save_path — Get and/or set the current session save path
<?php
$ssdir = session_save_path();
$my_temp = $ssdir. '/scratch';
if( !is_dir($my_temp) ){
$make = mkdir( $my_temp );
if( !$make ){
exit( 'could not create directory' );
}
}
// use my scratch directory, $my_temp
?>