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)

229 Like 20 Dislike
Previous php-forum Next php-forum
Other php-forum

How to get variable value on next page
Hello friends
i am working on payentry page ..there i have this code.........

defining website tags
Hi,

What would be the best way to define tags for my site, such as website title, url etc.

Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:

QuoteBlah blah

Blah blah

etc
but when i ech

how do i make a string??
hey guys,
can someone please tell me how to put data from the glob function into a string

Need help with PHP/MySQL drop down menu
I need help on how I can implement a drop down menu which queries mysql database and output the avai

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

Am i doing this wrong?
Im pulling from an Oracle database some info... one of which is a field count_pnums which is a NUMBE

add text and number image
hi guys ..

ok see i want the user to add their name and pick a number then click get it and i

How to separate records and ORDER BY
Let say i have 100 records and displayed in one page, then i want to get the records from 50-100 and

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

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