2006-03-15, 08:12 PM
Hello there,
Umm sometimes with servers having low bandwidth and storage, it will be nice to have an option that allow the user to specify an external server.
A specific Settings Set
The user will specify his
ftp host server
ftp username
ftp password
the password could be encrypted or whatever to ensure security.
In Server Optimization
the user will be able now to specify an external link to the upload directory.
So when someone now try to attach a file, or an avatar etc...
a ftp connection to the other server will take place using the settings specifid in the board settings. so that the files will be uploaded to the other server instead of the one that's hosting the board.
something like as a basic
i hope u like it and i really think many wants that.
regards
Umm sometimes with servers having low bandwidth and storage, it will be nice to have an option that allow the user to specify an external server.
A specific Settings Set
The user will specify his
ftp host server
ftp username
ftp password
the password could be encrypted or whatever to ensure security.
In Server Optimization
the user will be able now to specify an external link to the upload directory.
So when someone now try to attach a file, or an avatar etc...
a ftp connection to the other server will take place using the settings specifid in the board settings. so that the files will be uploaded to the other server instead of the one that's hosting the board.
something like as a basic
$source = $_FILES['attachment']; // or what ever should be used
$conn = ftp_connect($mybb->settings['exftphost']) or die("Could not connect");
ftp_login($conn,$mybb->settings['exftpuser'],$mybb->settings['exftppass']);
echo ftp_fput($conn,$mybb->settings['exuploadspath'],$source,FTP_ASCII);
i hope u like it and i really think many wants that.
regards