upload($locpath, $rempath[, $mode = 'auto'[, $permissions = NULL]]) 
Parameters:
$locpath (string) – Local file path 
$rempath (string) – Remote file path 
$mode (string) – FTP mode, defaults to ‘auto’ (options are: ‘auto’, ‘binary’, ‘ascii’) 
$permissions (int) – File permissions (octal)  Returns:
TRUE on success, FALSE on failure  Return type:
bool  
Uploads a file to your server. You must supply the local path and the remote path, and you can optionally set the mode and permissions. E