Hey all.
Interesting problem here, at least for me ;--):
How to generate php pages using fopen() without having php code evaluated in
the written pages?
For example, if build_pages.php runs a db query and, based on the result
set, produces a test page using fopen(), how to avoid having php code
Hi Noah,
You seem to be just copying a file, if so
use this instead:
http://www.php.net/manual/en/function.copy.php
Or try to describe what you're trying to do and
what the you see as a problem.
Both fread() and fwrite(0 don't interpret the
PHP code in files that they are reading and
writing.
This may seem a little odd?
But what I want to do is use PHP/MySQL to generate static pages.
The applet I tinkering with is a sales worksheet and to start with will
consist of catalog/product maintience page, and a worksheet allow sales reps
work up pricing for customers. Eventfully this would
Sorry here's the code unattached:
?php
include(/home/sites/www.pickledbeans.com/web/html_header.php);
// include(/home/sites/www.pickledbeans.com/web/connect.php);
include(/connect.php);
echo body \n;
echo form method = \post\ action =\invoice.php\\n;
echo pSales Date:/p\n;
echo pinput
In my experience the speediest way was to create a temporary buffer to which
you append the html you wish to output and then write the buffer to file in
one go.
Prottoss
[EMAIL PROTECTED]
http://www.mediaminer.org/
On January 1, 2002 01:41 pm, David Jackson wrote:
This may seem a little odd?
5 matches
Mail list logo