serving content to users
Posted: Sat Jul 07, 2007 11:27 pm
I wasn't quite sure where to put this, but it has to do with design(non visual, more or less content organization) and php, but on somewhat separate levels. I suppose I'll leave it up to moderator to move it if this isn't the right area.
The website I am working with is set up to use a series of includes to serve content to the user. For example, the website visual layout is stored in a file called index.php, and a php include would be called from where the website's actual content is supposed to be. So the page would become http://localhost/index.php?page=news.php. This was because the include was something like this: (This of course, ran the risk of remote injection, and was just sloppy to begin with.) The page would then show the news, with the rest of the page layout around it. I guess this was originally set up to easily change elements of the visual side, without changing every page on the site. Convenience over organization/security.
What I need is a better idea of how to better serve the content in general. Initially, my friend and I had no idea how many pages we would end up with, so we ditched the static approach. We really didn't know of any other way to do what we wanted. Are there any alternative techniques to serve content to users? What to large websites do? Where can I learn more about it?
Thank you in advance.
The website I am working with is set up to use a series of includes to serve content to the user. For example, the website visual layout is stored in a file called index.php, and a php include would be called from where the website's actual content is supposed to be. So the page would become http://localhost/index.php?page=news.php. This was because the include was something like this:
Code: Select all
include($_GET['page']);What I need is a better idea of how to better serve the content in general. Initially, my friend and I had no idea how many pages we would end up with, so we ditched the static approach. We really didn't know of any other way to do what we wanted. Are there any alternative techniques to serve content to users? What to large websites do? Where can I learn more about it?
Thank you in advance.