First of all Id like to say hi! since I am new to this forum.
I'd like to get some recommendations/suggestion on best practices when building a dynamic website.
In general I am developing a website where users can create their accounts. As soon as they activate it they can create their simple websites as user.domain.com. This is done using a dns wildcard plus some simple mod_rewrite redirections.
To be more specific when a person visits user's site - user.domain.com - he or she is redirected to the site root - domain.com - where the index.php file catches the "user" part and displays user specific content (based on the "user" part) from a database. I have already been told that some caching have to be involved in the process of delivering the content to the user's browser.
Users will have the ability to edit their sites (content in the database) and it's looks as well. The "content" part stored in the db is simply plain text and links to media files stored on the server, but there will be some serious css formatting and jquery visual effects.
My question is:
Is there any more sophisticated/faster and "valid" approach to resolve displaying user's pages to the audience?
What would be the best way to handle css in this case? Storing css values in the database, using user specific css files?
Users' sites will be generated from some default php template file which will be customized be modyfing css values and attributes.
If You could suggest some online tutorials/ articles on this matter I would be grateful, since I don't know where to look for such an abstract topics. I could also use any tips and comments.
Chris
I'd like to get some recommendations/suggestion on best practices when building a dynamic website.
In general I am developing a website where users can create their accounts. As soon as they activate it they can create their simple websites as user.domain.com. This is done using a dns wildcard plus some simple mod_rewrite redirections.
To be more specific when a person visits user's site - user.domain.com - he or she is redirected to the site root - domain.com - where the index.php file catches the "user" part and displays user specific content (based on the "user" part) from a database. I have already been told that some caching have to be involved in the process of delivering the content to the user's browser.
Users will have the ability to edit their sites (content in the database) and it's looks as well. The "content" part stored in the db is simply plain text and links to media files stored on the server, but there will be some serious css formatting and jquery visual effects.
My question is:
Is there any more sophisticated/faster and "valid" approach to resolve displaying user's pages to the audience?
What would be the best way to handle css in this case? Storing css values in the database, using user specific css files?
Users' sites will be generated from some default php template file which will be customized be modyfing css values and attributes.
If You could suggest some online tutorials/ articles on this matter I would be grateful, since I don't know where to look for such an abstract topics. I could also use any tips and comments.
Chris