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....
- Host: GitHub
- URL: https://github.com/peterbrain/wake-on-lan
- Owner: PeterBrain
- Created: 2016-11-10T17:12:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T12:34:01.000Z (about 7 years ago)
- Last Synced: 2025-03-04T22:26:47.074Z (over 1 year ago)
- Topics: php, wake-on-lan, wol
- Language: PHP
- Homepage: http://peterbrain.github.io/wake-on-lan/
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```