PHP_XLSXWriter icon indicating copy to clipboard operation
PHP_XLSXWriter copied to clipboard

@unlink( $temp_file ); fails on windows permission denied

Open samsong opened this issue 5 years ago • 1 comments

Not sure if it's related to my php server running on windows or on a portable drive. Regardless in my server:

unlink temp files fails when trying to unlink temp file stored in windows temp folder AND also in a htdocs webfolder.

The error was not supressed and it was pointless anyway so I personally chose to disable the cleanup unless the user sets a temp directory.

php/apache server should cleanup their own temp files and it seems we can't get permission to delete them otherwise in some situation of windows

samsong avatar Jan 24 '20 01:01 samsong

you should run your apache or nginx as administrator, then your php can write or remove file on your windows system。

or you make the folder can be edit by every user。

1988chg avatar Mar 26 '20 07:03 1988chg