Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11

    its still the same...it will open it in my ms word..ive tried another code:
    $filename = "c:\\upload\documents\cdn.doc";
    $handle = fopen($filename, "r");
    $contents = fread($handle, filesize($filename));
    echo $contents;
    although it displays all the contents of the file in the browser, it is dis-organized, there were no new line in the display..

  2. #12
    Bro,

    Gi-edit nako akong previous post. Hehe. Try "Content-Type: application/octet-stream"...

  3. #13
    master sad ako tawag nim0..^__^
    mu prompt ghapon xa og open file in ms word etc...

  4. #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:
    <? include('db.php'); ?>
    <?
    $doc_folder = 'file:///C:/upload/documents/';
    if (isset($_GET['name']) && basename($_GET['name']) == $_GET['name']) {
    $doc = $doc_folder.$_GET['name'];
    $handle = fopen($doc, "rb");
    if ($handle) {
    while(!feof($handle))
    {
    $letter = fread($handle,1);
    if($letter == "\n")
    {echo "<br>";}
    printf("%s",$letter);
    }
    }
    else
    echo "File Does not Exist";
    }
    ?>

  5. #15
    pero wala nay garbage na mugawas bro. . ?

  6. #16
    Quote Originally Posted by ichiriki View Post
    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:
    Ah... plain text diay ni imong file bro, dili MSWord. BTW, wala ko ka gets kung unsa nga prompt imo buot pasabot. Diba mo-prompt jud na ang browser kung mo download ka ug files?

  7. #17
    doc file xa bro pero plain txt lng ang naa sa sulod..hehe...kanang if ako to i load nga php file bah..imbis na iya iprint sa imu browser, mu prompt xa nga open file with,save file as etc...

  8. #18
    Quote Originally Posted by ichiriki View Post
    doc file xa bro pero plain txt lng ang naa sa sulod..hehe...kanang if ako to i load nga php file bah..imbis na iya iprint sa imu browser, mu prompt xa nga open file with,save file as etc...
    Ah... I thought mao na imong ganahan nga mo-prompt ug download ang browser... hehehe.

    Try ug Content-Type: text/plain unya ayaw na butangi ug Content-Disposition. Mo print out ra ang browser sa contents sa file...

  9. #19
    kana master...mao na ako gusto..knang mu prompt ra sa browser..

    @tin tin - naa ghapon mga garbage values..tungod cguro sa mga drawings2 sa msword..

    master..mu display sad og apil sa browser ang drawing features etc.. nga naa sa doc file kung kaning "header" ako gamiton??..

  10. #20
    mu display gyud xa og garbage values master..
    sample sa iya i display:
    ��M*��������������¤������„%��$���ì ������ì ������ z ������ì ������ì ���������������������������������� ����ì ������ì ������ì ������Î%������Î%������������ ��������������������������d �������������������������������������ì ������ì �� ����ì ������)&������ì ������ì ������ì ������ì ���� ����������¸������¸������¸��„��<��„��¸������ ¸������¸������<������¸������¸������¸������¤ ������¤������¤������¤������¤������¤������ÿÿÿÿ ����� ������������������������������������������������� �������������������������������������������������� �������������������������������������������������� �������������������������������������������������� �������������������������������������������������� �������������������������������������������������� �������������������������������������������������� �������������������������������������������������� �������������������������������������������������� �������������������������������������������������� �������������������������������������������������� �����������������������������PLS. KEEP THIS A ****ING SECRET Models Are representations of an important aspects in real world. Product itself, graphical representation, mathematical notations Representations of inputs, outputs, processes, data, objects and etc. Mathematical Model A series of formulas that describe technical aspects of a system Precise aspects of the system represented by using formulas or mathematical notation Temporal Events Events that occur as a result of reaching a point in time State Events Events that occur when something happens inside the system that triggers the need for processing Event Table a catalog of use cases that lists events in rows and key pieces of information about each event in columns Trigger Relationship – is a naturally occurring association among specific things. Identifiers -
    ako gi gamit katong Content-Type: text/plain mao ni ang gawas..hahay..lisuda gyud oie..gkan man sad ka tc master noh??

  11.    Advertisement

Page 2 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