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.
I installed the trial version of Pro in my localhost (MAMP) environment. I went through the installation instructions and tried to run the first example script. This is the error I receive: Warning: copy(../word_documents/hello_world.docx): failed to open stream: No such file or directory in C:\wamp\www\06deed\phpdocx\classes\CreateDocx.inc on line 3346
This is the script I am trying to run:
require_once './phpdocx/classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->addText('Hello world!');
$docx->createDocx('../word_documents/hello_world');
I verified that all of the modules were installed using check.php. This is my information:
PHP_VERSION: 5.4.12
PHP_OS: WINNT
PHP_UNAME: Windows NT LENOVO131029 6.2 build 9200 (Unknown Windows version Business Edition) AMD64
SERVER_NAME: localhost
SERVER_SOFTWARE: Apache/2.4.4 (Win64) PHP/5.4.12
SERVER_ADDR: ::1
SERVER_PROTOCOL: HTTP/1.1
HTTP_HOST: localhost
HTTP_X_FORWARDED_FOR:
PHP_SELF: /06deed/phpdocx/check.php
XSLTProcessor: 1
ZipArchive: 1
DomDocument: 1
SimpleXMLElement: 1
Tidy: 1
Any assistance would be appreciated.
Hello,
Is word_documents folder created and the script has rw access to it? This must be the error.
Regards.
Yes, the folder is created. I am in a Windows (WAMP) environment (the original post erroneously said "MAMP"), so I don't think it's a permissions issue. Any other thoughts?
Hello,
One of our developers is answering you by email so please check them.
About your issue, you should run one of the included examples using the CLI mode and check the server logs too.
Regards.
I haven't received an e-mail from a developer since this thread started.
Hello,
Did you run one of the included example using the CLI mode? Please run examples/Core/addText/sample_1.php using the CLI mode and post the output.
Regards.
i have "no such file or directory in phpdocx " error
how to fix this issue