Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP
#1
How do I make a page redirect with PHP?
Reply
#2
(07-28-2011, 08:50 PM)roperson Wrote: How do I make a page redirect with PHP?

?php
header("location:your_page_here_:D");
?

Der.
Reply
#3
(07-28-2011, 08:51 PM)Cap Wrote:
(07-28-2011, 08:50 PM)roperson Wrote: How do I make a page redirect with PHP?

?php
header("location:your_page_here_Big Grin");
?

Der.

You failed.

Code:
<?php
header("whatever");
?>

Oh, and you failed.

Your code didn't work.

http://virtualscope.x10.mx/wiki/
Reply
#4
No roperson, You need Location in it. Or at least that's how I write it.
[Image: chaosthegreat.png]
Reply
#5
Oh. I failed.
Still, the code fails.
Reply
#6
(07-28-2011, 09:29 PM)roperson Wrote: Oh. I failed.
Still, the code fails.

We all fail :D
Reply
#7
No, really the code won't work, so I removed it.
Reply
#8
[lua]header("LOCATION: www\.example.com");[/lua]

you're welcome

EDIT: somehow the link got messed up... fixed.
EDIT: hmm, no worky. I put a \ in front of the .
Reply
#9
Thanks.
Reply
#10
Noob, your redirecting to a link, not a file.

If you wanted a file or page on a website. Why not do this? It takes up less space also.

[lua]
header('Location: file.php');
[/lua]

That's how you would do it
[Image: chaosthegreat.png]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)