![]() |
PHP - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5) +--- Forum: Programming (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=30) +--- Thread: PHP (/showthread.php?tid=7322) Pages:
1
2
|
PHP - Dignity - 07-28-2011 How do I make a page redirect with PHP? RE: PHP - Cap - 07-28-2011 (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. RE: PHP - Dignity - 07-28-2011 (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? You failed. Code: <?php Oh, and you failed. Your code didn't work. http://virtualscope.x10.mx/wiki/ RE: PHP - Chaos - 07-28-2011 No roperson, You need Location in it. Or at least that's how I write it. RE: PHP - Dignity - 07-28-2011 Oh. I failed. Still, the code fails. RE: PHP - Cap - 07-28-2011 (07-28-2011, 09:29 PM)roperson Wrote: Oh. I failed. We all fail :D RE: PHP - Dignity - 07-28-2011 No, really the code won't work, so I removed it. RE: PHP - noob007 - 07-29-2011 [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 . RE: PHP - Dignity - 07-29-2011 Thanks. RE: PHP - Chaos - 07-29-2011 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 |