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
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
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)) {
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
4 matches
Mail list logo