Hi all,
I'm currently using the Trial Edition to check whether I can integrate phpdocx into my project and subsequently upgrade to a licensed version.
The following code works fine when the program is started with XDebug, and creates the file exactly as expected.
//...
console_log('HTML complete!')
$docx = new CreateDocx();
try {
$docx->embedHTML($html_string);
console_log('embedHTML called!');
}
catch (\Exception $e) {
console_log('Exception caught!');
console_log($e);
}
try {
$docx->createDocx('testReport'.$user_id);
console_log('Testfile created!');
}
catch (\Exception $e) {
console_log('Exception caught!');
console_log($e);
}
//...
However, when started without a debugger, script execution stops as soon as embedHTML is called, neither 'embedHTML called!' nor 'Exception caught' are shown in the console log.
Additional info: $html_string contains contains all data of a report varying from 30 to 200 pages and was used to create a .doc file until recently.
Thank you for any help on how to fix my problem! :)