Download all files

I have written a php script to download all the files on my elgg project but the problem is when I log out I cannot download the files and get the error message "sorry,files not available at this time".

The php script is inside the mod folder.

How can I solve this so that I download the files without login?