Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-20-2012, 01:07 PM   PM User | #1
Spudster
New Coder

 
Join Date: Jul 2012
Posts: 54
Thanks: 5
Thanked 0 Times in 0 Posts
Spudster is an unknown quantity at this point
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..
Spudster is offline   Reply With Quote
Old 08-20-2012, 10:10 PM   PM User | #2
Spudster
New Coder

 
Join Date: Jul 2012
Posts: 54
Thanks: 5
Thanked 0 Times in 0 Posts
Spudster is an unknown quantity at this point
I need help asap?
Spudster is offline   Reply With Quote
Old 08-20-2012, 10:28 PM   PM User | #3
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,150
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
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.
DrDOS is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:50 PM.


Advertisement
Log in to turn off these ads.