hukadeeze Posted April 5, 2007 Share Posted April 5, 2007 Is there php function to create a new request to a specific url in the middle of a script? I don't want to include or require. I want to terminate the current script execution, and send the user to a specific url from the server, as if they had selected a link themselves. I know of the coldfusion equivalent, cflocation, but I can't find the php function. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/45694-solved-creating-a-new-request-on-server-side/ Share on other sites More sharing options...
MadTechie Posted April 5, 2007 Share Posted April 5, 2007 either echo a javascript or use Header("location: URL") Quote Link to comment https://forums.phpfreaks.com/topic/45694-solved-creating-a-new-request-on-server-side/#findComment-222001 Share on other sites More sharing options...
jitesh Posted April 5, 2007 Share Posted April 5, 2007 header("location:http:www.site.com"); exit; Quote Link to comment https://forums.phpfreaks.com/topic/45694-solved-creating-a-new-request-on-server-side/#findComment-222004 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.