我需要帮助如何打开excel csv文件直接进入微软excel或其他excel支持的应用程序通过PHP代码。
目前,我只能下载CSV文件,但我需要在受支持的应用程序中直接打开它。
那么这有可能吗?提前感谢您的帮助。
对于下载csv文件,我使用以下php脚本
<?php
header("Content-disposition: attachment; filename=uploads/shipping.csv");
header("Content-type: application/csv");
readfile("uploads/shipping.csv");
?>
发布于 2016-03-03 06:59:32
不,使用PHP是不可能的。要么在Firefox浏览器上设置它,要么在Google下载操作中设置它。这里是介绍如何在火狐浏览器上这样做的,而这里则是用于chrome的。
https://stackoverflow.com/questions/35764014
复制相似问题