Search Postgresql Archives

Re: use fopen unknown resource

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/28/21 2:55 PM, ourdiaspora wrote:

On Saturday, August 28th, 2021 at 5:52 PM, Adrian Klaver <adrian.klaver@xxxxxxxxxxx> 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@xxxxxxxxxxx





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux