note 2786 deleted from function.dirname by sniper

From: Date: Mon, 09 Dec 2002 06:01:02 +0000
Subject: note 2786 deleted from function.dirname by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40556@lists.php.net to get a copy of this message
It's interesting to note that dirname() does not treat /foo/ as a directory. This means that if you hand it the URI of and address that doesn't specify an index file, like http://www.bar.com/foo/, it will return "" Examples: dirname("/foo/index.html"); #returns "/foo" whereas dirname("/foo/"); #returns ""

« previous php.notes (#40556) next »