PHP: Read Write File, Read Scan Directory
Here is PHP code to: 1) Read / Scan any directory 2) Read any file 3) Write to any file 1) Read or Scan directory Get all files and folders inside the directory. Three ways are shown below. a) Read/Scan directory using opendir() and readdir() function $dir = "/var/www/test"; $dh = opendir($dir); while (false !== … Read more