Well. I see your point.
The problem with my script was that I was trying to download the files form another directory.
So I decided to leave the files in the current directory and it seams to be working really well now.
Thanks a lot, anyway.
Renata
header('Content-type: application/txt');
header('Content-Disposition: attachment; filename="test.txt"');
readfile('test.txt');
this was my last try. still doesn't work. it opens the file - shows its content. Would there be an example of a working script for me to take a look?
Renata
It's not working the way I thought it would.
This is what I'm doing:
<?
header('Content-type: application/txt');
header('Content-Disposition: attachment; filename="arqs/test.txt"');
?>
Note that this file is not being generated here. It was previously uploaded to the folder 'arqs/'.
How do...
I need a way to allow my users to download a file wich is not compressed with one only click.
For example: I have a link to the file 'test.doc'. I don't want it to be opened when clicked, I want it to be downloaded. any suggestions?
Thanks,
Renata
Hi! I need to build the relational model of a database I already have. Does anybody know if there would be a software or so that would make it for me withou me having to rebuild the database? I found some software like CaseStudio, but i'd like somthing simpler, that would import the SQL script...
I need to build an array containnig all dates between two other dates (date1 and date2, witch are variables). My problem is: i don´t know very well how to manipulate dates.
that would have to be:
$date1 = 2004-07-30
$date2 = 2004-08-03
$array[0] = "2004-07-30"
$array[1] = "2004-07-31"...
I can´t have a hidden field, because I have several fields that submit the form. I have to send the name of the field to be focused only when this field is the one that submits the form...
Hi all!
I'm working on a form which the user reloads many times while filling it to change fields accaording to what the user fills.
My problem is that i need the focus to be on the last filled field when the page is reloaded.
I'm using this.form.submit(page.php).
I thougth of sending a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.