donglao9606 2019-04-05 05:26
浏览 33

如何使用PHP本机连接到Windows Server?

I have a PHP script that connects to a Linux server, obtains vital information and reports it back in my PHP App. I connect to the linux server using SSH.

I want to do the same with a windows server, but I don't want to have to install libraries etc. I.e. I want to connect to a Windows Server using their native connection options in a PHP app.

I don't mind installing a library on the app's side if necessary, but I don't want to have to install anything on the server.

There is some info on connecting to a Windows SQL server from PHP. But that doesn't give me access to the command line. I searched around, I really did, and I can't find how to do this. Is it even possible? I can't think that it is not possible, because a lot of server monitoring software allows you to connect to windows server. They might have other apps running in the background that does the actual talking to the server, so it might not be done in PHP itself. But any tips or guidance as to how to do this would be greatly appreciated.

Thanks!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看