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)
any guesses why - worked 2 months before - CSV data "can't open file"
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
- BaconFries
-
- Posts: 5621
- Joined: Thu Aug 16, 2007 7:32 pm
Re: any guesses why - worked 2 months before - CSV data "can't open file"
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"
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
If the csv file is in the same folder as the page, then the path is the configuration should be:
formdata.csv