Hi
Is there any way at all to enable users of a php
script to create folders and files on linux/apache
servers?
Briefly, I have a folder called halliday with a
subfolder classes: and I want students from 5 classes
to register and login. Now two students from each
class will be granted permission to create folders
(e.g. class1 etc.. see below) and files (using mkdir +
fwrite), so it would look something like this:
/halliday/classes/class1
/halliday/classes/class2
/halliday/classes/class3
/halliday/classes/class4
/halliday/classes/class5
I have been struggling with this for two weeks now
without success. To cut a long story short .. the only
way I could do this is by manually changing the
permission on the folder 'classes' to 777 (or 0777) ..
ie READ + WRITE + EXECUTE for OWNER - GROUP - ALL
USERS. Now I think this is a security risk because
some students are worse than real life hackers and
leaving it like that is not really a good idea. What I
want is to create a group somehow and grant permission
to the group only .. not all users. Then when members
login the script will 'know' who has the right
permission. CAn this be done via php and mysql?
Thank you,
David
___________________________________________________________
Yahoo! Exclusive Xmas Game, help Santa with his celebrity party -
http://santas-christmas-party.yahoo.net/
The php_mysql group is dedicated to learn more about the PHP/MySQL web database
possibilities through group learning.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php_mysql/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/