On Fri, Dec 09, 2005 at 10:23:10AM +0100, Jakub Vrana wrote:
> 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 ;-).

well damn, thanks for catching that stupid mistake.

Curt.
-- 
cat .signature: No such file or directory

Reply via email to