pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: use fopen unknown resource
Date: Sat, 28 Aug 2021 19:11:23 +0200
Message-ID: <20210828171123.GA25387@hjp.at> (raw)
In-Reply-To: <aeec715f-7a02-b68b-823f-81040be4a913@aklaver.com>
References: <IrQH-v4UQGJ7mcslUIQnwwlMMpX8GGztHmZDKsBJbwFxhJyo_AYOTbzUug8pVzzvXjq7xfBB7MfPmvy1OcAB1Z5LjMoynM-PFYNP58c_IaI=@protonmail.com>
	<d7b0f1c6-33b9-38f9-7a28-41e773ef7eee@aklaver.com>
	<FPQBkGZpsb1CdQX5UIFJTWTaTpYa6spcn_LR3KD6ylvpyWRerxZ9O19SP0zICAwtxta9Wzq5vc1VfKdlWVUXUy8kMaL8OzwbElhBB31WszQ=@protonmail.com>
	<aeec715f-7a02-b68b-823f-81040be4a913@aklaver.com>

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.klaver@aklaver.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@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (8+ messages)  latest in thread

Message-ID: <20210828171123.GA25387@hjp.at>
Permalink:  ../20210828171123.GA25387@hjp.at/
Also on:    postgresql.org/message-id/20210828171123.GA25387@hjp.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: hjp-pgsql@hjp.at
  Subject: Re: use fopen unknown resource
  In-Reply-To: <20210828171123.GA25387@hjp.at>
  References: <IrQH-v4UQGJ7mcslUIQnwwlMMpX8GGztHmZDKsBJbwFxhJyo_AYOTbzUug8pVzzvXjq7xfBB7MfPmvy1OcAB1Z5LjMoynM-PFYNP58c_IaI=@protonmail.com> <d7b0f1c6-33b9-38f9-7a28-41e773ef7eee@aklaver.com> <FPQBkGZpsb1CdQX5UIFJTWTaTpYa6spcn_LR3KD6ylvpyWRerxZ9O19SP0zICAwtxta9Wzq5vc1VfKdlWVUXUy8kMaL8OzwbElhBB31WszQ=@protonmail.com> <aeec715f-7a02-b68b-823f-81040be4a913@aklaver.com> <20210828171123.GA25387@hjp.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox