{"id":439,"date":"2024-10-11T08:50:42","date_gmt":"2024-10-11T07:50:42","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=439"},"modified":"2024-10-11T08:50:42","modified_gmt":"2024-10-11T07:50:42","slug":"mwnci-isexec-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isexec-function\/","title":{"rendered":"Mwnci isexec() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>isexec<strong>(<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>isexec()<\/i> function returns <em>true<\/em> if the path points to a file that is executable by the calling user, <em>false <\/em>if not.<\/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(isexec(\"\/bin\/ls\"))\r\nprintln(isexec(\"\/etc\/passwd\"))\r\nprintln(isexec(\"\/tmp\/noexist\"))\r\n\r\ntrue\r\nfalse\r\nfalse<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax isexec(string) Description The isexec() function returns true if the path points to a file that is executable by the calling user, false if not. false is also returned if the path doesn\u2019t exist Example include(&#8220;file&#8221;) println(isexec(&#8220;\/bin\/ls&#8221;)) println(isexec(&#8220;\/etc\/passwd&#8221;)) println(isexec(&#8220;\/tmp\/noexist&#8221;)) true false 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-439","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/439","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=439"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/439\/revisions"}],"predecessor-version":[{"id":440,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/439\/revisions\/440"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}