Giter VIP home page Giter VIP logo

php-wol's Introduction

PHP-WOL

A PHP library for sending WOL (Wake-On-LAN) notifications across a network. In order to utilise this the target system must be set-up to accept WOL requests.

Wake-on-LAN (WoL) is an Ethernet or Token ring computer networking standard that allows a computer to be turned on or awakened by a network message. -- Wikipedia definition of WOL

Example usage

Wol::wake('192.168.1.2', '6A:70:D0:F0:B0:50');

The result of this will return the number of bytes sent to the target if successful, otherwise it will return FALSE.

Errors

Broadcast IP address and MAC address required.

In order to use WOL it is necessary to provide a broadcast IP address and the MAC address of the machine to wake (or turn on).

Invalid protocol

Only supported protocols may be used; these are:

Protocol Description
AF_INET IPv4 Internet based protocols. TCP and UDP are common protocols of this protocol family.
AF_INET6 IPv6 Internet based protocols. TCP and UDP are common protocols of this protocol family.
AF_UNIX Local communication protocol family. High efficiency and low overhead make it a great form of IPC (Interprocess Communication).

Connection failed

This indicates that the socket could not be created. This could be down to permissions, socket extension not being loaded, etc.

Unable to set options on socket

Although the socket could be created, this indicates that the settings that are attempting to be applied to the socket are not supported.

php-wol's People

Contributors

jedi58 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.