<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ping a server using PHP</title>
	<atom:link href="http://www.codediesel.com/php/ping-a-server-using-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codediesel.com/php/ping-a-server-using-php/</link>
	<description>/* PHP &#38; MySQL Journal */</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:39:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Server Rack</title>
		<link>http://www.codediesel.com/php/ping-a-server-using-php/comment-page-1/#comment-1907</link>
		<dc:creator>Server Rack</dc:creator>
		<pubDate>Fri, 07 May 2010 15:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=103#comment-1907</guid>
		<description>this is great stuff, thank you.  i had to mess with this a little more than I wanted but finally got it.
&lt;a href=&quot;http:/www.dsiwholesalers.com&quot; rel=&quot;nofollow&quot;&gt;Server Racks&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>this is great stuff, thank you.  i had to mess with this a little more than I wanted but finally got it.<br />
<a href="http:/www.dsiwholesalers.com" rel="nofollow">Server Racks</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sameer</title>
		<link>http://www.codediesel.com/php/ping-a-server-using-php/comment-page-1/#comment-987</link>
		<dc:creator>sameer</dc:creator>
		<pubDate>Sat, 01 Nov 2008 14:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=103#comment-987</guid>
		<description>A easy way is to run the code from the command line and redirect the output to a text file, which you can print as shown below. Assuming your code filename is Ping.php.


c:\php Ping.php &gt; pingdata.txt</description>
		<content:encoded><![CDATA[<p>A easy way is to run the code from the command line and redirect the output to a text file, which you can print as shown below. Assuming your code filename is Ping.php.</p>
<p>c:\php Ping.php > pingdata.txt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hasan</title>
		<link>http://www.codediesel.com/php/ping-a-server-using-php/comment-page-1/#comment-986</link>
		<dc:creator>Hasan</dc:creator>
		<pubDate>Sat, 01 Nov 2008 13:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=103#comment-986</guid>
		<description>can any one help me out how to print down the value of the array..?</description>
		<content:encoded><![CDATA[<p>can any one help me out how to print down the value of the array..?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sameer</title>
		<link>http://www.codediesel.com/php/ping-a-server-using-php/comment-page-1/#comment-973</link>
		<dc:creator>sameer</dc:creator>
		<pubDate>Sun, 14 Sep 2008 03:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=103#comment-973</guid>
		<description>To get the IP element for example use the following:
 
$ip = $rawData-&gt;_target_ip;

and so on.

Now if you want tot get the &#039;_raw_data&#039; element, you will see that it is an array, so we will have to loop through the same, like this:
 
foreach($rawData-&gt;_raw_data as $data)
       echo $data . &quot;\n&quot;;</description>
		<content:encoded><![CDATA[<p>To get the IP element for example use the following:</p>
<p>$ip = $rawData->_target_ip;</p>
<p>and so on.</p>
<p>Now if you want tot get the &#8216;_raw_data&#8217; element, you will see that it is an array, so we will have to loop through the same, like this:</p>
<p>foreach($rawData->_raw_data as $data)<br />
       echo $data . &#8220;\n&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BKS</title>
		<link>http://www.codediesel.com/php/ping-a-server-using-php/comment-page-1/#comment-972</link>
		<dc:creator>BKS</dc:creator>
		<pubDate>Sat, 13 Sep 2008 20:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=103#comment-972</guid>
		<description>Hello,

I have found your post about pinging in php with the pear net_ping class. 

Could you please tell me how I can use the output data? I have no clue how to use the data so I echo for example the IP adres on a page.

By thanking you in advance,</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I have found your post about pinging in php with the pear net_ping class. </p>
<p>Could you please tell me how I can use the output data? I have no clue how to use the data so I echo for example the IP adres on a page.</p>
<p>By thanking you in advance,</p>
]]></content:encoded>
	</item>
</channel>
</rss>

