i use this code to get an uploaded file's data:
$immagine = $HTTP_POST_FILES[immagine];
//i store the env. array in a variable
$fp = fopen($immagine[tmp_name], "r");
$imagesize = filesize($immagine[tmp_name]);
$imagedata = addslashes(fread($fp, $imagesize));
fclose($fp);
$imagetype = $immagine[type];
I open the tmpfile, i read it and i store the data in a variable. But in safe_mode, i don't have read access on TMP files. How can access my data?