Wake-on-LAN (also called WOL, or WoL) is an Ethernet networking standard based on message broadcast, that allows a workstation or server to be turned on remotely by a 'magic packet' network message.
To do so, Wake on LAN must be supported by the motherboard and needs to be enabled (on most motherboards, it is disabled by default). With Wake-on-LAN, a network card listens for a special packet called "Magic Packet." This Magic Packet is broadcasted on a LAN. When a computer with Wake-on-LAN enabled receives the packet, the network card instructs the computer to power on and boots the machine.
ActiveSocket can be well integrated into PHP environments.
This document describes how ActiveSocket can be integrated into PHP projects.
Download ActiveSocket from the ActiveXperts Download Site and start the installation. The installation guides you through the installation process.
To execute the telnet commands the user is going to give, you need to get the command from the user. We're doing that using a form. In this form we'll work with 4 fields.
You can make it look like this:
(Click on the picture to enlarge)
Create a form with the names listed above. To trigger the commands, we're going to set a variable in the url. In this sample we're using the variable "execute". You can fill in this variable using the action propertie in the <form> tag.
<form action=index.php?execute=ready>
There are WOL samples included with the product. You can also find them on the ActiveXperts FTP site: ftp.activexperts-labs.com/samples/asocket