The xml library version that comes with the last version of PHP DocWriter (ActiveLink XML 0.34) does not work well with PHP5.
You can try to download the new version of ActiveLink (0.4) from http://www.active-link.com/software/ and replace the old one that comes with PHP DocWriter.
It is reported that the new one works well with PHP5, and this could be a temporary solution until the new version will be released.
Regards,
Jose Manuel.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed PHP DocWriter as instructed but keep getting blank documents.
My setup is as follows:
- Red Hat 9
- XAMPP for Linux 1.4.12
http://www.apachefriends.org/en/xampp.html
- PHP version 5.0.3
- OpenOffice not installed.
Here is my code:
<?php
require_once('phpdocwriter/lib/include.php');
import('phpdocwriter.pdw_document');
$sxw = new pdw_document;
$sxw->SetLanguage('en', 'US');
$sxw->SetStdFont('Times New Roman', 10);
$sxw->Write('Hello World!');
$sxw->Output();
?>
I can download the document.sxw file but it's a blank document; I am not getting the "Hello World!" that should be there.
Could it be that this program is not compatible with PHP5?
Hi,
The xml library version that comes with the last version of PHP DocWriter (ActiveLink XML 0.34) does not work well with PHP5.
You can try to download the new version of ActiveLink (0.4) from http://www.active-link.com/software/ and replace the old one that comes with PHP DocWriter.
It is reported that the new one works well with PHP5, and this could be a temporary solution until the new version will be released.
Regards,
Jose Manuel.