Current time: 21-08-2017, 06:17:20 Hello There, Guest! (LoginRegister)
Advertisement

CF Image Host 1.6.5

Download link Fixed 1.6.5 is out and can be found here-> http://forum.codefuture.co.uk/showthread.php?tid=73141

CF Image Host Pro 0.4.5

Download CF Image Host Pro 0.4.5 can be found here-> http://forum.codefuture.co.uk/showthread.php?tid=73481

CF Captcha headers problem
Author Message
Post: #1
CF Captcha headers problem
I've included "cf.captcha.php" on my "index.php" file and sometimes (not everytime) I get that error when I have to validate the captcha:

Code:
[06-Mar-2015 18:39:57 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/path/to/index.php:17) in /home/path/to/captcha/cf.captcha.php on line 88

What if instead of
Code:
setcookie('Captcha', '', time() - 3600, '/',$domain);
unset($_COOKIE['Captcha']);
I put
Code:
if (isset($_COOKIE['Captcha'])) unset($_COOKIE['Captcha']);

Would that work without errors?
I suppose with the code above you're trying to remove the cookie, but I guess unset is enough.
Quote
Advertisement


Forum Jump: