Different markup for index.php

[email protected] (Stewart Lord)
Newsgroups php.webmaster
Message-ID <[email protected]>
Hi Hannes,

I want the ability to produce different markup for the beta home page. I don't want to modify the markup for the current stable home page or risk messing it up. Do you have any suggestions on how I should do this?

One idea I had was to copy index.php to index-stable.php, add a index-beta.php and then make index.php include the appropriate one based on the result of myphpnet_beta().

Thoughts?
Stew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.