View Full Version : header ("Location:", TIME)
JAB Creations
03-17-2008, 09:37 PM
I have used a timed header location before. It looks something like this though the code below doesn't work (instant redirect)...
header ("Location: http://localhost/", 10);
Using any other method other then header/location is not the answer I'm looking for (such as using refresh, or a different language).
Try this:
$url ="http://localhost"; //here you set the url
$time_out = 10; //here you set how many seconds to untill refresh
header("refresh: $time_out; url=$url");
JAB Creations
03-18-2008, 01:14 AM
It's not the answer I am seeking though it's close enough...
header("refresh: 5; url=http://localhost/");
Master_script_maker
03-18-2008, 11:23 PM
$time=1; //seconds to wait
sleep($time);
header ("Location: http://localhost/");
Leafy
03-19-2008, 08:10 PM
<head>
<meta http-equiv="REFRESH" content="5; http://localhost" />
</head>
JAB Creations
03-19-2008, 08:13 PM
People are not reading my original post which clearly states "Using any other method other then header/location is not the answer" though refresh is close but not the original code I remembered. I would have posted in a clientside forum if I wanted to do this via clientside.
Master_script_maker
03-19-2008, 09:15 PM
my post used header("location: ...");
But yours doesn't use the refresh, besides we solved it already.
tech_support
03-20-2008, 06:13 AM
I don't think we need any more answers. The question has been answered, the end. Master_script_maker, please read the post fully before answering the question.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.