I have my file gerar_xls.php
and you are creating a file .xls
and I want to save it in a folder. What you are doing now is the file download. I have the following:
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment;Filename=ocorrencias.xls");
echo "escrever no ficheiro xls";
The file is being created, but I want to save the file to a folder inside the server and not download it. Is there any change in header
that does this?