We first tried to run phpdocx free on the server, it worked but had not enough features.
then my boss bought the pro version, licenced for the domain we use. But i can't even create a hello world doc file.
here is the code:
[code]
require_once(APPPATH."libraries/phpdocxpro/classes/CreateDocx.inc");
$docx = new CreateDocx(PHPDOCX_BASE_TEMPLATE,"uploads/tmp");
$docx->addText("Hallo");
$docx->createDocx('uploads/docx/hello');
echo '<a href="'.site_url('/uploads/docx/hello.docx').'">klick me</a>';
[/code]
We use the CodeIgniter framework. I had to change the tmp directory, no write access in /tmp on the server.
the thing runs on my local development system (windows, xampp) fine, but on the server it returns just a blank page. No error messages whatsoever. It also creates a file in the specified tmp directory, but its 0 Bytes.
to me it looks like a licening problem, but the "how to install" file confuses me.
- Include your license key in the code file (you should also include the domain in the domain file for the CORPORATE version)
what code file? I just got the archive from my boss, do I have to add something here or should it run out of the box? how can I check if the licence key/information is included?