Skip to content

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

Notifications You must be signed in to change notification settings

PeterBrain/wake-on-lan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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'.

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

require_once __DIR__.'\wakeonlan.php';
\wakeol\WakeOnLAN::wakeUp($mac, $ip);

About

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

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages