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