An open API service indexing awesome lists of open source software.

https://github.com/peterbrain/wake-on-lan

Wake-On-Lan (WOL) starts your computer remotely... magic....
https://github.com/peterbrain/wake-on-lan

php wake-on-lan wol

Last synced: about 1 month ago
JSON representation

Wake-On-Lan (WOL) starts your computer remotely... magic....

Awesome Lists containing this project

README

          

# Wake on LAN
Wake-On-LAN (WOL) starts your computer remotely... magic

First of all, this is the structure of the needed database named 'server'.
```sql
CREATE TABLE `server`.`wol` (
`owner_id` INT(11) NOT NULL COMMENT 'User ID',
`name` VARCHAR(50) NOT NULL COMMENT 'Name',
`ip` VARCHAR(50) NOT NULL COMMENT 'IP-Adress',
`mac` VARCHAR(50) NOT NULL COMMENT 'MAC-Adress',
`shared` TINYINT(1) NOT NULL COMMENT 'visible to everyone',
UNIQUE `name` (`name`)
) ENGINE = InnoDB;
```

Put this into your PHP script to send a Magic Packet
```php
require_once __DIR__.'\wakeonlan.php';
\wakeol\WakeOnLAN::wakeUp($mac, $ip);
```