Re: Creating an Entire .html page with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 1/25/2010 8:00 PM, dealtek@xxxxxxxxx wrote:
Hi Folks,

I would like to create an entire .html page gathered from database
content mixed with html etc. and be able to save the page...


like:

--- save all this pre made content as .html page....

<html>
<head>
... stuff
</head>
<body>
... stuff
... stuff with database query results...
... stuff
</body>
</html>

Q: Is there a function that might help with saving the whole content as
.html page?



Thanks,
dealtek@xxxxxxxxx
[db-10]


rename(APPLIC_DB_FILE, APPLIC_DB_FILE . 'BAK'); //make a backup
$serTxt = serialize($dbTable);
if(!file_put_contents(APPLIC_DB_FILE, $serTxt, LOCK_EX))
die("<div style=\"color:red; margin:10em auto auto auto\">Major error in upDateDBTable(). Contact tech support</div>");

$dbTable = unserialize(file_get_contents(APPLIC_DB_FILE)); //Current application file



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux