Re: [PHP] separating strings from extensions

2008-02-18 Thread Shawn McKenzie
Børge Holen wrote: > On Monday 18 February 2008 00:10:30 John Meyer wrote: >> Daniel Brown wrote: >>> On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> > wrote: i am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,"."));

Re: [PHP] separating strings from extensions

2008-02-18 Thread tedd
At 5:56 PM -0500 2/17/08, Daniel Brown wrote: On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> wrote: i am using this code to get the extension of a filename: > $extension = strtolower(strrchr($fileName,".")); how can i get the text BEFORE the . (period) You can STFW an

Re: [PHP] separating strings from extensions

2008-02-18 Thread Richard Lynch
Since you provide the suffice (extension) to basename, it's not basename that's broken... It's not knowing what extension you wanted to provide in the first place... On Mon, February 18, 2008 11:56 am, Nick Stinemates wrote: > Richard Lynch wrote: >> On Sun, February 17, 2008 4:37 pm, nihilism ma

Re: [PHP] separating strings from extensions

2008-02-18 Thread Nick Stinemates
Richard Lynch wrote: > On Sun, February 17, 2008 4:37 pm, nihilism machine wrote: > >> i am using this code to get the extension of a filename: >> >> $extension = strtolower(strrchr($fileName,".")); >> >> how can i get the text BEFORE the . (period) >> > > http://php.net/basename > > Fun

Re: [PHP] separating strings from extensions

2008-02-18 Thread Richard Lynch
On Sun, February 17, 2008 4:37 pm, nihilism machine wrote: > i am using this code to get the extension of a filename: > > $extension = strtolower(strrchr($fileName,".")); > > how can i get the text BEFORE the . (period) http://php.net/basename -- Some people have a "gift" link here. Know what I

Re: [PHP] separating strings from extensions

2008-02-17 Thread Nick Stinemates
John Meyer wrote: > Børge Holen wrote: >> On Monday 18 February 2008 00:10:30 John Meyer wrote: >> >>> Daniel Brown wrote: >>> On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> >> wrote: >> > i am using this code to get the extension of a filename: > >>>

Re: [PHP] separating strings from extensions

2008-02-17 Thread John Meyer
Børge Holen wrote: On Monday 18 February 2008 00:10:30 John Meyer wrote: Daniel Brown wrote: On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> wrote: i am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,".")); how c

Re: [PHP] separating strings from extensions

2008-02-17 Thread Brady Mitchell
On Feb 17, 2008, at 256PM, Daniel Brown wrote: On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> wrote: i am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,".")); how can i get the text BEFORE the . (period) You can STFW and RT

Re: [PHP] separating strings from extensions

2008-02-17 Thread Børge Holen
On Monday 18 February 2008 00:10:30 John Meyer wrote: > Daniel Brown wrote: > > On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > >> i am using this code to get the extension of a filename: > >> > >> $extension = strtolower(strrchr($fileName,".")); > >> > >> how can i get the

Re: [PHP] separating strings from extensions

2008-02-17 Thread John Meyer
Daniel Brown wrote: On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> wrote: i am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,".")); how can i get the text BEFORE the . (period) You can STFW and RTFM. This list should

Re: [PHP] separating strings from extensions

2008-02-17 Thread Daniel Brown
On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > i am using this code to get the extension of a filename: > > $extension = strtolower(strrchr($fileName,".")); > > how can i get the text BEFORE the . (period) You can STFW and RTFM. This list should never be your first pla

[PHP] separating strings from extensions

2008-02-17 Thread nihilism machine
i am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,".")); how can i get the text BEFORE the . (period) ? thanks in advance. -e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php