When running this on my server, I get the following error message:
Warning: fopen(xlsfile://tmp/example.xls): failed to open stream: "xlsstream::stream_open" call failed in /home/squamish/public_html/admin/global/code/example_export.php on line 13
Cannot open xlsfile://tmp/example.xls
Is this anything to do with running in "safe_mode"? I did a little poking around and it looks like safe mode might get in the way of running fopen() properly.