FTP_PUT 0kb problem
| From: | jpb | Date: | Sun, 12 Dec 2004 00:52:17 +0000 |
| Subject: | FTP_PUT 0kb problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-204074@lists.php.net to get a copy of this message | ||
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?
Thanks - Jeff