PHP socket functions?

JCheff

New Member
Messages
2
Reaction score
0
Points
0
Up until last week (?) my Wake on LAN PHP script worked perfectly.

Here's the error I get every time I try to launch it:

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

I'm a noob when it comes to this type of scripting, but it looks like socket functions aren't enabled?

Here's line 24 if any one wants to take a look:

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

I can post the rest, but I don't think it's needed.

Please keep in mind this isn't my script, but it did work for several months up until a week or two ago.
 

motogawa

Member
Messages
306
Reaction score
0
Points
16
I would check your permissions or it might just be blocked on the SS(Server Side) so I'd probably ask the host.
 
Top