Email Addresses not saved.

Gattermeier
Offline
Last seen: 3 years 6 months ago
Wed, 12/11/2013 - 10:12
#1
Email Addresses not saved.

It seems the notify.php file doesn't write into email.txt
Any advise? File ownership is correct & chmod 775 for email.txt too.

M

Neo
Offline
Last seen: 1 year 2 months ago
Wed, 12/11/2013 - 14:32

Please make sure emails.txt is same directory with notify.php in line 40, notify.php (if it's not, you need to edit to new file location)

$file = fopen('emails.txt', 'a+');

If everything is ok and email can't be saved. You can try to debug by inserting this code before line 40

if (!$file = fopen('emails.txt', 'a+')) {
echo "Cannot open file ($filename)";
exit;
}

if (fwrite($file, $email) === FALSE) {
echo "Cannot write to file ($filename)";
exit;
}

Log in or register to post comments