RE: [PHP-DB] delay script
| From: | support at missoulaweb dot com | Date: | Sat, 30 Jun 2001 03:16:46 +0000 |
| Subject: | RE: [PHP-DB] delay script | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-9991@lists.php.net to get a copy of this message | ||
Or you could do:
<?
sleep(10); // do nothing for 10 seconds
header("Location: $url");
?>
Then you don't have to hope that the client's browser supports an html
meta tag for refresh.
--
Allen Lee
http://MissoulaWeb.com
Hosting, Programming and Design
On Fri, 29 Jun 2001, Michael Rudel wrote:
> Hi Jennifer,
>
> use my function:
>
> <?php
> // Redirects to another Page using HTTP-META Tag
> function redirect( $url, $delay = 0, $message = "" )
> {
> /* redirects to a new URL using meta tags */
> echo "<meta http-equiv='Refresh' content='".$delay.";
url=".$url."'>";
> die( "<div style='font-family: Arial, Sans-serif; font-size: 12pt;'
align=center> ".$message." </div>" );
> }
> ?>
>
> ... in your case this will be:
>
> <?php redirect( "login.php", 5, "<B>logging out</B>" );
?>
>
> Hope this helps.
>
> Greetinx,
> Mike
>
> Michael Rudel
> - Web-Development, Systemadministration -
>
> Besuchen Sie uns am 20. und 21. August 2001 auf der
> online-marketing-düsseldorf in Halle 1 Stand E 16
> _______________________________________________________________
>
> 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
> _______________________________________________________________
>
>
>
> > -----Original Message-----
> > From: Jennifer Arcino Demeterio [mailto:eper@tridel.net]
> > Sent: Thursday, June 28, 2001 11:31 AM
> > To: php-db@lists.php.net
> > Subject: [PHP-DB] delay script
> >
> >
> > hello!
> >
> > does anyone knows how to delay a display of a certain page
> > ... for example,
> > if i will click on "logout" button, it will show a page which will say
> > "logging out" then after 5 seconds it will redirect to the login page.
> >
> >
> > thanks =)
> >
> >
>
>
>