great link
thanks for the url Jason, that gives me a great start...
now here's the $64000 question !
i have edited the script as below, passing in the appropriate html, as a string, line by line with line breaks,building it up slowly so as to recreate a blank page with the appropriate layout.
<?php
$filename = 'testnewpage.php';
$Content = "".'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\r\n".
'<html xmlns="http://www.w3.org/1999/xhtml">'."\r\n".
'<head>'."\r\n".
'<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\r\n".
'<title>Page Title</title>'."\r\n"."";
echo "open";
$handle = fopen($filename, 'x+');
echo " write";
fwrite($handle, $Content);
echo " close";
fclose($handle);
?>
You get the idea.
is what i have achieved so far the best way to achieve my objective ?
thanks for your support