note 86221 added to function.exec

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
how know if the IP exist:

<?php

	$str = exec("ping -n 1 -w 1 64.233.161.104", $input, $result);
	if ($result == 0) // if its zero successfull
	{
		echo "connect";
	}
	else   // $result != 0 
	{
		echo "not connect";
	}
	echo "<pre>";
	print_r($input);
	echo "</pre>";

?>

I hope this help
----
Server IP: 200.6.154.201
Probable Submitter: 190.73.205.217
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit        -- https://master.php.net/note/edit/86221
Del: integrated  -- https://master.php.net/note/delete/86221/integrated
Del: useless     -- https://master.php.net/note/delete/86221/useless
Del: bad code    -- https://master.php.net/note/delete/86221/bad+code
Del: spam        -- https://master.php.net/note/delete/86221/spam
Del: non-english -- https://master.php.net/note/delete/86221/non-english
Del: in docs     -- https://master.php.net/note/delete/86221/in+docs
Del: other reasons-- https://master.php.net/note/delete/86221
Reject      -- https://master.php.net/note/reject/86221
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.