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

Issues related to forms.
Post Reply
oldtony
 
 
Posts: 36
Joined: Sun Feb 23, 2020 4:57 pm
Location: Chicago, Illinois - where the dead vote.

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

Post 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)
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

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

Post 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...
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

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

Post 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
Post Reply