View Single Post
Old 04-04-2005   #1 (permalink)
Man1c M0g
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,104
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
Chicken & The Egg Problem!

I have hit a distinct logical snag when coding a new version of the main index, so I thought i'd approach you guys to see if I can find a solution...

As many of you know, the main biorust website runs on a simple include system. The main index.php has holes in specific bits which it fills with relevant content from tutorials.php, etc, as appropriate. All the relevant PHP instructions for each subsection are stored in its respective page (i.e. all the PHP code for showing a tutorials content is stored in tutorial_detail.php, etc). The main problem with this system is that I can't think of a way to make the HTML title in the main index.php dynamic. Since all dynamic PHP code is executed AFTER the HTML title tags it prevents dynamic action, and the problem becomes akin to something like the chicken and the egg. I know I can rewrite the entire system to overcome this little limitation, but its like cracking a walnut with a sledgehammer. Does anyone have a simple and elegant solution?
__________________
Man1c M0g is offline