Re: Auto load PHP
| From: | Renze Munnik | Date: | Tue, 03 Apr 2001 13:22:50 +0000 |
| Subject: | Re: Auto load PHP | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8183@lists.php.net to get a copy of this message | ||
On Tue, Apr 03, 2001 at 03:11:49PM +0200, Michael Rudel wrote:
> <?php
> // Redirects to another Page using HTTP-META Tag
> function redirect( $url, $message = "", $delay = 0 )
> {
> /* redirects to a new URL using meta tags */
> echo "<meta http-equiv='Refresh' content='".$delay.";
> url=".$url."'>";
> if ( !empty( $message ) )
> die( "<div style='font-family: Arial, Sans-serif; font-size: 12pt;'
> align=center> ".$message." </div>" );
> }
> ?>
>
> Greetinx,
> Mike
>
> Michael Rudel
> - Web-Development, Systemadministration -
> _______________________________________________________________
>
> Suchtreffer AG
> Bleicherstraße 20
> D-78467 Konstanz
> Germany
> fon: +49-(0)7531-89207-17
> fax: +49-(0)7531-89207-13
> e-mail: mailto:mru@suchtreffer.de
> internet: http://www.suchtreffer.de
> _______________________________________________________________
>
>
>
For you, the same remark I got at my first reaction....
J.R. doesn't want to redirect...
And _if_ you want to redirect from a PHP-script; why not just use
the functions that are available for such actions:
header()
Why would you want to output some HTML-code that redirects when you
can redirect right a way. And... I heard/read in the HTML-newsgroup
(quite some time ago...) that not all browsers support the refresh
meta-tag.
--
* R&zE:
***************************
** Renze Munnik
**
** E: renze@datalink.nl
** M: +31 6 218 111 43
***************************