Saving PHP output as a file


Posted on 16th Feb 2014 07:03 pm by admin

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 Code: $file=save_as_file(output('file.php'));
?
(I know the code above is wrong)

No comments posted yet

Your Answer:

Login to answer
229 Like 20 Dislike
Previous forums Next forums
Other forums

subtract 1 from value entered in text field
Hi

How do I subtract 1 from the vaue entered into a text field?

Thanks

newbie error
what is wrong with this code ?

<html>
<body>

<?

Can't shake the "Warning: include()" error
I've just uploaded my site to a new server and where I have PHP include tags in my HTML, the browser

Logic question
im wondering what's the best method to do the above list:

it is for alliance @ MMORPG game

LSB (PHP 5.3) problem with static value!
hello,

i'm having a problem. static::$text variable gets lost at some point. can someone plea

problem with GROUP BY and ORDER BY
i usually use this query to display the last 10 entries from a sql table:

Code: $query = &quo

Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related codi

Preg_match with an array
is there an away to use preg_match with an array?

i want to check a string with an array to s

firefox wouldnt stream mp3 files completely from my php page
hi everyone,
I have a php file trying to read and stream mp3 files. It works fine in IE but my pr

SMTP server...
I recently found a tutorial online on SMTP authentification for sending emails from webpages, here i

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash