Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001041

Re: [PHP-DB] Auto load PHP From: Renze Munnik (renze <email protected>)
Date: 04/03/01

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 <email protected>
> 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 <email protected> ** M: +31 6 218 111 43 ***************************

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>