Okay, I checked out the link listed below, and tried using what is given
there, but I get the following error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING in
d:\www_root\locutus\phpman\admin\test.php on line 16
Here's the code that I am using:
<form enctype="multipart/form-data" action="test.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="100000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
<?php
move_uploaded_file($_FILES['userfile']['tmp_name'],
"../images/$_FILES['userfile']['name']");
?>
I am able to get rid of this error, but changing the line to:
move_uploaded_file($_FILES['userfile']['tmp_name'],
"../images/$_FILES[userfile][name]");
However, the file is then uploaded as Array[name]
How do I get past this?
Jason Williard
"Eriol" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> "Jason" <[EMAIL PROTECTED]> disgorged:
>
> : I would like to be able to upload files from the client computer to the
> : server via a form. I know how to build the form, but am not sure of the
> : best way to process this. I know there are certain ftp functions that
can
> : do this, which I'm not sure how to use. Are there any others?
>
> ====
>
> http://www.php.net/manual/en/features.file-upload.php
>
> More specifically, move_uploaded_file() and is_uploaded_file()
>
> HTH..
>
> Take care.. peace..
> eriol
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php