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

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

Post Reply
lukilukg4
Forum Newbie
Posts: 12
Joined: Wed Jul 23, 2008 2:51 pm

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

Post 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
WebbieDave
Forum Contributor
Posts: 213
Joined: Sun Jul 15, 2007 7:07 am

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

Post 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">
lukilukg4
Forum Newbie
Posts: 12
Joined: Wed Jul 23, 2008 2:51 pm

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

Post 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
Post Reply