Hellow~ :)
I think you have two files.
1. excel.php (74th row)
PHP Code:
$this->xlsfilename = '/' . $url['host'] . $url['path'];
↓↓
PHP Code:
$this->xlsfilename = $url['host'] . $url['path'];
Because '/' means absolute path.
We want relative path.
2. And you have another download page like your code.
PHP Code:
// line 9 to 15 in example_export.php from the class above
require_once "excel.php";
$export_file = "xlsfile://tmp/example.xls";
$fp = fopen($export_file, "wb");
if (!is_resource($fp))
{
die("Cannot open $export_file");
}
This is point!
First, 'excel.php' and 'download page' and the directory name 'tmp' located in the same directory!
Second, you must look 'tmp' directory's permission. I think this permission should be 757 at least.
english is not my native language.
so I'm hard writing english.
anything.. good luck!