User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,528 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,768 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 486 | Replies: 3
Reply
Join Date: Oct 2007
Posts: 3
Reputation: comask is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
comask comask is offline Offline
Newbie Poster

how can i redirect like asp

  #1  
Oct 7th, 2007
i need to redirect to other page with out using header if it is not possible tell me how can i use header with relative url plz n 10q
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Practically a Master Poster

Re: how can i redirect like asp

  #2  
Oct 7th, 2007
why don't you use a meta refresh:

echo '<meta http-equiv="refresh" content="2;url=relativeurl.html">';
Reply With Quote  
Join Date: Jul 2004
Location: North East Indiana
Posts: 491
Reputation: Puckdropper is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 20
Puckdropper Puckdropper is offline Offline
Posting Pro in Training

Re: how can i redirect like asp

  #3  
Oct 7th, 2007
You can build your absolute URL from PHP-supplied functions. Take a look at PHP.net's header page, under "Notes" and above the comments.

http://www.php.net/header
www.uncreativelabs.net

Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Reply With Quote  
Join Date: Feb 2007
Location: india
Posts: 52
Reputation: ajay_tabbu is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
ajay_tabbu's Avatar
ajay_tabbu ajay_tabbu is offline Offline
Junior Poster in Training

Re: how can i redirect like asp

  #4  
Oct 8th, 2007
I can use header function.
header('Location: http://www.example.com/')
for more information see this
Last edited by ajay_tabbu : Oct 8th, 2007 at 3:59 am.
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 4:20 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC