Page 1 of 1

any guesses why - worked 2 months before - CSV data "can't open file"

Posted: Tue Jan 19, 2021 12:24 am
by oldtony
any expert input would be appreciated. I tested CSV [X] write form data to a .csv file. worked great. Now, after I have made some special forms, and the fopen($csvFile,'a') sends error message "can't open file". All suggestions will be appreciated.
thanks - old tony
below is the facts:
$csvFile = "./ibays/Primary/html/formdata.csv"; this file is set to chmod 777
-rwxrwxrwx 1 oldtony shared 0 Jan 18 17:02 formdata.csv
this is the error i get ==>>$handle = fopen($csvFile, 'a') or die("can't open file");
[root@ynota53 html]# php -v
PHP 5.3.3 (cli) (built: Nov 1 2019 12:28:08)

Re: any guesses why - worked 2 months before - CSV data "can't open file"

Posted: Tue Jan 19, 2021 12:37 am
by BaconFries
Think you have already discovered the answer to this yourself in your thread / post regarding the use of the MySQL Crud extension and the version of PHP required for it to work...

Re: any guesses why - worked 2 months before - CSV data "can't open file"

Posted: Tue Jan 19, 2021 7:04 am
by Pablo
Are you sure the path is correct?
If the csv file is in the same folder as the page, then the path is the configuration should be:
formdata.csv