I have the below code to open a CSV file, but for some reason it looks to be converting shopkeeper/89137.csv
to shopkeeper_89137.csv
. It keeps opening a blank csv file obviously because its looking for a file that isnt there. What is the proper way to reference a file in order to open it?
header("Content-type: text/csv");
header("Content-Disposition: attachment; filename=shopkeeper/89137.csv");
header("Pragma: no-cache");
header("Expires: 0");