Re: Re: create an AUTOLINK?

From: Date: Thu, 21 Mar 2002 22:33:29 +0000
Subject: Re: Re: create an AUTOLINK?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12715@lists.php.net to get a copy of this message
> That was exactly what a meant! =) But you see, I have one problem, nothing > happens when execute the code???? What do I do wrong? Here is a code > example: > > if($column){ > > header("Location: http://website/next.php"); > > print "hello?"; > > exit; > > } > > The "print"line prints just fine (even if it shouldn't, I just put a text > there to see how far the code get) but the line above doesn't? I dont come > to the website... :(. I know it exist! > Any 'header' command is only executed before any output is sent to the browser. Even if you've a blank space/tab/line before the your '<?php' tag, that is valid HTML output, and then 'header' is obsolete. Make sure no actual output has been sent to the browser before the relocation. Symeon Charalabides (cosmopolitan trainee) -------------------------------------------------------- http://www.webmate.gr

« previous php.windows (#12715) next »