in the trial version, docx files are created (even temporary) under the root directory of the application, which is not secure. is it any option to specify a custom file path to locate generated files? and how?
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it nowin the trial version, docx files are created (even temporary) under the root directory of the application, which is not secure. is it any option to specify a custom file path to locate generated files? and how?
Hello,
You can set any target folder using absolute and relative paths, for example:
$docx->createDocx('/home/user/files/output.docx');This is explained on the practical guide page https://www.phpdocx.com/documentation/practical/creating-a-new-document, Destination path/route section.
Regards.
Thanks for the reply. I am able to specify a custom path, however, it works well in my localhost, but not in our dev server, those we already have 777 permission for the specified directory. we still get this:
Warning: filesize(): stat failed for /www/hosts/rebl.dev.ini.usc.edu/docs/application/controllers/docs/raf_Paul _Thompson_20191014131908.docx in /www/hosts/rebl.dev.ini.usc.edu/docs/application/controllers/report.php on line 446
Warning: readfile(/www/hosts/rebl.dev.ini.usc.edu/docs/application/controllers/docs/raf_Paul _Thompson_20191014131908.docx): failed to open stream: No such file or directory in /www/hosts/rebl.dev.ini.usc.edu/docs/application/controllers/report.php on line 448
We are using the trial version.
Hello,
Please check our reply on https://www.phpdocx.com/en/forum/default/topic/1821 .
Regards.