[PHP] File Upload: Help Needed

2002-11-13 Thread Pushpinder Sngh Garcha
Hi I am trying to upload a file using php. This is the code that I am using for the php script called upload.php html ? if(!empty($userfile)) { //copy the file to some permanent location copy($userfile, /upload/myfile.txt); //destroy the file unlink($userfile); //display message echo(file

Re: [PHP] File Upload: Help Needed

2002-11-13 Thread Marek Kilimajer
The directory must exists prior to copy, and must be writeable by the server process. Also note this is a filesystem path. Pushpinder Sngh Garcha wrote: Hi I am trying to upload a file using php. This is the code that I am using for the php script called upload.php html ?