Answers for "unlink folder in php"

PHP
2

php recursively delete directory

function removeDirectory($path) {

	$files = glob($path . '/*');
	foreach ($files as $file) {
		is_dir($file) ? removeDirectory($file) : unlink($file);
	}
	rmdir($path);

	return;
}
Posted by: Guest on July-17-2020
0

php unlink

<?php 
  unlink('test.html');
?>
Posted by: Guest on April-09-2020

Browse Popular Code Answers by Language