duanjingsen7904 2016-10-17 08:23
浏览 64
已采纳

如何通过Shell脚本调用公共静态成员方法(PHP类)?什么是“phpr”?

I have read a shell script:

#!/bin/bash
function do_export{

      phpr Job_Sync_Third > /tmp/Job_Sync_Topoc.log 2>/dev/null

}

do_export

This code is to call the main functin of a class(Job_Sync_Third). I found this class throungh the "grep -rnw -e" command.

The Following is the class:

require_once(xxxx);
class Job_Sync_Third
{
         protected $__config = array();
         public function run () {}
         static public function main()
         {
                 $job = new Job_Sync_Third();
                 $job->run();
         }
}

The "phpr" calls the static method in the Job_Sync_Third. It is being installed below the "/usr/bin" directory. How did it do it in a shell script calls the static member function of the class?And what is the "phpr"? I can't get any useful information from Google.

  • 写回答

1条回答 默认 最新

  • douci4026 2016-11-03 03:12
    关注

    The "phpr" maybe is a parser of the author compile.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序