Forum Moderators: coopster
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=BSDailyOrders".date("Y-m-d").".xls");
Those are the header statements that relates to it but I have no idea how to get it to autodownload to the server. Any thoughts?
checkout php for curl functions or file functions. curl is a http specific lib and the file functions do support http/ftp through php file wrappers. you need your script to use such functions to download the file from somewehere to your server then.
--hakre