Re: exiting/printing in functions
| From: | Yasuo Ohgaki | Date: | Wed, 23 Jan 2002 01:44:26 +0000 |
| Subject: | Re: exiting/printing in functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81619@lists.php.net to get a copy of this message | ||
sean@interconnect.is.it wrote:
Hello, I wanted to run this by you folks to make sure that this won't cause any problems in other OS'es, and just to ask if this is good php practice. I have a simple function: function relocate($action, $html, $url){ if ($action){ print $html; exit; } else { print Header ("Location:$url");this line should be
header('Location: '.$url);
exit; } } -- Yasuo Ohgaki Please CC me when you reply to news/list messages. Do not send reply only to me :)