Re: Creating an Entire .html page with PHP

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

 



On Mon, 2010-01-25 at 17:00 -0800, 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]
> 
> 


$fh = fopen("page.html","w");
fwrite($fh, $htmlcode);


Thanks,
Ash
http://www.ashleysheridan.co.uk



[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