bruno67 Posted August 29, 2007 Share Posted August 29, 2007 Hi, I need to create a redirection from a php page to another, without having a web browser opened. Imagine that you make a php starting via command line or cron job, then your php is running in background and no web browser is open on it. How can this php (from the background, with no web browser opened) call (trigger) another php? please note that I'm not talking about include. I need that the background php gives control to ANOTHER php url . per what I tested the php 'header' command does not work and obviously also any javascript redirection cannot work because there is no web browser opened. so, finally, how can that php running in background call another php url? Thank you so much for your help Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 29, 2007 Share Posted August 29, 2007 I think it's called CURL. Why can't you just make two cron jobs? Or include? Quote Link to comment Share on other sites More sharing options...
bruno67 Posted August 29, 2007 Author Share Posted August 29, 2007 jesirose . thank you so much. I tried with the curl_exec example on php.net and seems to fit my needs. Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 29, 2007 Share Posted August 29, 2007 Cool. Quote Link to comment 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.