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

quick basic question, hopefully not dumb
I don't know how to search for this, so forgive me if it's been covered...

I often see an exa

Implementing Single Sign-On using SAML 1.1, x.509, LDAP in C#.net
Hi, I got a requirement from the client i.e implementing single sing on using SAML 1.1( LDAP &

How can i use [] tags instead of <> tags for profiles??
On my site im making ive made it so u can register, login and u have a profile which u can update..<

line breaks in between fetched file names
Hi,

I have this code:
Code: <?php
if($dir = opendir('files')){
while (($f

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j

server trace logs
could any one tell me from where do i get error logs in xMII??I want to check the reason for dtabase

$action = "insert"; //$action = $_GET['action'];
$action = "insert";
//$action = $_GET['action'];

why is this invalid type? I am

Deleted Delivery but material wont return
We deleted a delivery but the material its still pending.

We made a reverse goods movemen

Converting from one format to another
"I have got a date in DD/MM/YYYY but I need it in MM-DD-YYYY. Help!"

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