Author |
Message |
allinaallen
Joined: 07 Nov 2013 Posts: 1
|
Posted: Thu Nov 07, 2013 6:41 pm Post subject: How to redirect url using php? |
|
|
hello guys How to redirect url using php? |
|
Back to top |
|
 |
liaison ionCube Support
Joined: 16 Dec 2004 Posts: 2788
|
Posted: Fri Nov 08, 2013 12:06 am Post subject: |
|
|
header("Location: $url"); _________________ Community Admin |
|
Back to top |
|
 |
Ndot
Joined: 13 Feb 2014 Posts: 1 Location: India
|
Posted: Thu Feb 13, 2014 7:08 am Post subject: |
|
|
You can easily redirect using the header ("Location:....") syntax _________________ www.ndottech.com |
|
Back to top |
|
 |
danial32
Joined: 05 Sep 2014 Posts: 1
|
Posted: Fri Sep 05, 2014 11:06 am Post subject: |
|
|
you can simply redirect using this syntax
<?php
header('Location: static.html');
$fh = fopen('/tmp/track.txt','a');
fwrite($fh, $_SERVER['REMOTE_ADDR'].' '.date('c')."\n");
fclose($fh);
?> |
|
Back to top |
|
 |
DianaMartinez
Joined: 16 Sep 2014 Posts: 1
|
Posted: Tue Sep 16, 2014 9:38 am Post subject: |
|
|
you can simply redirect the page using header function
syntax is header("Location: address of the page")
See example in google, there are many example you will get. |
|
Back to top |
|
 |
|