when i insert include_once in my header.php file.it goes to the page i include but there seems no header.php in this included file OR the header.php goes to bottom of the page even if i included it on the top of the page.
for example in this situation a code segment from header.php for log in :
PHP Code:
if (!session_is_registered('id')){
$yanit="log out is ok";
include_once "index.php"; // index.php includes header.php too
exit();}
there seems no header.php file in that.
PHP Code:
$return_msg="log in successful";
include_once "profile.php";
the header.php file goes to bottom of the page instead of top in this situation.
what may the problem be? thanks for your help.