As described in the documentation
I am trying to add files to a zip folder. The data for that files is saved with my PHP variables $remoteFile and $data.
//Archive the Generated files into Zip for future download
$this->load->library('zip');
$zipFiles = array(
'index.php' => $remoteFile,
'assets/remote.php' => $data
);
$this->zip->add_data($zipFiles);
$this->zip->archive(base_url() . 'assets/remote_files/files.zip');
$this->zip->download(base_url() . 'assets/remote_files/files.zip');
When I load the page the Zip downloads automatically as intended. The file contents is there and everything is good. However, when I look on my server for the zip file, it is none existent.When I SSH into my server directly, or look via FTP and navigate to the 'assets/remote_files' directory for my website there is no zip file shown. I run 'ls -la' and no files.zip is shown.
Where is my zip file? Is it automatically deleting after it downloads?
Permissions:
:~/www-dev/site/assets$ ls -la | grep remote_files
drwxrwxrwx 2 www-data admin 4096 Apr 25 00:30 remote_files