Hi!
I looked through my old coding and found the following example i used to upload some certain GIF files to a server running on a WIn98 machine. If you're using WINNT/2K be sure to verify permissions on the folders.
If i understood the manual right, the file is uploaded to TEMP with a temporary name, but it's deleted right after the script has been terminated so you won't see the file there. You have to copy it at once prior to terminating the script.
aswell as making sure that register_globals is set to TRUE in PHP.INI
/ The $user_filename is the original filename from the client ie. cucumber.gif
$phbasedir is the basedir where I've put it from the begining. /
$slump = time();
$fl = $phbasedir.$uldir.$slump.$userfile_name;
$picpath = $uldir.$slump.$userfile_name;
copy($userfile, $fl);
$change = "Added picture ".$picpath;
echo "File was copied to the server.";
/ defined variables in my include.php file /
$phbasedir = "C:/apache/htdocs/credit/";
$uldir = "pixs/";
Just let me know if you wan't the full sourcecode.