Gen. partnerAlgotech

Working with files

There are a number of functions in PHP for working with files.

|
February 16, 2020

There are a number of functions in PHP for working with files.

Disk functions

  • unlink($path), delete file
  • copy($from, $to), copy a file from one location to another (can be from a URL to the local disk)
  • rename(), rename or move a file on disk
  • chmod(), change permissions to read, write or execute a file
Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.