* 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
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
- 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
--- 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
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 (
5 matches
Mail list logo