1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

PHP PHP RTF question

Discussion in 'Web Development' started by Jaybirddesigns, May 21, 2008.

  1. Jaybirddesigns

    Jaybirddesigns New Member

    I want to be able to echo a rich text format doc. Right now i can print a .txt doc but i want people to have the ability to upload a formated doc like word.

    Any ideas?
     
  2. Jaybirddesigns

    Jaybirddesigns New Member

    Ya that helped! "beijmanli spam alot"
     
  3. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    to echo means print to screen or printer.
    to upload means create a form.
     
  4. Jaybirddesigns

    Jaybirddesigns New Member

    I have the means to upload and all. I'm just trying to echo a RTF Doc like Word. I can echo a .txt but when i echo a word doc "When i change to mccain.doc instead of mccain.txt" it's all charactors. Can this be done.

    Thanks,
    Jason


    PHP:
    <?php
    $file 
    "http://jaybirdfolio.com/News%20Template/TodaysNews/MainNews/mccain.txt";
    $fp fopen($file"r");
    while(!
    feof($fp)) {
    $data fgets($fp1024);
    echo 
    $newtext;
    echo 
    substr($data,0,80); // Echos first 80 characters

    fclose($fp); 
    ?>
     
  5. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    nope RTF docs are world all to themselfs.
     
  6. Jaybirddesigns

    Jaybirddesigns New Member

    Is there a Open Source Editor where users can write text through a nice interface that has bold italic and such. Then save the file to a dir on the server. Then can be echo with the code i'm using?

    Thanks
     
  7. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

  8. Jaybirddesigns

    Jaybirddesigns New Member

    Thank you.