thanks works
Now for design decision i need to place the
function isLogged()
{return $_SESSION['utente'];}
in a separate file called checkSession.php
So, in need to include it into the messagesManager.php file
I tryed to use both include and require, but it throws this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/u781508829/public_html/checkSession.php:5) in /home/u781508829/public_html/messagesManager.php on line 172
at line 172 i try to redirect to another page throught header location
The problem seems to be the open and close php tags placed in checkSession.php
<?php and ?>
removing the last one all works fine!
But the strange thing is that i've other files imported that use final ?> tag, why the error only appens for checkSession.php?