PHP

HTTP 500 Server 에러 발생시 에러 확인할 수 있는 코드


ini_set('display_errors','true');

$path = "relative_path/path";

del_path($path);
function del_path($path) {
	$files = glob($path.'/*');  
	
	foreach($files as $file) { 
		echo $file;
		if(is_file($file))  
			// Delete the given file 
			unlink($file);  
		else if(is_dir($file))
			del_path($file);
			//rmdir($path);
	} 
}

파일 소유자, 그룹, Permission https://blog.naver.com/lbs8482/220962014710

Enter your comment:
W Y I D P