Re: [PHP] Using split to establish extension of file

2004-07-07 Thread Curt Zirzow
* Thus wrote Russell Curtis: > I'm trying to use the split function to identify the extension of an > uploaded file: > >$file_name = $_FILES['userfile']['name']; >$pieces = explode(".", $file_name); >$file_extension = $pieces[1]; // piece2 You could always use the built in php functio

Re: [PHP] Using split to establish extension of file

2004-07-07 Thread Russell Curtis
Many thanks - just what I was looking for! Cheers Russell -- --- Russell Curtis M +44 (0) 7796268780 www.russellcurtis.com www.buildingdetails.co.uk "Ewout" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > - Original Message - > From: "Ru

Re: [PHP] Using split to establish extension of file

2004-07-07 Thread Ewout
- Original Message - From: "Russell Curtis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 07, 2004 12:24 PM Subject: [PHP] Using split to establish extension of file > I'm trying to use the split function to identify the extension of an > uploaded file: > >$file_

Re: [PHP] Using split to establish extension of file

2004-07-07 Thread zareef ahmed
--- Russell Curtis <[EMAIL PROTECTED]> wrote: > I'm trying to use the split function to identify the > extension of an > uploaded file: > >$file_name = $_FILES['userfile']['name']; >$pieces = explode(".", $file_name); >$file_extension = $pieces[1]; // piece2 > > Which will work, provi