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
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 ext

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 e

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

[PHP] Using split to establish extension of file

2004-07-07 Thread 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 Which will work, providing that the uploaded file only has one full-stop in the name (