the error message is as follows:
Could not create a temporary file with unique name in the specified directory.
error file:
TemplateProcessor.php line 79
the error message is as follows:
Could not create a temporary file with unique name in the specified directory.
error file:
TemplateProcessor.php line 79
(1) there is no permission to operate the folder (you need to give up 775 permissions to make it work)
(2) check the owner and owner group of this folder, maybe the current user does not have read / write permission to the current folder, or you can repair it by providing additional permissions for the folder (777)
(3) check your tmp folder if it is also writable. There are many variants on the Internet how to do, in my case, I just changed the path to the tmp folder in the vendor / phpoffice / phpword / src / Settings.php, function getTempDir (), I have hard-coded the current absolute path to the working directory and the problem is gone. But maybe it's not the best idea.
find the line of code in which you want to create a file, usually that directory is not configured correctly or does not have writeable permissions.
Next: Vue router priority
use PHPWord to implement the following chart to ensure that you can open in Wechat. how to lay out the picture and title and how to deal with the table section? ...
phpword reported an error when operating the word template: ZipArchive::getFromName (): Invalid or uninitialized Zip object means invalid or uninitialized ZIP objects, as shown in the following figure (which I wrote in the laravel framework) it...
problem description I now have a rich text string, such as $str= " < span style= " color: rgb (255,0,0); "> < hr > < span style= " color: rgb (255,0,0); "> qq < span style= " color: rgb (0,176240); "> Q Baidu URL (base64 coding of very...