jpb wrote:
I am using the FTP_PUT command in conjunction with a form:

<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="imagefile">
<input type="submit" value="Submit">

upload.php:
Everything seems to work except the put statement.
$upload = ftp_put($conn_id, $destination_file, $_POST[imagefile],
FTP_BINARY);

I am connecting to the server and it is replacing the old image file with a
0 kb file.

Permissions are RWX across the board. Any ideas?


Read http://www.php.net/manual/en/features.file-upload.php

information about uploaded file(s) is in $_FILES array and $_FILES['imagefile'] is an array

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to