Re: system commands
In article <0k99jvomk7vuuc udkjc1pmh7tkt13 1j5qm@4ax.com>,
yawnmoth <terra1024@yaho o.com> wrote:
[color=blue]
> also, is there a way i could have internet explorer, or whatever
> browser, download the output (as opposed to viewing it)?[/color]
Before sending any output, issue this header:
header('Content-type: application/octet-stream');
Most browsers will download the file as it's named on the server,
perhaps prompting the user first to make sure they want to download it.
If you want to set a different name, send this header as well:
header('Content-disposition: inline; filename="fooba r.txt"');
hth
--
Bulworth : funha@fung.arg | My email address is ROT13 encoded, decode to mail
--------------------------|--------------------------------------------------
<http://www.phplabs.com/> | PHP scripts and thousands of webmaster resources!
system commands
Collapse
This topic is closed.
X
X
-
Guest replied -
system commands
i know that system commands can be run using the system("command ")
function, but... some commands, such as mysqldump, require additional
input - input that can't be entered through the command line...
(atleast i don't think the password can be entered through the command
line with mysqldump - i could be wrong...)
also, is there a way i could have internet explorer, or whatever
browser, download the output (as opposed to viewing it)?
thanks in advance :)
Tags: None
Leave a comment: