Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34
  1. #21

    Quote Originally Posted by ichiriki View Post
    mu display gyud xa og garbage values master..
    sample sa iya i display:

    ako gi gamit katong Content-Type: text/plain mao ni ang gawas..hahay..lisuda gyud oie..gkan man sad ka tc master noh??
    ichiriki,

    What is this file's format? Is this a plain text file or an MS Word document or something else? Do you want to download it or just display it in the browser?

    Yepp, I'm from TC...

  2. #22
    doc file na xa master...gusto lng gyud nko mu print xa sa browser..T__T

    tabang...

  3. #23
    Just use Content-Type: application/msword without Content-Disposition. I'm not sure if this works with other browsers such as Firefox and Chrome because this requires ActiveX.

  4. #24
    OT: taga tc ka ichiriki. . ? unsay kurso nimo. . ?

  5. #25
    Quote Originally Posted by ichiriki View Post
    doc file na xa master...gusto lng gyud nko mu print xa sa browser..T__T

    tabang...
    Unless your server is using Windows (i.e. running on IIS not linux), It's not possible displaying MS word docs correctly on browser via PHP.

  6. #26
    @ tin tin
    yup yup..com sci ko..

    di nlng nko pugson og print sa browser..hehe..kanang possible bah nga i open nko xa sa ms word as read only para d sad nila ma edit ang contents??..by just clicking on a link in my site??..

  7. #27
    Lisud man na mo print sa browser. Either you need an activex or i-download ang document.

  8. #28
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    browser is on the client side, which in some way impossible to handle. They cannot even modify directly on the said file you have. not unless if running in LAN/Intranet. Why not just convert your data into .PDF format and display it on your web? or if possible read your .doc file into XML format.

    sample code: expected to popup a Download dialog.

    <?php
    header('Content-type: application/pdf');
    header('Content-Disposition: attachment; filename="disfile.pdf"');
    readfile('origfile.pdf');
    ?>

  9. #29
    Naay nindot ani. Why not use openoffice api(api: The OpenOffice.org API Project)? Para maka-open ka ug doc file on a server-side and multiplatform.
    Last edited by eax; 09-07-2008 at 03:42 PM.

  10. #30
    @ mark - my db is operating via intranet and i dont want other users to edit the displayed doc file thats why i just want it to be displayed via browser..

    i think ill just use the code that prompts the user to open it in ms word/openoffice..
    can i automatically set the doc file to be read only when viewing it in msword/openoffice?..

  11.    Advertisement

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

 
  1. Display and store image in php/mysql.. HELP!
    By cutterpillow20 in forum Programming
    Replies: 18
    Last Post: 03-12-2013, 08:52 AM
  2. Error in PHP! Help..
    By cutterpillow20 in forum Programming
    Replies: 9
    Last Post: 10-06-2012, 06:10 PM
  3. Replies: 12
    Last Post: 10-30-2008, 01:24 PM
  4. Streaming/Playing videos in PHP..help.
    By ichiriki in forum Programming
    Replies: 3
    Last Post: 10-08-2008, 05:15 PM
  5. Search image and display in VB?
    By franzziss in forum Programming
    Replies: 9
    Last Post: 10-15-2007, 10:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top