Jump to content

php execution


bruno67

Recommended Posts

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.

 

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.