Welcome Guest, Not a member yet? Register   Sign In
Having problem with CodeIgniter FTP class
#1

[eluser]Anthony Hull[/eluser]
Hey guys,

I wonder if you can help.

Basically, my CI script seems to be working fine when uploading to /public_html/ on a remote server, but when I try to upload to a subfolder like /public_html/folder, it creates the subfolder but doesn't upload any files inside it. But it uploads files fine to the /public_html/ folder.

Here is some code I have currently:

$_POST['remote_path'] has a value such as "/public_html/" or "/public_html/subfolder_name"


Code:
$local_path='/home/rmrs/public_html/members/uploader/files/'. $download_folder . '/';
            
// Creates a folder
$this->ftp->mkdir($_POST['remote_path'])
// Uploads folder
$this->ftp->mirror($local_path, $_POST['remote_path']);


Thanks guys!

Anthony


Messages In This Thread
Having problem with CodeIgniter FTP class - by El Forum - 01-30-2009, 11:55 AM
Having problem with CodeIgniter FTP class - by El Forum - 01-30-2009, 12:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB