{"id":466,"date":"2024-10-11T12:57:47","date_gmt":"2024-10-11T11:57:47","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=466"},"modified":"2024-10-11T13:01:09","modified_gmt":"2024-10-11T12:01:09","slug":"mwnci-issock-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-issock-function\/","title":{"rendered":"Mwnci issock() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>issock<strong>(<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>issock()<\/i> function returns <em>true<\/em> if the path points to socket, <em>false<\/em> if it points to another kind of file.<\/p>\n<p><em>false<\/em> is also returned if the path doesn\u2019t exist<\/p>\n<h2>Example<\/h2>\n<pre>include(\"file\")\r\nprintln(issock(\"\/run\/cups\/cups.sock\"))\r\nprintln(issock(\"\/etc\/passwd\"))\r\n\r\ntrue\r\nfalse<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax issock(string) Description The issock() function returns true if the path points to socket, false if it points to another kind of file. false is also returned if the path doesn\u2019t exist Example include(&#8220;file&#8221;) println(issock(&#8220;\/run\/cups\/cups.sock&#8221;)) println(issock(&#8220;\/etc\/passwd&#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-466","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/466","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=466"}],"version-history":[{"count":3,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/466\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/466\/revisions\/469"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}