I'm unable to use the code snippet below for a file download on a site as readfile is disabled for security reasons, I'm told cURL can be used, any advice on how to change it or on the below replacement would be great, thanks.
How can I donwload many files with php without the server getting confused?
I need to download many files at the same time per client using php.
The files are images or xmls that the system uses to show content.
I need to use php because the system needs to test that the user is logged in to return those files (they will be put in an htaccess, .htpasswrd protected folder).
I am doing this using readfile. In my local server I have no problems but when I upload it to the company server...