public function moveFile($file, $originalFolder, $newFolder)
    {
        if (substr($originalFolder, -1) != '/') $originalFolder = $originalFolder . '/';
        if (substr($newFolder, -1) != '/') $newFolder = $newFolder . '/';
        $this->copyFile($originalFolder . $file, $newFolder . $file);
        $this->deleteFile($originalFolder . $file);
    }
public function moveFile($file, $originalFolder, $newFolder)
    {
        if (substr($originalFolder, -1) != '/') $originalFolder = $originalFolder . '/';
        if (substr($newFolder, -1) != '/') $newFolder = $newFolder . '/';
        $this->copyFile($originalFolder . $file, $newFolder . $file);
        $this->deleteFile($originalFolder . $file);
    }
public function moveFile ( $ file , $ originalFolder , $ newFolder ) { if ( substr ( $ originalFolder , - 1 ) != '/' ) $ originalFolder = $ originalFolder . '/' ; if ( substr ( $ newFolder , - 1 ) != '/' ) $ newFolder = $ newFolder . '/' ; $ this -> copyFile ( $ originalFolder . $ file , $ newFolder . $ file ) ; $ this -> deleteFile ( $ originalFolder . $ file ) ; }
To move a file

@param string $file The file to move
@param string $originalFolder The original folder where the file is
@param string $newFolder The folder where the file has to go
To move a file