Amazing - it works! The uploaded file is always stored in the temp
directory, so that issue was kind of moot. Here's my complete code,
if anyone else has this same need:
if(isset($_FILES['userfile']['tmp_name'])) {
$csvfile = fopen($_FILES['userfile']['tmp_name'], "r");
if($csvfile ==
rom disk style operation.
>
> Ben
>
> On Mon, 17 Oct 2005 11:45:04 -0400, Jim Moseby <[EMAIL PROTECTED]>
> wrote:
>
> >> -Original Message-
> >> From: Brian Dunning [mailto:[EMAIL PROTECTED]
> >> Sent: Monday, October 17, 2005 11:39 AM
> >> To: ph
rom: Brian Dunning [mailto:[EMAIL PROTECTED]
Sent: Monday, October 17, 2005 11:39 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Uploaded CSV -> database
It looks like all of those tips will easily cover me for the latter
half of the operation. Any tips on how to get the uploaded CSV file
into
> -Original Message-
> From: Brian Dunning [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 17, 2005 11:39 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Uploaded CSV -> database
>
>
> It looks like all of those tips will easily cover me for the latte
[snip]
It looks like all of those tips will easily cover me for the latter
half of the operation. Any tips on how to get the uploaded CSV file
into memory in order to attack it with fgetcsv()? I'd rather not ever
have to actually write the file to the server's disk.
[/snip]
Once you have per
It looks like all of those tips will easily cover me for the latter
half of the operation. Any tips on how to get the uploaded CSV file
into memory in order to attack it with fgetcsv()? I'd rather not ever
have to actually write the file to the server's disk.
Thanks!
--
PHP General Mailing
> -Original Message-
> From: Mark Rees [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 17, 2005 11:11 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Uploaded CSV -> database
>
>
> > > -Original Message-
> > > From: Jim M
> > -Original Message-
> > From: Jim Moseby [mailto:[EMAIL PROTECTED]
> > Sent: Monday, October 17, 2005 10:41 AM
> > To: 'Brian Dunning'; php-general@lists.php.net
> > Subject: RE: [PHP] Uploaded CSV -> database
> >
> >
> > &
> -Original Message-
> From: Jim Moseby [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 17, 2005 10:41 AM
> To: 'Brian Dunning'; php-general@lists.php.net
> Subject: RE: [PHP] Uploaded CSV -> database
>
>
> > -Original Message-
> >
> -Original Message-
> From: Brian Dunning [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 17, 2005 10:37 AM
> To: php-general@lists.php.net
> Subject: [PHP] Uploaded CSV -> database
>
>
> Does anyone have an example of code to process a CSV file submitted
> via a file upload and pars
10 matches
Mail list logo