[suspicious - maybe spam] Re: Save page as text
| From: | Bogdan Stancescu | Date: | Thu, 30 Jun 2005 06:50:19 +0000 |
| Subject: | [suspicious - maybe spam] Re: Save page as text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217867@lists.php.net to get a copy of this message | ||
Hello Rafael,
You can try using output control functions (see http://ro.php.net/manual/en/function.ob-start.php) and, depending on whether you want to upload the file or save it on your server (I don't understand which from your message), serve the result with a "Content-type: text/plain" header (see function header()), or use fopen() and fwrite() to save it on your server.
Hope this helps,
Bogdan
rm2004mail-listas@yahoo.com.br wrote:
Hi, I have page with PHP and Javascript code and I need to a link or bottun in it to save its content to a plain text file. (I'm using an apache server in a machine running Windows 2003, and I want to be able to use this feature in IE 6 and Mozilla 1.7) I saw some information about how to do that with PHP, but I wasn't able to do it. Can some one help me with that? Thanks in advance, Rafael Magrin --------------------------------- Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora!