Re: ereg_replace question

From: Date: Wed, 11 Jun 2003 19:02:36 +0000
Subject: Re: ereg_replace question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151112@lists.php.net to get a copy of this message
"Todd Cary" <todd@aristesoftware.com> wrote in message news:3EE76305.6040609@aristesoftware.com... <snip> I have a string, This does not work $fullpath = $HTTP_SERVER_VARS[PATH_TRANSLATED]; $fullpath = ereg_replace("\\[^\\]+$","",$fullpath) . '\\'; What have I missed? Todd </snip> -- You could just use: $path = dirname($fullpath); -- Rob

« previous php.general (#151112) next »