Re: use fopen unknown resource

From: ourdiaspora <ourdiaspora(at)protonmail(dot)com>
To:
Cc: "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-28 21:55:19
Message-ID: tebAK3r137rxr8m6s-HAkSKr3RTs32iL2CvDsxyJx8Sv08HEwWBcWc4q_Efde4yjo_2yi5yJHzQ7WzQ3V0SBkz-1PPkbcfRn0qc4JfBbf_A=@protonmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Saturday, August 28th, 2021 at 5:52 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> 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 reference to open 'test.csv'???:

https://www.php.net/manual/en/function.fgetcsv.php
"
...
if (($handle = fopen("test.csv", "r")) !== FALSE) {
...
"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2021-08-28 22:18:35 Re: use fopen unknown resource
Previous Message Peter J. Holzer 2021-08-28 17:11:23 Re: use fopen unknown resource