With the Same Code David is using. I recieve the following error message.
Warning: SAFE MODE Restriction in effect. The script whose uid is 1017 is not allowed to access /var/tmp/phpCk3639 owned by uid 0 in /virtual/begood.uhome.net/./upload.php3 on line 17
if ($action == "insertfile") {
$dat = date("U");
$file = "/tmp/".$userfile_name;
copy ($userfile, $file);
where tmp is the directory with the mode 777.
Any idea why?