Permission writing without chmod()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Permission writing without chmod()

Post by Joe »

Is there anything else I could do to a dir/file to change the permissions apart from using chmod?. I noticed a few problems with different server setups and I need to repair it immediately.

Regards


Joe 8)
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

chmod, chown and chgrp are generally all you require to set permissions for directories/files.

Is this files/directories that your scripts are creating? you may want to have a look at umask().

Failing that you could also consider performing many of your file functions via FTP functions.
Post Reply