/    Sign up×
Community /Pin to ProfileBookmark

On timeout=>location()

Let’s say that there is a file called greeting.php. There is this code…

[code=php] header(“location: redirect.php”);[/code]

Now, I would like to putt following code in the redirect.php

on timeout(let’s say 10sec)

[code=php] header(“location: [url]www.page.com[/url]”);[/code]

This I need so I can write on redirect.php the foolowing “you will now be redirected to..”, so the visitor must be able to read this message and then, after 10 sec., the [url]www.page.com[/url] opens…

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@Bootsman123Jul 13.2003 — Use this:

[code=php]
<META HTTP-EQUIV="Refresh" CONTENT="10; URL=url.php">
[/code]
×

Success!

Help @Extreme spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...