{"id":78918,"date":"2022-10-05T00:45:22","date_gmt":"2022-10-05T00:45:22","guid":{"rendered":"https:\/\/itsourcecode.com\/?p=78918"},"modified":"2023-11-22T02:52:07","modified_gmt":"2023-11-22T02:52:07","slug":"php-chmod-dir-function-with-examples","status":"publish","type":"post","link":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/","title":{"rendered":"PHP Chmod Dir Function With Examples"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-what-is-php-chmod\"><strong>What is PHP chmod?<\/strong><\/h2>\n\n\n\n<p><strong>PHP chmod()<\/strong> is a built-in function of the language that is useful for changing the mode of a specific file. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>This function can change the mode of the specified file into a specific mode that the user wants.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Now, before we try to implement the function into an actual program, let us know the characteristics of the <strong>PHP chmod() dir function<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Syntax:<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod( $file, int $mode): bool\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Parameters<\/strong><\/h2>\n\n\n\n<p>The <strong>PHP chmod() dir function<\/strong> takes two parameters which are the <mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>$file<\/code><\/mark> and the <mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>$mode<\/code><\/mark>. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>File<\/strong><\/p>\n\n\n\n<p>The <mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>$file<\/code><\/mark> parameter is required by the <strong>chmod() function<\/strong> because it specifies the path or the filename of the file. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Mode<\/strong><\/p>\n\n\n\n<p><mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>$mode<\/code><\/mark> parameter is also required since it specifies the new permissions which will be the basis for the file modification. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Additionally, this parameter consists of the following numbers:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The first digit is always zero.&nbsp;<\/li>\n\n\n\n<li>A second number determines the owner&#8217;s permission.&nbsp;<\/li>\n\n\n\n<li>This third number provides the owner&#8217;s user group rights.&nbsp;<\/li>\n\n\n\n<li>The fourth digit specifies authorization for everyone else.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>Because mode is not automatically presumed to be an octal value, you must precede the mode with a zero to ensure the desired operation (<mark style=\"background-color:var(--base);color:#ff0000\" class=\"has-inline-color\"><code>0<\/code><\/mark>). <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Another issue is that strings like &#8220;<mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>g+w<\/code><\/mark>&#8221; will not function properly.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The <mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>$mode<\/code><\/mark> parameter of <strong>PHP chmod()<\/strong> is made up of three octal number components that describe access limits for the owner, the user group that the owner belongs to, and everyone else, in that order. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To figure out one part, you can add up the permissions needed by the intended user base.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1 denotes that you have granted executory rights.<\/li>\n\n\n\n<li>2 indicates that you have made the file writable.<\/li>\n\n\n\n<li>4 indicates that you have made the file viewable.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>You can add these numbers together to determine the required privileges. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Moreover, you may also learn more about Unix modes by running &#8220;man 1 chmod&#8221; and &#8220;man 2 chmod.&#8221;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Return Values<\/strong><\/h2>\n\n\n\n<p>The <strong>PHP chmod() dir function<\/strong> does the modification by attempting to change the permissions of the specified file. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>This modification will return true if the modification was successful, and false if it was not.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Errors and Exception<\/strong><\/h2>\n\n\n\n<p>PHP&#8217;s <strong>chmod() function does not operate on remote files<\/strong>. It will, however, work on files that are available via the server&#8217;s filesystem.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Furthermore, if quotes are used around the <mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>$mode<\/code><\/mark> argument, PHP will convert it to an integer data type implicitly. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>When a program fails or encounters an error, the <strong>chmod() method<\/strong> displays an <strong>E_WARNING<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Example<\/strong><\/h2>\n\n\n\n<p>In this section, we will have an example program where we can implement the concept of the <strong>PHP chmod() dir function<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Please note that each of the lines in the sample below has its purpose when used in an actual program.<\/p>\n\n\n\n<p><strong>Example Program:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nchmod(\"sample.txt\",0600);\n\nchmod(\"sample.txt\",0644);\n\nchmod(\"sample.txt\",0755);\n\nchmod(\"sample.txt\",0740);\n?&gt;<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Program Explanation:<\/strong><\/p>\n\n\n\n<p><mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>chmod 600<\/code><\/mark> &#8211; This can read and write for the owner and nothing for everybody else.<\/p>\n\n\n\n<p><mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>chmod 644<\/code><\/mark> &#8211; This can also read and write for the owner as well as read for everybody else.<\/p>\n\n\n\n<p><mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>chmod 755<\/code><\/mark> &#8211; Can provide everything for the owner and only read and execute for everybody else.<\/p>\n\n\n\n<p><mark style=\"background-color:var(--base-3);color:#ff0000\" class=\"has-inline-color\"><code>chmod 740<\/code><\/mark> &#8211; Does everything for the owner, and only reads for the owner&#8217;s group.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-related-articles\"><strong>Related Articles<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/itsourcecode.com\/php-tutorial\/php-convert-to-string-with-example\/\">PHP Convert to String with Example<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/itsourcecode.com\/php-tutorial\/php-add-days-to-datetime-with-example\/\">PHP Add Days To Datetime With Example<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/itsourcecode.com\/php-tutorial\/php-remove-element-from-array-with-examples\/\">PHP Remove Element From Array With Examples<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/itsourcecode.com\/php-tutorial\/creating-a-file-in-php-with-examples\/\">Creating a file in PHP With Examples<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/itsourcecode.com\/php-tutorial\/session-timer-php-with-detailed-explanation\/\">Session Timer PHP With Detailed Explanation<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h2>\n\n\n\n<p>In summary, we have completed and delivered everything that a programmer needs to know the <strong>PHP chmod() dir function<\/strong> works. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>This function will help them in dealing with their files such as <strong>modifying<\/strong>, <strong>reading<\/strong>, and <strong>writing <\/strong>them using the path that they provide.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>However, if you have any concerns regarding this topic, you can always tap us through the comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is PHP chmod? PHP chmod() is a built-in function of the language that is useful for changing the mode of a specific file. This function can change the mode &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"PHP Chmod Dir Function With Examples\" class=\"read-more button\" href=\"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/#more-78918\" aria-label=\"Read more about PHP Chmod Dir Function With Examples\">Read more<\/a><\/p>\n","protected":false},"author":1817,"featured_media":79082,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61035],"tags":[95450,95449,95451],"class_list":["post-78918","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-tutorial","tag-how-to-use-chmod-dir-function","tag-learn-what-is-php-chmod-dir-function","tag-php-chmod-dir-function-with-examples","resize-featured-image"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>PHP Chmod Dir Function With Examples - Itsourcecode.com<\/title>\n<meta name=\"description\" content=\"Dig deeper into the concepts of PHP programming through this complete tutorial on PHP chmod dir function with full discussion on its example.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Chmod Dir Function With Examples\" \/>\n<meta property=\"og:description\" content=\"Dig deeper into the concepts of PHP programming through this complete tutorial on PHP chmod dir function with full discussion on its example.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Itsourcecode.com\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/grace.patulada.75\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-05T00:45:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-22T02:52:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/10\/php-chmod-dir.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nym\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nym\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/\"},\"author\":{\"name\":\"Nym\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/a90428bb6bc54609de724e235c6c81d8\"},\"headline\":\"PHP Chmod Dir Function With Examples\",\"datePublished\":\"2022-10-05T00:45:22+00:00\",\"dateModified\":\"2023-11-22T02:52:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/\"},\"wordCount\":603,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/ad9e0497e03b85a9ca299d935298f5dc\"},\"image\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/php-chmod-dir.png\",\"keywords\":[\"how to use chmod dir function\",\"learn what is PHP chmod dir function\",\"PHP chmod dir function with examples\"],\"articleSection\":[\"PHP Tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/\",\"name\":\"PHP Chmod Dir Function With Examples - Itsourcecode.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/php-chmod-dir.png\",\"datePublished\":\"2022-10-05T00:45:22+00:00\",\"dateModified\":\"2023-11-22T02:52:07+00:00\",\"description\":\"Dig deeper into the concepts of PHP programming through this complete tutorial on PHP chmod dir function with full discussion on its example.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/#primaryimage\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/php-chmod-dir.png\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/php-chmod-dir.png\",\"width\":1460,\"height\":900,\"caption\":\"PHP Chmod Dir Function With Examples\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/php-tutorial\\\/php-chmod-dir-function-with-examples\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/itsourcecode.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP Chmod Dir Function With Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#website\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/\",\"name\":\"Itsourcecode.com\",\"description\":\"Partner In Your Coding Journey!\",\"publisher\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/ad9e0497e03b85a9ca299d935298f5dc\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/itsourcecode.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/ad9e0497e03b85a9ca299d935298f5dc\",\"name\":\"itsourcecode\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"width\":409,\"height\":409,\"caption\":\"itsourcecode\"},\"logo\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\"},\"description\":\"Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!\",\"sameAs\":[\"https:\\\/\\\/itsourcecode.com\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/a90428bb6bc54609de724e235c6c81d8\",\"name\":\"Nym\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/42d30861867f33a159ad6834c7962ba9.jpg?ver=1776428711\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/42d30861867f33a159ad6834c7962ba9.jpg?ver=1776428711\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/42d30861867f33a159ad6834c7962ba9.jpg?ver=1776428711\",\"caption\":\"Nym\"},\"description\":\"Hi itsourcecoders! I am Mary Grace Patulada, a student in Carlos Hilado Memorial State College in Binalbagan Campus.\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/grace.patulada.75\"],\"url\":\"https:\\\/\\\/itsourcecode.com\\\/author\\\/gracepatulada\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PHP Chmod Dir Function With Examples - Itsourcecode.com","description":"Dig deeper into the concepts of PHP programming through this complete tutorial on PHP chmod dir function with full discussion on its example.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"PHP Chmod Dir Function With Examples","og_description":"Dig deeper into the concepts of PHP programming through this complete tutorial on PHP chmod dir function with full discussion on its example.","og_url":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/","og_site_name":"Itsourcecode.com","article_author":"https:\/\/www.facebook.com\/grace.patulada.75","article_published_time":"2022-10-05T00:45:22+00:00","article_modified_time":"2023-11-22T02:52:07+00:00","og_image":[{"width":1460,"height":900,"url":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/10\/php-chmod-dir.png","type":"image\/png"}],"author":"Nym","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nym","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/#article","isPartOf":{"@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/"},"author":{"name":"Nym","@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/a90428bb6bc54609de724e235c6c81d8"},"headline":"PHP Chmod Dir Function With Examples","datePublished":"2022-10-05T00:45:22+00:00","dateModified":"2023-11-22T02:52:07+00:00","mainEntityOfPage":{"@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/"},"wordCount":603,"commentCount":0,"publisher":{"@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/ad9e0497e03b85a9ca299d935298f5dc"},"image":{"@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/10\/php-chmod-dir.png","keywords":["how to use chmod dir function","learn what is PHP chmod dir function","PHP chmod dir function with examples"],"articleSection":["PHP Tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/","url":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/","name":"PHP Chmod Dir Function With Examples - Itsourcecode.com","isPartOf":{"@id":"https:\/\/itsourcecode.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/10\/php-chmod-dir.png","datePublished":"2022-10-05T00:45:22+00:00","dateModified":"2023-11-22T02:52:07+00:00","description":"Dig deeper into the concepts of PHP programming through this complete tutorial on PHP chmod dir function with full discussion on its example.","breadcrumb":{"@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/#primaryimage","url":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/10\/php-chmod-dir.png","contentUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/10\/php-chmod-dir.png","width":1460,"height":900,"caption":"PHP Chmod Dir Function With Examples"},{"@type":"BreadcrumbList","@id":"https:\/\/itsourcecode.com\/php-tutorial\/php-chmod-dir-function-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itsourcecode.com\/"},{"@type":"ListItem","position":2,"name":"PHP Chmod Dir Function With Examples"}]},{"@type":"WebSite","@id":"https:\/\/itsourcecode.com\/#website","url":"https:\/\/itsourcecode.com\/","name":"Itsourcecode.com","description":"Partner In Your Coding Journey!","publisher":{"@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/ad9e0497e03b85a9ca299d935298f5dc"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itsourcecode.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/ad9e0497e03b85a9ca299d935298f5dc","name":"itsourcecode","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","url":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","contentUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","width":409,"height":409,"caption":"itsourcecode"},"logo":{"@id":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg"},"description":"Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!","sameAs":["https:\/\/itsourcecode.com\/"]},{"@type":"Person","@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/a90428bb6bc54609de724e235c6c81d8","name":"Nym","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsourcecode.com\/wp-content\/litespeed\/avatar\/42d30861867f33a159ad6834c7962ba9.jpg?ver=1776428711","url":"https:\/\/itsourcecode.com\/wp-content\/litespeed\/avatar\/42d30861867f33a159ad6834c7962ba9.jpg?ver=1776428711","contentUrl":"https:\/\/itsourcecode.com\/wp-content\/litespeed\/avatar\/42d30861867f33a159ad6834c7962ba9.jpg?ver=1776428711","caption":"Nym"},"description":"Hi itsourcecoders! I am Mary Grace Patulada, a student in Carlos Hilado Memorial State College in Binalbagan Campus.","sameAs":["https:\/\/www.facebook.com\/grace.patulada.75"],"url":"https:\/\/itsourcecode.com\/author\/gracepatulada\/"}]}},"_links":{"self":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/78918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/users\/1817"}],"replies":[{"embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/comments?post=78918"}],"version-history":[{"count":17,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/78918\/revisions"}],"predecessor-version":[{"id":120596,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/78918\/revisions\/120596"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/media\/79082"}],"wp:attachment":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/media?parent=78918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/categories?post=78918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/tags?post=78918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}