{"id":447,"date":"2024-10-11T09:29:44","date_gmt":"2024-10-11T08:29:44","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=447"},"modified":"2024-10-11T11:40:04","modified_gmt":"2024-10-11T10:40:04","slug":"mwnci-isgroup-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isgroup-function\/","title":{"rendered":"Mwnci isgroup() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>isgroup<strong>(<em>string<\/em><em>[,string]<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>isgroup()<\/i> function returns <em>true<\/em> if the path points to a file that belong to the specified group. If no group is declared then the applications <em>gid<\/em> is used.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"file\")\r\nprintln(isgroup(\"\/etc\/passwd\", \"root\"))       \/\/ Is \/etc\/passwd group root\r\nprintln(isgroup(\"\/etc\/passwd\", \"0\"))          \/\/ Is \/etc\/passwd group root\r\nprintln(isgroup(\"\/etc\/passwd\", \"users\"))      \/\/ Is \/etc\/passwd group users\r\nprintln(isgroup(\"\/etc\/passwd\"))               \/\/ Is \/etc\/passwd group the same as the gid of the calling user\r\n   \r\ntrue\r\ntrue\r\nfalse\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax isgroup(string[,string]) Description The isgroup() function returns true if the path points to a file that belong to the specified group. If no group is declared then the applications gid is used. Example include(&#8220;file&#8221;) println(isgroup(&#8220;\/etc\/passwd&#8221;, &#8220;root&#8221;)) \/\/ Is \/etc\/passwd group root println(isgroup(&#8220;\/etc\/passwd&#8221;, &#8220;0&#8221;)) \/\/ Is \/etc\/passwd group root println(isgroup(&#8220;\/etc\/passwd&#8221;, &#8220;users&#8221;)) \/\/ Is \/etc\/passwd group users &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isgroup-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci isgroup() Function&#8221;<\/span><\/a><\/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-447","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/447","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=447"}],"version-history":[{"count":3,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/447\/revisions"}],"predecessor-version":[{"id":450,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/447\/revisions\/450"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}