Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php recursively delete directory

function removeDirectory($path) {

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

	return;
}
Comment

PREVIOUS NEXT
Code Example
Php :: eloquent get random 
Php :: wordpress turn off php warnings 
Php :: how get the latest data in database in laravel 
Php :: remove word from string php 
Php :: the $request argument is type-hinted with the non-existent class or interface: "AppControllerRequest". 
Php :: php get last modified date of file 
Php :: Class "AppHttpControllersGuzzle Client" not found 
Php :: wordpress error log 
Php :: hex to bin php 
Php :: autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated. laravel 
Php :: laravel 8 previous page 
Php :: storage link laravel 
Php :: show error php in htaccess 
Php :: migrate single file in laravel 
Php :: php parse float 2 decimal places 
Php :: strtoupper in php 
Php :: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`)) 
Php :: wordpress print all categories 
Php :: hide php extension htaccess 
Php :: php random string generator 
Php :: how to set no cache header php 
Php :: clear log file laravel command 
Php :: php echo json 
Php :: select distinct laravel 
Php :: orwherebetween laravel 
Php :: php timestamp to date 
Php :: A table was not found You might have forgotten to run your migrations. You can run your migrations using php artisan migrate. Pressing the button below will try to run your migrations. 
Php :: how to set timezone for iran in laravel 
Php :: install php 7.3 on amazon linux 2 
Php :: php change timezone 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =