Curt Zirzow wrote:
>   Syntax error in example, and make the example a bit clearer.
  
> -header("Location: http://"; . $_SERVER['HTTP_HOST']
> -                      . rtrim(dirname($_SERVER['PHP_SELF']), '/\\')
> -                      . "/" . $relative_url);
> +/* Redirect to a different page in the current directory that was requested 
> */
> +$host  = $_SERVER['HTTP_HOST'];
> +$uri   = rtrim(dirname($_SERVER['PHP_SELF']);
> +$extra = 'mypage.php';
> +header("Location: http://$host$uri/$extra";);
> +exit;

There wasn't any syntax error but now there is ;-).

Jakub Vrana

Reply via email to