Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer User:Group ownership problems

    if have a code and i create any file with fopen(), but the user and group say httpd:httpd and i can't edit them. I need them to say jayellis:jayellis

  • #2
    Regular Coder
    Join Date
    Feb 2006
    Location
    The Netherlands
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by loanskey
    hey i wish to answer your query.
    but your preblem specification is not accurate.

    You might consider publishing it here ... it will be answered in few hours.
    That's a forum with six members!?!

    Quote Originally Posted by jayellis
    if have a code and i create any file with fopen(), but the user and group say httpd:httpd and i can't edit them. I need them to say jayellis:jayellis
    You would have to have access to the server with root priviledges. Assuming it's a Linux server, you would have to go to a terminal and type
    Code:
    $ sudo chown jayellis:jayellis filename.php
    You can't do that in PHP. Anyway, if I read this, apparently your scipts are executed as user httpd and not as jayellis, so why would you want to change that?
    Last edited by Spookster; 04-29-2006 at 02:22 PM.
    Yeah that.

  • #3
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,044
    Thanks
    10
    Thanked 93 Times in 91 Posts
    <?php chmod($file, 0777);?> will make the files editable (by anyone~ so remember to reset the permissions afterwards)
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •