You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Recommendations

Use file handles where possible

Rules

Check file access rights before opening

Detect and handle file operation errors

Create temporary files in private directories

Open files with as few privileges as necessary

Validate path and filename parameters supplied to file functions

Ensure file handles refer to the expected file

  • No labels