We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to list the files in the temp directory

Accepted answer
11
Views
2
Comments
edited Jan 17, 2022 9:49AM in General Technical Discussions 2 comments

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!