Menu

saving a file

PhpRtf
keithh0427
2011-05-23
2013-04-30
  • keithh0427

    keithh0427 - 2011-05-23

    Is there a way to ask the user for the name and location to save the generated file?

     
  • nalberg

    nalberg - 2011-05-25

    $rtf->sendRtf('filename');

     
  • Steffen Zeidler

    Steffen Zeidler - 2011-05-27

    Did you mean as download? nalberg gave you the answer already.

    Did you mean how to save the file on the server?
    Then that's the way to do it:

    $file = '/path/to/the/document.rtf'
    $rtf->save($file);

     

Log in to post a comment.