Forum Moderators: coopster

Message Too Old, No Replies

Ping without exec()

         

Vis3R

6:20 pm on Mar 11, 2008 (gmt 0)

10+ Year Member



Hello,
I've been looking around for any script or method that would let me ping without using exec() (which my hosting blocked on the server, for security reasons), and i've found some of them using sockets, which gives me another error:

socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted

does it mean the host also blocked the socket_create? if so, is there any other way to ping that's usually not blocked by hosting companies?

jatar_k

9:31 pm on Mar 11, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



try cURL [php.net]

Vis3R

12:08 am on Mar 12, 2008 (gmt 0)

10+ Year Member



cURL does not support pinging, but it game me an idea on how to work around the ping problem. Problem solved :)