注册表中有运行状态吗?
我只知道.net的            ServiceController sc = new ServiceController("Apache2");
            if (sc.Status != ServiceControllerStatus.Running)
            {
                sc.Start();//停止了就重启服务
            }
            sc.Close();

解决方案 »

  1.   

    你的APAHCE服务停止了,那么你的PHP代码也就不可解析了(如果你用IIS那是另外的事情了)。
        APACHE是服务,看你用什么工具写代码来看了,而且在什么OS下,它可不是保存在注册表里。
      

  2.   

    在2000以上的windows系统中的系统服务中可以看到apache的状态