Wake-on-Lan script

Status
Not open for further replies.

JCheff

New Member
Messages
2
Reaction score
0
Points
0
I've been running a PHP script successfully since I registered here three months ago, but as of last week it has stopped working with no changes on my part to my website. The script it designed to turn my PC on remotely and is very important to my daily activities. I made a thread in the "Programming Help" section of the forum, but have received no replies (besides it's not a programming mistake on my part since I have validated it works).

The error is as follows:

"Warning: socket_sendto() [function.socket-sendto]: unable to write to socket [1]: Operation not permitted in /home/jcheff/public_html/wol/wol.php on line 24
Magic packet failed!"

Here's line 24 of my script since that's where it stops working:

"if(socket_sendto($s, $msg, strlen($msg), 0, $addr, $socket_number)) {"

Thank you for your attention in this matter!
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
I'm curious. Does this script do anything else than just turn your computer on?
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Also, the problem is that PHP sockets are apparently Disabled.

Don't know why.. But that particular function is disabled.
 

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
unfortunately Script hosting violates the TOS(Its listed near the top)
Filehosting also violates the TOS.
If you had a proper website, i might of let it slide as we have other TOS violators abusing the system

Webspace is for webspace, not for private backups and VNC terminals.
 
Last edited:
Status
Not open for further replies.
Top