hi, i've been working on this project for a long time... and i'm virtually at the last step but i really can't seem to get this part to work!
basically, i'm trying to automate the creation of a SXI (OpenOffice.org Impress) file....
The user is supposed to be able to select songs, which i have the lyrics of in files.... and when the user selects all the songs it will generate an SXI file that will display all the lyrics on seperate pages....
the generation of the SXI file, i can do. However, the problem i'm having is outputting the file.
i read my sxi file and output it like this:
$file=fopen(WebKeys::TEMP_FOLDER()."/$tempFilename","rb");
fpassthru($file);
i've also tried using file_get_contents...
THE STRANGEST THING is that it works if i download the generated file directly. however if i go to the page that outputs the file with the code above, the file ends up corrupted.
try for yourselves:
generated and outputted (the no-ip site will be online depending on whether my pc is on or not):
http://anonamos.no-ip.org:1234/~amos/mcac/web/pptChooser.php
downloading the generated file directly:
http://anonamos.no-ip.org:1234/~amos/mcac/tmp/generated.sxi
please, any suggestions would be grrrrreatly appreciated.