pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: ourdiaspora <ourdiaspora@protonmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: use fopen unknown resource
Date: Sat, 28 Aug 2021 15:35:20 -0700
Message-ID: <246d107b-b4be-6290-fe32-95697acbfb05@aklaver.com> (raw)
In-Reply-To: <tebAK3r137rxr8m6s-HAkSKr3RTs32iL2CvDsxyJx8Sv08HEwWBcWc4q_Efde4yjo_2yi5yJHzQ7WzQ3V0SBkz-1PPkbcfRn0qc4JfBbf_A=@protonmail.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>
	<tebAK3r137rxr8m6s-HAkSKr3RTs32iL2CvDsxyJx8Sv08HEwWBcWc4q_Efde4yjo_2yi5yJHzQ7WzQ3V0SBkz-1PPkbcfRn0qc4JfBbf_A=@protonmail.com>

On 8/28/21 2:55 PM, ourdiaspora wrote:
> 
> On Saturday, August 28th, 2021 at 5:52 PM, Adrian Klaver <adrian.klaver@aklaver.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'???:

Because that is a 'dummy' file name for the purposes of illustrating 
what sort of information needs to be provided. Just substitute in 
whatever file name is actually being fetched in the production code.

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


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (8+ messages)

Message-ID: <246d107b-b4be-6290-fe32-95697acbfb05@aklaver.com>
Permalink:  ../246d107b-b4be-6290-fe32-95697acbfb05@aklaver.com/
Also on:    postgresql.org/message-id/246d107b-b4be-6290-fe32-95697acbfb05@aklaver.com

 · 

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: adrian.klaver@aklaver.com, ourdiaspora@protonmail.com
  Subject: Re: use fopen unknown resource
  In-Reply-To: <246d107b-b4be-6290-fe32-95697acbfb05@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> <tebAK3r137rxr8m6s-HAkSKr3RTs32iL2CvDsxyJx8Sv08HEwWBcWc4q_Efde4yjo_2yi5yJHzQ7WzQ3V0SBkz-1PPkbcfRn0qc4JfBbf_A=@protonmail.com> <246d107b-b4be-6290-fe32-95697acbfb05@aklaver.com>

* 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