Strano, a me funziona perfettamente.
Codice PHP:
<?php
function redirect ($url) {
$page = $url;
if ($_SERVER['PHP_SELF'] != $page){
header('Location: ' . $page);
exit();
}
}
$page = 'http://www.#######.com/';
redirect($page);
?>
Strano, a me funziona perfettamente.
Codice PHP:
<?php
function redirect ($url) {
$page = $url;
if ($_SERVER['PHP_SELF'] != $page){
header('Location: ' . $page);
exit();
}
}
$page = 'http://www.#######.com/';
redirect($page);
?>