ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> Programming

How to redirect url using php?

Author Message
allinaallen



Joined: 07 Nov 2013
Posts: 1

PostPosted: Thu Nov 07, 2013 6:41 pm    Post subject: How to redirect url using php? Reply with quote

hello guys How to redirect url using php?
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Fri Nov 08, 2013 12:06 am    Post subject: Reply with quote

header("Location: $url");
_________________
Community Admin
Back to top
View user's profile Send private message
Ndot



Joined: 13 Feb 2014
Posts: 1
Location: India

PostPosted: Thu Feb 13, 2014 7:08 am    Post subject: Reply with quote

You can easily redirect using the header ("Location:....") syntax
_________________
www.ndottech.com
Back to top
View user's profile Send private message
danial32



Joined: 05 Sep 2014
Posts: 1

PostPosted: Fri Sep 05, 2014 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message
DianaMartinez



Joined: 16 Sep 2014
Posts: 1

PostPosted: Tue Sep 16, 2014 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> Programming All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum