Quote:
Originally Posted by darkblades
PHP Code:
$uploadmethod = 'ftp'; // Upload method - 'local' or 'ftp'. 'local' will upload files to /music relative to SMDJ root. 'ftp' will use the following FTP settings
$ftp['host'] = 'blahsomeip'; // FTP upload host - IP or domain. No protocol or port
$ftp['user'] = 'blahsomeuser'; // FTP upload username
$ftp['pass'] = 'blahsomepass'; // FTP upload password
$ftp['path'] = 'ftp://smdj/music/'; // FTP upload path to upload to
$ftp['http'] = 'http:/smdj/music/'; // Where to access the FTP upload path via HTTP
Confused...is this correct?
|
No. $ftp['path'] is the path relative to your FTP root. It shouldn't have a protocol on it.
For instance, if you have a directory on your FTP server named "/public_html/mp3", you'd put that in the variable.
$ftp['http'] is the HTTP location of the FTP directory. For instance, mine are set up as follows:
PHP Code:
$uploadmethod = 'ftp'; // Upload method - 'local' or 'ftp'. 'local' will upload files to /music relative to SMDJ root. 'ftp' will use the following FTP settings
$ftp['host'] = 'dl.doctormckay.com'; // FTP upload host - IP or domain. No protocol or port
$ftp['user'] = 'blahsomeuser'; // FTP upload username
$ftp['pass'] = 'blahsomepass'; // FTP upload password
$ftp['path'] = '/var/www/dl/mp3'; // FTP upload path to upload to
$ftp['http'] = 'http://dl.doctormckay.com/dl/mp3'; // Where to access the FTP upload path via HTTP
__________________