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
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 do this I perhaps could
: 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
?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
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
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
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
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 string and I would
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
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
i have people upload a file from their computer but if my form comes
back with an error then they have to go select their file location
again. is there any way of saving that location so they don't have to
pick it again??? upload file [ c:/temp/picture.jpg ]
input type=File name=picture
Hi,
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 ) ?
Thanks
Rosen
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
To: [EMAIL PROTECTED]
Subject: [PHP] Saving to a file
Hi,
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 ) ?
Thanks
Rosen
14 matches
Mail list logo