function to check if a file exists

file exists” makes use of the built-in PHP functions file_exists( ).

01 <? 
02 function file_exist($filename)
03 { 
04     if(file_exists($filename))
05     { 
06         return false; 
07     }else{ 
08         return true; 
09     } 
10 } 
11 ?>