The PHP lstat() function returns information about a file or symbolic link.

				
					<?php
print_r(lstat('test.txt'));
?>
				
			

Output

				
					// gets info about the file
				
			

Syntax

				
					lstat(filename)