note 82460 deleted from function.file-exists by nlopess

From: Date: Sat, 12 Apr 2008 10:27:04 +0000
Subject: note 82460 deleted from function.file-exists by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138217@lists.php.net to get a copy of this message
Note Submitter: openspecies Reason: useless ---- PHP 5.2.5 <?php define("CLASS_DIR", "/usr/share/locale/"); $dirs = array("", "en_US/", "da_DK/", "de_DE/"); // Works foreach($dirs as $dir){ if(file_exists(CLASS_DIR.$dir."LC_COLLATE")) echo CLASS_DIR.$dir."LC_COLLATE works 0 ?\n"; } // Works foreach($dirs as $dir){ if(file_exists(constant("CLASS_DIR").$dir."LC_COLLATE")) echo constant("CLASS_DIR").$dir."LC_COLLATE works 1 ?\n"; } // Works foreach($dirs as $dir){ $filename = CLASS_DIR.$dir."LC_COLLATE"; if(file_exists($filename)) echo $filename." works 2 ?\n"; } ?>

« previous php.notes (#138217) next »