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 ti
Sorry here's the code unattached:
\n";
echo "\n";
echo "Sales Date:\n";
echo "\n";
echo "Sales Rep:\n";
echo "";
// Define table
echo "";
// Generate book listing
$result = mysql_query("SELECT pid,date,title,subtitle,author,amount FROM
catalog ") or die("Dis ain't right !!");
while (
list($pid
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?
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.
5 matches
Mail list logo