note 2786 modified in dirname by ronabop

From: Date: Mon, 02 Oct 2000 10:30:54 +0000
Subject: note 2786 modified in dirname by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-5877@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 "" http://www.php.net/manual/function.dirname.php

« previous php.notes (#5877) next »