RE: [PHP] File upload HELP!!!

2003-06-27 Thread Daryl Meese
ace ("[^a-z0-9]","", $filename);). I think you will find that the spaces are the problem. Daryl -Original Message- From: Ian Young [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 10:30 AM To: [EMAIL PROTECTED] Subject: [PHP] File upload HELP!!! Tearing our hair out here. Have

[PHP] File upload HELP!!!

2003-06-27 Thread Ian Young
Tearing our hair out here. Have been trying for ever to get files to upload. The good news. We are connecting to database and obtaining information on filename, size, type etc but no file!. Have made a tempdir d-ol/temp and have configured php.ini to reflect this.Maximum file size is the same a s

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" if(!empty($userfile)) {

[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" if(!empty($userfile)) { //copy the file to some permanent location copy($userfile, "/upload/myfile.txt"); //destroy the file unlink($userfile); //display message echo("file uplo