View Single Post
Old 09-26-2006, 08:53 AM  
mikpogi187
Registered User
 
Join Date: Feb 2006
Posts: 11
genearate pages

yes you can, the possible scenario there is that you have a admin side of your site wherein you re-generate .html and better .shtml file. Better if .shtml so that you can call an SSI includes.

for example upon pressing the button:

$content="Characters or conditions that you filter from mysql":

@unlink("{$filename}.shtml");
$page=fopen("{$filename}.shtml","w");
flock($page,2);
fputs($page, $content);
flock($page,3);
fclose($page);
chmod("{$filename}.shtml", 0777);

another alternative is using the SSI includes.
example

<!--#include VIRTUAL="dynamic.php"-->

where dynamic.php contains the script that extracts data from mysql.

I hope this help.

thanks,

gigamike

Quote:
Originally Posted by TheMaster
I want static html pages, with different info

eg on the html template values like model, website, country, etc should be replaced with values from a database or csv.
mikpogi187 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook