I'm working on a small social script.. The content will be in Urdu language for which I encoded the files with UTF-8.
I'm having problems with the login page. The problem is that I'm unable to execute setcookie() function. I'm getting the following error;
Warning: Cannot modify header information - headers already sent by (output started at E:\xampp\htdocs\socio\header.php:12) in E:\xampp\htdocs\socio\index.php on line 30
If I change the file encoding back to normal, then the setcookie() function works fine..
Somebody kindly tell me the solution to this problem.