MX Kommerce Forum :: Use PHP ftp upload with MX Kollection?
This thread was displayed: 0 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
Indio Doido
03-13-2007 21:29:06 GMT +2
|
hi...
i have a form that sends to a mysql table some data. The problem is that i need that form to upload a file over 100MB size, but my server admin sayed that the php.ini file upload size can't be altered.
Can anyone tel me how can i use both the MX Kollection form and the php ftp upload?
pleasseeeeeee :-|
|
|
|
Razvan Racasanu[InterAKT]
03-14-2007 11:10:09 GMT +2
|
Hello,
MX File Upload cannot work with the PHP ftp functions. The only way to solve this is to increase the size in the php.ini file.
Regards,
Razvan RACASANU
|
|
|
Indio Doido
03-14-2007 19:14:55 GMT +2
|
Hi Razvan
I know that file upload doesn't work with php ftp.
What i want to know is how can i alter a form made with MX Kollection, that sends data to a DB, to upload a file from that same form to the server using the php ftp upload code:
<?php $conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if ((!$conn_id) || (!$login_result)) {
echo "FTP connection has failed!";
echo "Attempted to connect to $ftp_server for user $ftp_user_name";
exit;
} else {
echo "Connected to $ftp_server, for user $ftp_user_name";
}
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);
if (!$upload) {
echo "FTP upload has failed!";
} else {
echo "Uploaded $source_file to $ftp_server as $destination_file";
}
ftp_close($conn_id); ?>
?? :-S
|
|
|
Razvan Racasanu[InterAKT]
03-15-2007 12:02:05 GMT +2
|
Hello,
This cannot be done, as the PHP FTP function are used to connect from your server (not your client) to another FTP server which the user does not have on his client.
Regards,
Razvan RACASANU
|
|
|