I am tring to create a page that allows you to type in an address and when hitting submit you are able to ping that address. Is it possible with php to do that?
Possible yes, but what's the point in making in remote server ping another remote server?
$result = ping $host;
ping $host
Those are backstick (bellow the tilda).