I am using the following code to upload files to the server
$tm=time();
if($admin==1){
$file=$_FILES['ufile']['tmp_name'];
$file2=$_FILES['ufile']['name'];
copy($file,"tmp/steven/reg/$file2");
$_session['myfile']="tmp/steven/reg/$file2";
}else{
$file=$_FILES['ufile']['tmp_name'];
copy($file,"tmp/$tm.txt");
$_session['myfile']="$tm.txt";
}
when I ran this locally it worked fine. I uploaded it to our windows 2003 server running apache server and the uploads stall. I just get a blank screen and the file is not uploaded.
I checked my php.ini file
max_max_filesize = 10M
and
post_max_size = 8M
I cant figure out what is going wrong. Can anyone give me more info on what could be causing this problem? The file I was uploading was about 3 megs....
Thanks