Execute multiple PHP scripts from 1 PHP script in Browser -


the situation this. have created multiple php files name operation.php , hosted in domains. this:

  1. example.com/operation.php
  2. example123.com/operation.php
  3. example1234.com/operation.php

okay want code 1 single php script mother of these operation.php scripts. if execute motherexample.com/operaterun.php browser these php scripts run 1 one.

is possible? result in server outage? not want run these @ once, maybe take gap of 10seconds between each script execution.

need help!

update i'm not sure whether guys getting or not here's example.. let's have 100 sites each having maintenance.php located @ example001.com/maintenance.php not possible load , run each of 100 maintenance.php in browser 1 one. why want 1 single mother-maintenance.php when run browser execute each of maintenance.php 1 one or maybe time gap!

if user doing it, recommend ajax. otherwise can try code that.

<?php $somearg = escapeshellarg('blah'); exec("php file2.php $somearg > /dev/null &"); 

found on (https://stackoverflow.com/a/1110260/4268741)

however need make changes work on project.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -