hi,
It is not so really tough as PHP has built in methods and classes which support those methods...
Use
mkdir("home/xyz/myfolder");
This will create a folder for you on the server and to store the file use the copy function to copy the temporary file present under the temp directory to your file name or directory
e.g:
if(!copy("/temp/filename","home/xyz/myfolder/myfilename.extension"))
{
echo("Sorry Cant upload the file");
exit();
}
Be careful to upload and creating new files on the server a single mistake will completely WIPE ur files.I mean giving the PATH.
I hope this clue will work out for you...
Good Luck!
s.r.k.reddy