44.222.249.19 |    

Navigation

Google Advertisement

Die Funktion isFile() prüft ob es sich um eine reguläre Datei handelt und ob die Datei lesbar ist. Wird der zweite Parameter auf True gesetzt wird geprüft ob die Datei auch Schreibbar ist. Bei Erfolg wird True, im Fehler False zurück gegeben.

isFile
  1. function isFile( &$file, $writable = False ) {
  2.  
  3. clearstatcache(); // clear the status chache
  4. if ( is_file($file) && ( $writable ? is_writable($file) : is_readable($file) ) )
  5. 	return True;
  6. else
  7. 	return False;
  8.  
  9. }
Parsed in 0.010 seconds at 20.39 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 3 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)