this question is sort of related to my other post: Is PHP suited for large-scale Enterprise?
Most of the websites I have built have not been large and not dynamic in nature, but I need to make one now with a boatload of content on it. and I’m needing a little resource help where I can research something. I’m sure a lot of developers do this, and I know I need a massive database or 2 and the PHP knowledge I already have, but I’m just looking for a little guidance about how to do this the easiest way. It may actually sound like a stupid question and I might be over-thinking a bit. So…
Lets say I have 500 articles that I want to make available to a site visitor and give them the option to choose what they want to look at through nav menus and submenus. I want the same page to display to the user, regardless of what article is chosen. Assuming I’ve got the talent to write the HTML/CSS/JS to provide the meat and potatoes for the page layout and interaction, how does PHP play a part in that? Would I be right by saying the following?
If the home page had this content on it:
This website is a course in PHP coding. <a href="courseTemplate.php" target="_blank">Click here</a> to view course #1.
and I wanted all the course content to be displayed through the use of the “courseTemplate.php” file, how simple is that? I would assume that these types of things would be the results and the techniques to accomplish the goal, right?
=> a resulting URL that looks like this:
www.site.com/courseTemplate.php?id=1
=> storing all the text of the course material in one single field of a DB record. NOT storing the layout-oriented code (HTML, etc.) and echoing it out with the rest of the text.
=> making use of the GET() function somehow to pull the course’s text content out of the database.
Can someone show me a website that demonstrates this? I don’t think this is a very difficult concept to grasp, and I’m sure there are web resources available that show how this is done. I’m almost sure that most news agency websites do this, and I know for a fact that most forum software has this template technique written into it, regardless if SEO is included or not. Sorry for the basic nature of this question. I know some of my previous posts have been such where I’ve asked much more difficult questions than this. I have seen youtube tutorials on issues similar to this, but nothing pulled up by google really shows this in a very simplistic nature. thanks.
Adam