The deafening clamor in my mailbox suggests that almost nobody is interested in what I have to say about using PHP to automate weblog and web site content creation. That’s actually a good sign, in the sense that automated web site creation is one of the key tools we use against our competition in the Phoenix real estate market.
So: I think this might be of interest to Cheryl Johnson only.
Take a look, Cheryl:
<!--index.php--> <?PHP $thepath=$_SERVER['SERVER_NAME']; ?> <?PHP include ("http://$thepath/pageCap.php");?> <title>A Street</title> <?PHP include ("http://$thepath/pageTop.php");?> <?PHP include("links.php"); ?> <iframe src="main.php" frameborder="0" width="650" height="650" name="main.php" scrolling="no"> </iframe> <?PHP include ("http://$thepath/pageBot.php");?> <!--<p class="h1">A Street</p>-->
This is the index page for a top level page in a BloodhoundRealty.com slide show. Almost a year ago, I talked about how we do these, and I linked to a demonstration at the time — although all of our single-property web sites and most of our previewing and staging web sites and other photographic demonstrations are based on the Slide Show Marge technology.
Note that this is entirely modular. The “included” files named pageXxx.php are all standing components at the top level of the file server. They consist simply of the plain vanilla HTML needed to make that part of the page.
The index.php file and the other two “included” files are generated by the software at run-time and are stored together at that particular level of the hierarchy:
<!--main.php--> <p class="h1">A Street</p>
That’s the top level of the slide show. There can be a photo and descriptive text here, too.
And these are the subfolders linked below this level in the hierarchy:
<!--links.php--> <?PHP $thepath=$_SERVER['SERVER_NAME']; ?> <?PHP include("http://$thepath/pageLink.php"); ?> <p class="body" style="width: 600px"> <a href="2 A St/index2.php" target="main.php">2 A St</a> | <a href="4 A St/index2.php" target="main.php">4 A St</a> | <a href="8 A St/index2.php" target="main.php">8 A St</a> | <a href="main.php" target="main.php">Return to Home Page</a> </p>
Because we’re built out of an iframe, each one of these subfolders opens up as a slide show within the iframe. Each of those subfolders has its own variations of the files shown here.
I first wrote about this style of building web pages in August of 2006. At the time, a still-encloaked 4Realz wondered why I didn’t use the WordPress “Pages” technology instead. A WordPress “Page” is an excellent way to build a static page that anyone on Read more