From: | "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: use fopen unknown resource |
Date: | 2021-08-28 17:11:23 |
Message-ID: | 20210828171123.GA25387@hjp.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 2021-08-28 09:52:45 -0700, Adrian Klaver wrote:
> On 8/27/21 3:50 PM, ourdiaspora wrote:
> > On Friday, August 27th, 2021 at 11:10 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> wrote:
> >
> > > https://www.php.net/manual/en/pdo.pgsqlcopyfromfile.php
> > >
> >
> > "
> > public PDO::pgsqlCopyFromFile(
> > string $table_name,
> > string $filename,
> > "
> >
> > Sorry but do not understand; the line does not explain what to write in the php file.
>
> I'm not a PHP programmer, but I'm going to say it is filename as described
> here:
The use of PHP suggests that this is a web application. So most likely
the user is supposed to upload the file via an HTML form. I would
suggest to the OP to learn how to process file uploads in PHP. Once
they've figured that out it will probably be clear what file name to
use.
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp(at)hjp(dot)at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
From | Date | Subject | |
---|---|---|---|
Next Message | ourdiaspora | 2021-08-28 21:55:19 | Re: use fopen unknown resource |
Previous Message | Adrian Klaver | 2021-08-28 16:52:45 | Re: use fopen unknown resource |