Top.Mail.Ru
? ?
PHP Development's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Monday, April 25th, 2005

Time Event
5:34a
One Problem
But there is one problem in the code what i have given in the previous entry.

it shows the entry with date, time, current mood, current music and even the number of comments in that post...
But the problem i encountered in case of LJ-Cut... It doesn't keep the LJ-cut contents hiden. It shows the whole document. Coz in the XML of the entry the code is like this <a name="cutid1"></a> then followed by the entry...

Even the XML given through RSS doesn't provide any option to find where the LJ-cut ends. Can anyone help regarding this problem?

Current Mood: Image confused
10:05p
HTTP Headers...
A little bit of guidance, if you please...

I'm writing an application which involves the download of files. These files could be of any file, and must be downloaded as an attachment, rather than displayed in the browser.

This is the code that I'm using:

header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"".$download_realfilename."\"");
header("Content-Length: ".$download_filesize);
readfile ("http://www.whatever.com/docs/".$download_filename);

This translates to:
Content-type: application/octet-stream
Content-Disposition: attachment; filename="Repton Passwords.txt"
Content-Length: 70

File contents, etc.


Firefox handles this in exactly the way I would expect. IE throws up an error: "Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."

What am I doing wrong (obvious MS jokes aside) that Firefox would work and IE would not?

Current Mood: Image frustrated

<< Previous Day 2005/04/25
[Calendar]
Next Day >>
About LiveJournal.com
Image