Page 1 of 1
directory/file permissions
Posted: Fri Aug 31, 2007 12:41 pm
by kippy
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?
Posted: Fri Aug 31, 2007 1:22 pm
by feyd
What's the purpose of the directory and this stylesheet? Why not point to a script that can generate on-demand whatever information is needed?
Posted: Fri Aug 31, 2007 4:00 pm
by kippy
basically I want people to sign up and have the ability to modify a stylesheet for their home page(s), etc.
Posted: Sat Sep 01, 2007 4:45 am
by Kieran Huggins
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.
Posted: Sun Sep 02, 2007 2:17 pm
by kippy
I think I like the sound of option number two. I can store the stylesheet variables in a db table and then have the style sheet use php. I think I can figure that option out. Thanks for the advice.