Re: basename()

From: Date: Tue, 21 Aug 2001 07:51:53 +0000
Subject: Re: basename()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-63646@lists.php.net to get a copy of this message
On Mon, Aug 20, 2001 at 03:42:34PM -0400, Gerard Samuel wrote: > $file = basename ($path); > $file = $file.php3; > You might want to consider using, $file = basename ($path); $file = "$file.php3"; // <-- ! instead, if you don't like warnings. $file = $file.php3 isn't the way to do it! You _could_ use $file = $file.".php3"; though. -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.general (#63646) next »