Mega Code Archive

 
Categories / Php / File Directory
 

Is_readable() tells you whether you can read a file

<? if ( is_readable( "data.txt" ) ) {   print "data.txt is readable"; } ?>