Jump to content

Saving PHP output as a file


gerkintrigg

Recommended Posts

I wondered if anyone knows how to save the rendered output of a PHP script as a file?

 

I have a script that creates dynamic PDF documents, but want to save it as a file, rather than render it to the browser. could I do something like

$file=save_as_file(output('file.php'));

 

?

(I know the code above is wrong)

Link to comment
https://forums.phpfreaks.com/topic/185451-saving-php-output-as-a-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.