Page 1 of 1

in easyphp it works fine but in server....

Posted: Sat Jul 26, 2008 3:50 am
by lukilukg4
could you tell me why in easyphp this line works fine, but in internet it cant refresh the page... 8O


header("Refresh: 2; url=a_name.php");



could you help me plz

tnx for your time

Re: in easyphp it works fine but in server....

Posted: Sat Jul 26, 2008 4:06 am
by WebbieDave
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">

Re: in easyphp it works fine but in server....

Posted: Sat Jul 26, 2008 4:21 am
by lukilukg4
tnx mate it works... i put it in php code

echo "<meta http-equiv=\"refresh\" content=\"2; url=a_name.php\">";

tnx a lot