PHP - Change folder CHMOD

Posted on 2011-10-17
Last Modified: 2012-08-14
Hi E's, Can you show a example how I change the CHMOD of a folder in php?

Regards, JC
Question by:Pedro Chagas
    LVL 8

    Assisted Solution

    by:Ahmed Merghani

    It is something like this:
    // Read and write for owner, nothing for everybody else
    // Read and write for owner, read for everybody else
    // Everything for owner, read and execute for everybody else
    // Everything for owner, read for owner's group

    Open in new window

    For more information see this links:
    LVL 3

    Author Comment

    by:Pedro Chagas
    Hi, I know change CHMOD of a file, but what I need is change the mode of the folder!
    LVL 8

    Accepted Solution

    Ok. you can use it like this:


    Open in new window


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    As this topic comes over and over again in different forms, I've finally decided to write a short (yea, right...) article / tutorial about pagination with PHP with MySQL database. There are dozens of these kind of tutorials, I know - I wanted to mak…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now