for a msword file I would put
function to check if logged in;
header('Content-type: application/msword');
print file_get_contents("Path://document.doc");
but with a .zip file I'm assuming the two lines would change and I have no idea what to change them to.