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? 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") 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; 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
Archived
This topic is now archived and is closed to further replies.