Re: use fopen unknown resource

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: ourdiaspora <ourdiaspora(at)protonmail(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: use fopen unknown resource
Date: 2021-08-27 22:10:19
Message-ID: d7b0f1c6-33b9-38f9-7a28-41e773ef7eee@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8/27/21 2:59 PM, ourdiaspora wrote:
> Readers,
>
> Objective, to import a csv file into postgresql database. If understood correctly, the manual section 'fopen' (https://www.php.net/manual/en/function.fopen.php) shows that the file has a "known resource" extant name.
>
> Please what is the syntax to assign an unknown file name to the 'fopen' function?
>

Why not use?:

https://www.php.net/manual/en/pdo.pgsqlcopyfromfile.php

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-08-27 22:25:05 Re: Can we get rid of repeated queries from pg_dump?
Previous Message ourdiaspora 2021-08-27 21:59:29 use fopen unknown resource