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'));
?
Did you know?Explore Trending and Topic pages for more stories like this.
(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

DELETE rows based on content
I have a link in my rows

$bit="http://bit.ly/abcd";
$query = mysql_query("D

ob_ dynamic content
i was wondering about the potential to use ob to create a <div then remove it when the page

Guixt issue
Hello all,

We are experiencing the following problem with Guixt:

Some transact

unoconv doc convert to pdf code prob
PHP/5.3.1

Hi. I am trying to use this code to convert docs to .pdf utilizing unoconv. Howe

Forms Authentication and Refresh at Login page
Hello, When I try to press the Login button in my webapplication at my login.aspx page nothing h

php code generators
All

Whilst enjoying learning a new language i have come accross a number of free code generat

Table trouble
i have been reading the forum for a few weeks and decided to join. i like the format and the advice

Why use interfaces in PHP (OOP)
I am learning OOP in PHP and its been a pretty good learning experience so far. What I didn't unders

Is STL important?
I'm just starting programming and I've made it until the Standart Template Library. But the chapter

Count Session and Trigger Events
I am New in PHP, seeking a method to count logged users by counting the sessions or any …, is

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