![]() |
|
|
|||||||
![]() |
![]() |
![]() |
![]() |
Mark Forums Read |
| Programming :: Programming related discussions :: |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|
#3
|
|
![]() good job, |
|||||
|
#4
|
|
uhmmm...i have a similar php file in which i am to display an image file..it works..i just used fpassthru(); function to gather all the data in the file..is this still applicable in retrieving a doc file content??
heres my code in displaying a photo i uploaded:
|
||||||
|
#5
|
|
ive tried this code:
|
||||||
|
#6
|
|
|
||||||
|
#7
|
|
I think the headers are case sensitive. Try using Content-Disposition instead of Content-disposition.
![]() It's kindda weird though. According to the RFC, field names are supposed to be case-insensitive... EDIT: Try "Content-Type: application/octet-stream" diay. Lahi diay ang behavior sa imong browser kung application/msword. Sorry...
Last edited by simoncpu; 09-03-2008 at 04:09 PM.
|
|||||
|
#9
|
|
|
||||||
|
#11
|
|
its still the same...it will open it in my ms word..ive tried another code:
|
||||||
|
#14
|
|
nakuha na nko master...gamit nko tong code nga mu print og disorganized nga strings..
pero in efficient xa tungod i read nya per letter den iya i check kung \n char ba xa.. naa ra ako code:
|
||||||