{"id":1185,"date":"2025-05-22T15:15:52","date_gmt":"2025-05-22T14:15:52","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1185"},"modified":"2025-05-22T15:15:52","modified_gmt":"2025-05-22T14:15:52","slug":"mwnci-ping-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-ping-function\/","title":{"rendered":"Mwnci ping() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>ping<strong>(<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>ping()<\/i> function returns <em>true<\/em> if a successful IMCP_ECHO_RESPONSE from the given domain or IP address is found.<\/p>\n<p><em>false<\/em> is also returned if the ICMP_ECHO_RESPONSE is not found.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"file\")\r\nprintln(ping(\"google.com\"))\r\nprintln(ping(\"someweirddomain.uk\"))\r\n\r\n\r\ntrue\r\nfalse<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax ping(string) Description The ping() function returns true if a successful IMCP_ECHO_RESPONSE from the given domain or IP address is found. false is also returned if the ICMP_ECHO_RESPONSE is not found. Example include(&#8220;file&#8221;) println(ping(&#8220;google.com&#8221;)) println(ping(&#8220;someweirddomain.uk&#8221;)) true false<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1185","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1185"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1185\/revisions"}],"predecessor-version":[{"id":1186,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1185\/revisions\/1186"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}