Hi all,
I have the below code which i think will work, im trying to redirect to index.php after calling my funcation but im currently getting the following error
"Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\root2\logout.php on line 26" where line 26 is the line begining header.
any advice on how to resolve this or a better way of doing this would be really great.
<?php
session_start();
include ($_SERVER['DOCUMENT_ROOT']. '/includes/functions.php');
user_logout();
require ($_SERVER['DOCUMENT_ROOT']. '/includes/header.php'); ?>
<tr>
<td width="780" colspan="4" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<br>
<br>
<?PHP echo 'You have successfully logged out and will be redirected shortly'; ?>
<br>
<br>
<br>
<br>
</td>
</tr>
<?PHP
require ($_SERVER['DOCUMENT_ROOT']. '/includes/footer.php');
sleep( '3' );
header("Location .$_SERVER['DOCUMENT_ROOT']. '/index.php'");
exit;
?>