3.145.60.149 |    

Navigation

Google Advertisement

Die Funktion isDir() prüft ob es sich um ein Verzeichnis handelt und ob das Verzeichnis lesbar ist. Wird der zweite Parameter auf True gesetzt wird geprüft ob das Verzeichnis auch Schreibbar ist. Bei Erfolg wird True, im Fehler False zurück gegeben.

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

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

User online
There are 4 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)