I am running PHP 4 under Windows 98 and NT 4.
when I use:
$tmpfname = tempnam("temp/", "pm");
$tmpfname= "temp/".basename($tmpfname);
The file with name $tmpfname is created in my appace/htdocs/temp directory but as well in c:/php where is PHP installed. The file in temp has size (when I place the data into it) the files in PHP root are always empty (0 length).
It acts the same whatever the statement in tempnam looks like (e.g. "temp", "/temp" ...)
Does somebody has simmilar experience with PHP 4 under Windows? Any suggestions how to get rid of these empty files?