note 57025 deleted from function.dirname by danbrown

From: Date: Sun, 20 Jul 2008 19:06:09 +0000
Subject: note 57025 deleted from function.dirname by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142268@lists.php.net to get a copy of this message
Note Submitter: ssl at bokehman dot com ---- The way this function plays with slashes in windows is a pain so if you are trying to get the current directory I would use the following instead: str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF'])

« previous php.notes (#142268) next »