Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to wake a PC with a PHP script?

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 script. How would I do this? Would I need to use the cURL functions?

like image 406
Nathan Osman Avatar asked May 20 '26 13:05

Nathan Osman


1 Answers

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

like image 165
Wrikken Avatar answered May 23 '26 03:05

Wrikken