Downloadinng Images Problem

surferxxx

Virgin
Joined
Apr 4, 2003
Posts
9
For some reason all of a sudden for the last few days I have been asked to save the images I click on before they will open. I don't know why it started doing this, they used to just open up in another window with no prompting to save them. Is this happening to anyone else, if not what's going on with my computer? Thanks for the help.
 
Well I can make no promises really.....but if you find yourself in my vicinity drop me a reminder about this day and what has transpired and I'll be sure not to stop until you're fullfilled - whatever the activity.

Now hows 'bout you explain to me why I also get prompted for every image at literotica now as of the past two days....you know...just to grease the wheels on my spank machine.
 
I've tried downloading her myself (Image) .... I do have a couple cute pic of her body parts
 
Blue_Deuce04 said:
I've tried downloading her myself (Image) .... I do have a couple cute pic of her body parts
LOL

You and Texan are too funny :D

Maybe you should try uploading me instead
 
I suspect it is to do with the "Content Type" header (returned by the server when you ask it for an image) having been changed recently. Whatever it was before worked, whatever it is now doesn't. I think now it is "image/jpeg" for JPEG attachments, I don't know what it was before. Maybe it was "application/x-jpeg" or something, but that's just a wild guess.
 
I haven't had that problem, but I have had a problem when people hotlink, if the site that it links to wants to put a cookie on my computer, my protection asks me if I want to let it...
 
Hmm, I've done some googling and it appears that the Content Type thing shouldn't affect things like that, and in fact it is more likely to be a Content Disposition header, like this:

http://codewalkers.com/archives/phpcoding/6907.html

RE: force a download rather than display

by Anonymous on March 11 2004, 16:31


may be i didn't make it clear.

what i want to do is to rather than displaying the result of a DB query i'd like to force the browser (NetScape/IE)for the content (text) to be downloaded by presenting the file save/as dialog.

e.g.

result from query:

$res = 'this is a test';
echo ( $res);

so when the server returns this query result to the browser instead of displaying it on the screen i want the browser to present file save/as dialog.

i think it's as easy as that?

Thx.
lkj

-----------------

RE: force a download rather than display

by honcho on March 11 2004, 16:57


lkj, that's the question we're answering. Just put these headers at the top of the PHP page that does the querying and echoing.

Try this:
PHP:
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=test.txt");

echo "This is a test.";

If you create a page like that upon loading that page (via the address bar of your browser or a link to it), the save as dialog box should appear. Save the file and look at it. It should have one line that read: This is a test.
 
Back
Top