douyao1994 2014-11-27 06:37 采纳率: 100%
浏览 64

从浏览器中的1个PHP脚本执行多个PHP脚本

the situation is like this. I have created multiple php files with the name operation.php and is hosted in my domains. Something like this:

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

Okay so now what I want is to code 1 single PHP script that will be the mother of all these operation.php scripts. Something like if I execute motherexample.com/operaterun.php from my browser then all these php scripts will run one by one.

Is this possible? Will this result in server outage? I do not want to run all these at once, maybe take a gap of 10seconds between each script execution.

Need help!

UPDATE I'm not sure whether you Guys are getting it or not but here's another example.. Let's say you have 100 sites each having maintenance.php located at example001.com/maintenance.php now it is not possible to load and run each of those 100 maintenance.php in the browser one by one. So this is why I want 1 single mother-maintenance.php that when run from the browser will execute each of those maintenance.php one by one or maybe with some time gap!

  • 写回答

4条回答 默认 最新

  • dongzexi5125 2014-11-27 06:42
    关注

    You need to run something like a wget call from the mother motherexample.com/operaterun.php. wget is for linux, if you are using a windows domain check for alternatives example

    wget http://example.com/operation.php
    wget http://example123.com/operation.php
    wget http://example1234.com/operation.php
    
    评论

报告相同问题?

悬赏问题

  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决