Welcome Guest, Not a member yet? Register   Sign In
FTP Mirroring
#1

[eluser]wynnewade[/eluser]
We maintain over 70 property websites on a single CI application fueled by a database (actually, one database and application for production sites and one database and application for development sites) to provide the necessary differences for each site. We provide a custom CMS so that the property managers can update their site regularly. There is an approval process to push changes made to their development site through the CMS to their production site.

One CMS function is to upload photo albums. Once the album is uploaded on development and approved for production, I need to copy this folder from the development assets to their production assets.

I establish the FTP connection and create the photo album folder without issue using:
Code:
$this->ftp->mkdir($path['ftpP'].'photoAlbums/'.$album[0]['albumFolderName'].'/', DIR_WRITE_MODE);
($path['ftpP'] looks like this: /httpdocs/edrAssets/propsP/700/

When I try to use the mirror function in the FTP class, I don't get any errors or warnings but I also don't get any transfer --- just nothing.

Here is that code:
Code:
$dLink = $path['ftpD'].'photoAlbums/'.$album[0]['albumFolderName'].'/';
$pLink = $path['ftpP'].'photoAlbums/'.$album[0]['albumFolderName'].'/';

$this->ftp->mirror($dLink, $pLink);

I have been fighting this for most of the night and need some advice. ALL help is appreciated.

Jon




Theme © iAndrew 2016 - Forum software by © MyBB