RE: [PHP] Saving a dynamic file

2006-08-04 Thread Miguel Guirao
: MIGUEL ANTONIO GUIRAO AGUILERA [mailto:[EMAIL PROTECTED] Sent: Saturday, July 29, 2006 4:01 AM To: php-general@lists.php.net Subject: [PHP] Saving a dynamic file Hi!! I'm in the need of saving to a file a dynamic page that I generated from a PHP script, taking data from a table!! So far I have

Re: [PHP] Saving a dynamic file

2006-08-03 Thread Richard Lynch
?php ob_start(); //rest of code here. $output = ob_get_contents(); ob_end_clean(); file_put_contents('/full/path/to/some/file', $output); echo $output; ? On Fri, July 28, 2006 9:01 pm, MIGUEL ANTONIO GUIRAO AGUILERA wrote: Hi!! I'm in the need of saving to a file a dynamic page

RE: [PHP] Saving a dynamic file

2006-07-30 Thread Brady Mitchell
Depends on what you are planning to do with the file. Saving it to PDF is also possible, take a look at http://fpdf.org and http://htmldoc.org/. Brady -Original Message- Hi!! I'm in the need of saving to a file a dynamic page that I generated from a PHP script, taking data from a

[PHP] Saving a dynamic file

2006-07-29 Thread MIGUEL ANTONIO GUIRAO AGUILERA
Hi!! I'm in the need of saving to a file a dynamic page that I generated from a PHP script, taking data from a table!! So far I have figured out two options: 1) Save the page as a XML document so it can be editable in a word processor later. Do I have to write line by line until I'm done

Re: [PHP] Saving a dynamic file

2006-07-29 Thread Larry Garfield
Depends what you're saving it for. Either of those options works, although you'd probably find it easier to save to OpenDoc format rather than Word, as OpenDoc is just XML with compression (and used by every major word processor except Word). Saving just a plain XML file is the same as