Here is my function:
function backup()
{
$this->load->library('zip');
$path = str_replace('\\', '/', $_SERVER['DOCUMENT_ROOT']);
$this->zip->read_dir($path.'/assets/');
$this->zip->archive('backup.zip');
$this->zip->download('backup.zip');
}
When I access the function, my browser pauses for a good 10-15 seconds, which, I assume, means an archive is being made. However, nothing happens except for a 500 error when the loading is completed.
Unfortunately, I don't have direct access to this server via FTP, otherwise I'd check my logs. Any idea if perhaps my code is wrong? My app is on a IIS7 installation.