How to list the files in the temp directory
Our oracle contact has told us we have a lot of files in out tmp folder, and we should review and delete to stop this impacting performance. I have wrote a script which when run on my local dev set up works fine but when uploaded and run from custom scripts in the file editor throws the following error
Fatal error: Access to scandir is denied because its trying to access restricted folders in /cgi-bin/abc.cfg/scripts/custom/worktempa.php on line 1
I have attached the script for reference, but it looks like the issue is with the scandir function here
Tagged:
0