Forum


Replies: 5   Views: 4242
Problem with links and embedhtml - phpdocx 4.0pro
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 ckaibel  · 27-08-2014 - 13:42

Hi, i want to add two different links into a html table. But everytime i try this, the 1st link is not correct in the word file, the html output is correct. It seems that the second link (href=) in the overwrites the first link. The Name of Link is ok, but not the link to the internet adress. It is important for me to get this work, below you can find my code. Thanks for your help. best regards Chris See code here: http://pastebin.com/2BcdXDK2 -Start- ".$FileName_Test."
"; require_once('/phpdocx/classes/CreateDocx.inc'); $doc_Test = new CreateDocx(); $test_help_file_sec = " (Test 1)(Test 2) "; $html_test_sec = " Security Tests: "; $html_test_sec .= "
What to test: ".$test_help_file_sec." Value: Checked:

"; echo $html_test_sec; $doc_Test->embedHTML($html_test_sec); $doc_Test->createDocx($FileDir.$FileName_Test); ?> -End-

Posted by admin  · 28-08-2014 - 07:32

Hello, We have run this example: http://pastebin.com/TtNdb88m and the document is generated fine with both links. Please attach the DOCX to check it. Regards.

Posted by admin  · 28-08-2014 - 12:22

Hello, Is Tidy installed and enabled in your server? Regards.

Posted by ckaibel  · 28-08-2014 - 13:37

result when i run your check.php(webserver is xxamp): PHP_VERSION: 5.5.11 PHP_OS: WINNT PHP_UNAME: Windows NT xxxxxxx 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) i586 SERVER_NAME: xxxxx.xxxxxxx.xxxxx SERVER_SOFTWARE: Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11 SERVER_ADDR: 192.168.xx.xx SERVER_PROTOCOL: HTTP/1.1 HTTP_HOST: xxxx.xxxx.local HTTP_X_FORWARDED_FOR: PHP_SELF: /phpdocx/check.php XSLTProcessor: 1 ZipArchive: 1 DomDocument: 1 SimpleXMLElement: 1 Tidy: 1

Posted by admin  · 29-08-2014 - 06:41

Hello, We have tried several times and we always get this error download your document: 'Too many connections' Please contact us (http://www.phpdocx.com/contact) and send us the document by email. Regards.