PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site48/web/dbz/serverstatus.php on line 4
The server isn't located at my room. !! Is ther an other way to do this thing?
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen()
I think he achieves what he wants to do with the code above, as he verifies that the webserver is actually accepting TCP requests, an ICMP Ping wouldn't verify anything else than that the host is up..
To take it further he could verify that a GET / HTTP/1.0 returns 200 or 302 but that's really not needed for a quick up-test..