bruno67 Posted August 27, 2007 Share Posted August 27, 2007 Hi, I have the following problem please: I'm working on a remote hosting. I need a php script to call another php script without relying on an internet browser opened. let me explain: so far, in order to call another script after the first has finished I used to print out a javascript line like that at the end of the first php script: PRINT '<script type="text/javascript">document.write("<iframe src =anotherscript.php'... ...</script>'; the problem is that if the user browser is shut down before the print is executed, the javascript cannot be interpreted by the user browser and so the new php page is not loaded so my problem is: is there a way for a script running in background (thanks to ignore_user_abort() and so on) to call another php script even if the browser has already been closed? I mean, is there a way, from within a php script, to call execution of another php script without the need of a browser opened? Thank you so much for your help. Quote Link to comment https://forums.phpfreaks.com/topic/66864-php-execution/ Share on other sites More sharing options...
nathanmaxsonadil Posted August 27, 2007 Share Posted August 27, 2007 do you mean include? Quote Link to comment https://forums.phpfreaks.com/topic/66864-php-execution/#findComment-335250 Share on other sites More sharing options...
bruno67 Posted August 27, 2007 Author Share Posted August 27, 2007 Thank you. no I don't mean include. with include the page running after the include remains the calling one (and will incur in the execution time limit, which I can only extend to 5 minutes). so I need to pass control to the new php url in order to have a new 5 minutes available for processing. in a certain sense I'm trying to emulate an "infinite" time_limit by using two or more pages that calls themselves in cycle, each one with a lifespan of 5 mins, which is the maximum allowed to me by the remote hosting server. so, since the user browser can be shut down I need the php pages to continue to call each other even withount an underlying website browser opened. hope this helps. Thank you very much for helping Quote Link to comment https://forums.phpfreaks.com/topic/66864-php-execution/#findComment-335265 Share on other sites More sharing options...
Jessica Posted August 28, 2007 Share Posted August 28, 2007 Cron jobs? Quote Link to comment https://forums.phpfreaks.com/topic/66864-php-execution/#findComment-335925 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.