开发者

How to wake a PC with a PHP script?

开发者 https://www.devze.com 2023-01-07 05:40 出处:网络
By enabling Wake-on-LAN on my PC, I can remotely power it on. Suppose I want to send the \"magic packet\" from a PHP scrip开发者_开发技巧t. How would I do this? Would I need to use the cURL functions

By enabling Wake-on-LAN on my PC, I can remotely power it on.

Suppose I want to send the "magic packet" from a PHP scrip开发者_开发技巧t. How would I do this? Would I need to use the cURL functions?


You can peek at: http://sourceforge.net/projects/wolviaphp/files/ (uses fsockopen() with 'udp://')


I have used WMI in the past, for the remote management of machines running windows.

So WMI from MS or http://www.openwbem.org/ (the open standard) might be what you are looking for.

Good luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消