note 62608 deleted from function.dirname by danbrown

From: Date: Sun, 20 Jul 2008 19:05:33 +0000
Subject: note 62608 deleted from function.dirname by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142266@lists.php.net to get a copy of this message
Note Submitter: borisallan at socialenquiry dot org ---- I needed to refer to a directory, one up the tree, so that I had an explicit rather than relative anchor. I couldn't find a function, so I invented: $DocName = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']; $DirNow = dirname($DocName); $DirUp = dirname($DirNow); which seems to work. Cheers. BoRiS.

« previous php.notes (#142266) next »