I want to download "Bhavcopy.cvs" file form "nseindia.com" on everyday at 5 pm.
So, I want php code that automatic download this file from "nse" website...
Please help
I tried following code.
header('Content-Type: application/csv');
header('Content-Disposition: attachment; filename=http://www.nseindia.com/products/content/equities/equities/homepage_eq.htm/cm07APR2014bhav.csv.zip');
header('Pragma: no-cache');
readfile("http://www.nseindia.com/products/content/equities/equities/homepage_eq.htm/cm07APR2014bhav.csv