PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
lukilukg4
Forum Newbie
Posts: 12 Joined: Wed Jul 23, 2008 2:51 pm
Post
by lukilukg4 » Sat Jul 26, 2008 3:50 am
could you tell me why in easyphp this line works fine, but in internet it cant refresh the page...
header("Refresh: 2; url=a_name.php");
could you help me plz
tnx for your time
WebbieDave
Forum Contributor
Posts: 213 Joined: Sun Jul 15, 2007 7:07 am
Post
by WebbieDave » Sat Jul 26, 2008 4:06 am
It works with my PHP/browser but it's actually no longer in the
Header Field Definitions document. I would suggest using JavaScript or meta tag:
Code: Select all
<meta http-equiv="refresh" content="2; url=a_name.php">
lukilukg4
Forum Newbie
Posts: 12 Joined: Wed Jul 23, 2008 2:51 pm
Post
by lukilukg4 » Sat Jul 26, 2008 4:21 am
tnx mate it works... i put it in php code
echo "<meta http-equiv=\"refresh\" content=\"2; url=a_name.php\">";
tnx a lot