Re: Removing script name

From: Date: Mon, 16 Oct 2000 20:29:03 +0000
Subject: Re: Removing script name
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20453@lists.php.net to get a copy of this message
Todd Cary writes: > If I have C:\MyDir\MyFile.txt, how can I remove the "MyFile.Txt" so that > I have "C:\MyDir\" remaining. I have never mastered the pattern > matching in Perl!! > > Many thanks........ > > Todd > > -- > Todd Cary > Ariste Software > todd@aristesoftware.com You don't need pattern matching--the manual has a much easier answer: http://www.php.net/manual/function.dirname.php -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#20453) next »