Re: how to reload a PHP page via PHP code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i reload my pages with a function using a meta tag...

<?php
// $sec is the amount of seconds you want to wait before it redirects
//$url id the pace you want it to redirect to
function redirect ($sec, $url) {

?>

<meta http-equiv="refresh" content="<?=$sec;?>;URL=<?=$url;?>">

<?php
}

//to use to refresh a page
$url = $_SERVER['PHP_SELF'];
redirect(0, $url);
?>
----- Original Message ----- 
From: "Jay Blanchard" <jblanchard@xxxxxxxxxx>
To: "Alain Roger" <raf.news@xxxxxxxxx>
Cc: "PHP General List" <php-general@xxxxxxxxxxxxx>
Sent: Friday, April 14, 2006 9:45 AM
Subject: RE:  how to reload a PHP page via PHP code


[snip]
Sorry, but i do not find it in my PHP manual :-(
[/snip]

http://www.php.net/manual/en/reserved.variables.php

It is actually the first one mentioned on the page. :(

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux