why include() don't allow to work setcookie?
Posted
by Syom
on Stack Overflow
See other posts from Stack Overflow
or by Syom
Published on 2010-04-08T10:33:45Z
Indexed on
2010/04/08
10:43 UTC
Read the original article
Hit count: 161
php
i need to set cookies in my page, but it returns
Warning: Cannot modify header information - headers already sent by (output started at /home1/bsam/public_html/24kadr/index.php:1) in /home1/bsam/public_html/24kadr/basic_login.php on line 35
on line 1 i have
include 'basic_login.php';
but even if i remoove include, ir returns the same warning on session_start, or mysql_connect. so i think these all functions use header when calling, but what can i do? at least i need to connect to database, and just after it i need to use setcookie(). so what can i do? thanks
© Stack Overflow or respective owner