Re: use fopen unknown resource

2021-08-28 Thread Adrian Klaver
On 8/28/21 2:55 PM, ourdiaspora wrote: On Saturday, August 28th, 2021 at 5:52 PM, Adrian Klaver wrote: You are asking the user to select a file, so there should be some sort of file reference at that point, correct? This is what causes confusion. If a user has a file named 'mydatafile.c

Re: use fopen unknown resource

2021-08-28 Thread David G. Johnston
On Fri, Aug 27, 2021 at 2:59 PM ourdiaspora wrote: > Please what is the syntax to assign an unknown file name to the 'fopen' > function? > > There isn't one as it would make no sense - how is it supposed to open a file if there is no filename provided to open? You have to set things up yourself

Re: use fopen unknown resource

2021-08-28 Thread ourdiaspora
On Saturday, August 28th, 2021 at 5:52 PM, Adrian Klaver wrote: > > You are asking the user to select a file, so there should be some sort > > of file reference at that point, correct? > This is what causes confusion. If a user has a file named 'mydatafile.csv', why does the manual make refe

Re: use fopen unknown resource

2021-08-28 Thread Peter J. Holzer
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 > > wrote: > > > > > https://www.php.net/manual/en/pdo.pgsqlcopyfromfile.php > > > > > > > " > > public PDO::pgsqlCopyFromFile( > > strin

Re: use fopen unknown resource

2021-08-28 Thread Adrian Klaver
On 8/27/21 3:50 PM, ourdiaspora wrote: ‐‐‐ Original Message ‐‐‐ On Friday, August 27th, 2021 at 11:10 PM, Adrian Klaver wrote: https://www.php.net/manual/en/pdo.pgsqlcopyfromfile.php " public PDO::pgsqlCopyFromFile( string $table_name, string $filename, " Sorry but do

Re: use fopen unknown resource

2021-08-27 Thread ourdiaspora
‐‐‐ Original Message ‐‐‐ On Friday, August 27th, 2021 at 11:10 PM, Adrian Klaver 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

Re: use fopen unknown resource

2021-08-27 Thread Adrian Klaver
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

use fopen unknown resource

2021-08-27 Thread ourdiaspora
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 'fop