Forum


Replies: 7   Views: 3733
Output files are not being saved anywhere
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by tarzip  · 15-08-2013 - 04:03

just to clarify that above example works from command line



 




i have saved

<?php
require_once 'phpdocx/classes/CreateDocx.inc';

$docx = new CreateDocx();

$docx->enableCompatibilityMode();

$text = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, ' .
'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut ' .
'enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut' .
'aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit ' .
'in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' .
'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui ' .
'officia deserunt mollit anim id est laborum.';

$paramsText = array(
'b' => 'on',
'font' => 'Arial'
);

$docx->addText($text, $paramsText);

$docx->createDocx('example_text');

//$html = file_get_contents('Letterhead.html');

//$docx->embedHTML($html);
//$docx->createDocx("phpdocx_embedHTML.docx");
$docx->transformDocx('example_text.docx', 'example_text.html');
$docx->transformDocx('example_text.docx', 'example_text.pdf');


in php_docx.php



and run as



php php_docx.php and it converts files as it should but it is not working via web app.



my guess is it is failing soem point at passthru command. what are my option to debug and send you the logs?



 



Thanks