Forum


Replies: 6   Views: 5997
Failed to open stream: no such file or directory
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 lexomatic  · 19-08-2014 - 21:59

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.