directory/file permissions
Moderator: General Moderators
directory/file permissions
I am creating a system for users to register and once they register a directory will be created with a specific stylesheet file inside. My concern is permissions for files and directories. What should I worry about and are there any suggestions on how to make this a more secure system?
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
I would go one of two routes (both are virtually the same):
1. Change the apache config to parse CSS files with PHP (hint: .htaccess)
2. Point to a PHP file as your stylesheet. No one ever said a CSS <link/> tag had to point to a file ending in .CSS.
Either of those methods will be much easier than generating and maintaining a set of files per user.
1. Change the apache config to parse CSS files with PHP (hint: .htaccess)
2. Point to a PHP file as your stylesheet. No one ever said a CSS <link/> tag had to point to a file ending in .CSS.
Either of those methods will be much easier than generating and maintaining a set of files per user.