i have a directory called lazylist, which is CHMODED to 733 so a user can do everthing but read the directory. i tried to chown it so i could CHMOD so a user COULD view it, but i got this back:

Warning: chown() [function.chown]: Operation not permitted in /home/comesept/public_html/introverted/ll.php on line 63

why isnt it premitted? should i just CHMOD all the files in the directory instead? then CHOWN and CHMOD it through PHP so a user can view the files.

    I think chown() is only supposed to work if you are root.

    Have you tried chmodding the directory yet?
    A simpler solution might be to use yout ftp client to chmod.

      i have tried to CHMOD it i get the same type of error.....

        Well, it could be that your webhost has disabled the chmod and chown functions in PHP for that server.

        I think the best try is for you to use your ftp client to chmod to 0755

          Write a Reply...