I am working on a function where I want it to redirect to a file located in the same root folder. Is it possible?
if (...) {
// I am using echo here.
} else if ($_SESSION['qnum'] > 10) {
session_destroy();
echo "Some error occured.";
// Redirect to "user.php".
}
Can PHP make a redirect call after executing a function?