note 28473 modified in function.dirname by danbrown

From: Date: Sun, 20 Jul 2008 19:10:58 +0000
Subject: note 28473 modified in function.dirname by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142280@lists.php.net to get a copy of this message
Code for write permissions check: <?php error_reporting(E_ALL); $dir_name = '/var/www/virtual/phpintra/htdocs/php/'; do { $b_is_writable = is_writable($dir_name); echo sprintf("Dir[%s]Writable[%s]\n", $dir_name, $b_is_writable? 'YES':'NO'); }while (($dir_name = dirname($dir_name)) !='/'); ?> --was-- Code for write permissions check: error_reporting(E_ALL); $dir_name = '/var/www/virtual/phpintra/htdocs/php/'; do { $b_is_writable = is_writable($dir_name); echo sprintf("Dir[%s]Writable[%s]\n", $dir_name, $b_is_writable? 'YES':'NO'); }while (($dir_name = dirname($dir_name)) !='/'); http://php.net/manual/en/function.dirname.php

« previous php.notes (#142280) next »