Re: how to auto create a new page on the fly
| From: | Bobby Patel | Date: | Tue, 05 Aug 2003 22:22:56 +0000 |
| Subject: | Re: how to auto create a new page on the fly | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158365@lists.php.net to get a copy of this message | ||
also look into output buffering.
so you would then do these steps
1. start buffer
2. redirect all output to varaible $output
3. echo Static HTML code (from opening to closing <html> tags)
4. when completly done all output, the variable $output should have all the
html code
5. then using filesystem functions (fopen, etc...) dump variable into that
newly created file and then you are done.
If you have questions just post onto the list, but check the filesystem
methods and the output buffering methods (ob_start, ob_flush, etc...).
Bobby
"Dougd" <info@bigfresh.com> wrote in message
news:20030805172317.67423.qmail@pb1.pair.com...
> I would like to create a new page on the fly - basically having the PHP
file
> to export content into a new static HTML file and save it as content.php.
>
> Make sense?
>
> Appreciate your help and insights.
>
> -Doug
>
>