PHP

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • chown(), chgrp()

    1 answers - 863 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Here's the interesting things. I did exactly that to begin with And I
    never got the "file can't be chmoded!" Instead, I actually got the "Mode
    changed to" notification that I had set in the "else {" case.
    However The mode of the file never changed! Even though !chmod didn't say
    that mode cannot be changed It wasn't really changing the mode. Which is
    why I thought it doesn't work this way.
    9/19/06 11:58 AM, "Jay Paulson" <Jay.Paulson (AT) wholefoods (DOT) comwrote:
    If (!chmod("/somedir/somefile", 775)) {
    echo "file can't be chmoded!";
    }
    Rahul S. Johari
    Supervisor, Internet & Administration
    Informed Marketing Services Inc.
    500 Federal Street, Suite 201
    Troy NY 12180
    Tel: (518) 687-6700 x154
    Fax: (518) 687-6799
    Email: rahul (AT) informed-sources (DOT) com
  • No.1 | | 1041 bytes | |

    775 needs to be 0775 for starters, as I recall

    Tue, September 19, 2006 11:07 am, Rahul S. Johari wrote:

    Here's the interesting things. I did exactly that to begin with And
    I
    never got the "file can't be chmoded!" Instead, I actually got the
    "Mode
    changed to" notification that I had set in the "else {" case.
    However The mode of the file never changed! Even though !chmod
    didn't say
    that mode cannot be changed It wasn't really changing the mode.
    Which is
    why I thought it doesn't work this way.
    --
    9/19/06 11:58 AM, "Jay Paulson" <Jay.Paulson (AT) wholefoods (DOT) comwrote:
    >
    >If (!chmod("/somedir/somefile", 775)) {
    >echo "file can't be chmoded!";
    >}
    >

    Rahul S. Johari
    Supervisor, Internet & Administration
    Informed Marketing Services Inc.
    500 Federal Street, Suite 201
    Troy NY 12180

    Tel: (518) 687-6700 x154
    Fax: (518) 687-6799
    Email: rahul (AT) informed-sources (DOT) com

Re: chown(), chgrp()


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "PHP"

EMSDN.COM