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 Coder
    Join Date
    Jul 2012
    Posts
    70
    Thanks
    5
    Thanked 0 Times in 0 Posts

    PHP Permissions Errors!!

    Another question php is so stupid im starting to get bored with it...

    Anyway i want this script to say
    if the maintenance==yes then if the user is the site administrator or the page owner or page admin (page admins are installed on a seperate table by a while loop)
    Then they will be echoed a maintenance notice
    otherwise if they are only a user then they will be echoed with the maintenance error if the page is down.
    the current codes here
    http://admintalk.net/learn/pages/checkblock.txt
    Please someone help edit this too frustrated to bother..
    Thanks,
    Spudster ;.)
    Last edited by Spudster; 08-20-2012 at 10:11 PM.

  • #2
    New Coder
    Join Date
    Jul 2012
    Posts
    70
    Thanks
    5
    Thanked 0 Times in 0 Posts
    I need help asap?

  • #3
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,032
    Thanks
    15
    Thanked 240 Times in 240 Posts
    This isn't really the place to post questions. But on the server, the server owns all the files. You can use php chmod to get permissions for all the users.

    chmod($file,0777);

    You also need to chmod the folder in question.


  •  

    Posting Permissions

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