* 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
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
- 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_
--- 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
4 matches
Mail list logo