Re: [PHP] Saving server side file to local machine with JS

2009-07-27 Thread Thijs Lensselink
Skip Evans wrote: Sorry, I should have been clearer. When PHP finishes creating the file I need one of the JS alert type windows to appear that says.. Your file has completed, would you like to save it to your machine? Like you get when you download a file. If I knew the JS code to

RE: [PHP] Saving a dynamic file

2006-08-04 Thread Miguel Guirao
Using the OB functions I got it done!! Thanks y'all!! Miguel -Original Message- From: Weber Sites [mailto:[EMAIL PROTECTED] Behalf Of WeberSites LTD Sent: Sabado, 29 de Julio de 2006 02:00 p.m. To: 'MIGUEL ANTONIO GUIRAO AGUILERA'; php-general@lists.php.net Subject: RE: [PHP] Saving

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

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

Re: [PHP] saving blobs to file system

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 21:12:25 +0100, Merlin [EMAIL PROTECTED] wrote: Hi there, I do have images inside a blob field which I would like to save to the hard drive. Now I cant find a fuction in saving the file. Usually I retrieve the data out of the blob, and output a header before echoing the

Re: [PHP] saving blobs to file system

2004-11-15 Thread Marek Kilimajer
Merlin wrote: Hi there, I do have images inside a blob field which I would like to save to the hard drive. Now I cant find a fuction in saving the file. Usually I retrieve the data out of the blob, and output a header before echoing the data. Basicly I do have the image now saved inside a

Re: [PHP] Saving to a file

2001-06-20 Thread Jason Stechschulte
On Wed, Jun 20, 2001 at 11:04:21AM +0300, Rosen wrote: Sorry for the stupid question, but i don't have at me a PHP manual and I want to save some string to file from PHP. Can someone tell me how ( with what function to do this ) ? fopen http://www.php.net/manual/en/function.fopen.php

RE: [PHP] Saving to a file

2001-06-20 Thread Warren Vail
Rosen, Depends on where you want to save the file. To get the manual http://www.php.net/docs.php. To Save to a file on the machine running the browser; make a form that outputs absolutely nothing except; header(Content-Type: application/octet-stream); header(Content-Disposition: attachment;