Bizarre Headers Error when setting Cookies
Posted: Tue Aug 19, 2014 4:01 am
[text]Warning: Cannot modify header information - headers already sent by (output started at /home/j562595/public_html/site/a_sitelogin.php:16) in /home/j56259544/public_html/site/a_sitelogin.php on line 17
Warning: Cannot modify header information - headers already sent by (output started at /home/j562595/public_html/site/a_sitelogin.php:16) in /home/j56259544/public_html/site/a_sitelogin.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /home/j562595/public_html/sites/a_sitelogin.php:16) in /home/j56259544/public_html/site/a_sitelogin.php on line 19
Warning: Cannot modify header information - headers already sent by (output started at /home/j562595/public_html/site/a_sitelogin.php:16) in /home/j56259544/public_html/site/a_sitelogin.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at /home/j562595/public_html/site/a_sitelogin.php:16) in /home/j56259544/public_html/site/a_sitelogin.php on line 21[/text]
We are now hosting about 5 sites on a new service. All are ok. We can login to them all fine - except this one.
The cost is the same, except this uses PDO.
For some reason, it won't let us set Cookies. If I echo the output of the database query, it shows the data, but just won't set the cookies.
I don't know what ..... .php:16 means either.
Why would all the sites work, but this one? The code is the same. Especially the SetCookie code.
Warning: Cannot modify header information - headers already sent by (output started at /home/j562595/public_html/site/a_sitelogin.php:16) in /home/j56259544/public_html/site/a_sitelogin.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /home/j562595/public_html/sites/a_sitelogin.php:16) in /home/j56259544/public_html/site/a_sitelogin.php on line 19
Warning: Cannot modify header information - headers already sent by (output started at /home/j562595/public_html/site/a_sitelogin.php:16) in /home/j56259544/public_html/site/a_sitelogin.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at /home/j562595/public_html/site/a_sitelogin.php:16) in /home/j56259544/public_html/site/a_sitelogin.php on line 21[/text]
We are now hosting about 5 sites on a new service. All are ok. We can login to them all fine - except this one.
The cost is the same, except this uses PDO.
For some reason, it won't let us set Cookies. If I echo the output of the database query, it shows the data, but just won't set the cookies.
I don't know what ..... .php:16 means either.
Why would all the sites work, but this one? The code is the same. Especially the SetCookie code.