Creating static html files for ftp uploading?
Posted: Fri Apr 25, 2003 4:22 pm
Hello,
my challenge is this:
I'm toying with the idea of building a database and template system on my local machine, create static html files when I update and then (manually) ftp these new files to the server.
I have a free hosting with friends of mine, but their server is not running php.
(And no, I'm not considering changing my hosting - I see this as a interresting challenge
)
The question: What is the simplest way to achieve this?
I've thought of doing this in the 'usual' way - but instead of echo($each_string); I'd add $each_string to a temporary array and at the end loop through the array and write to file.
I'm wondering if there is any way of telling PHP at the beginning of the script to send the output to a new file instead of displaying the output in the browser.
Is there any function that allows this?
(I'd prefer run the script from the browser rather than a command line - to allow preview and a user friendly input form).
Any ideas?
my challenge is this:
I'm toying with the idea of building a database and template system on my local machine, create static html files when I update and then (manually) ftp these new files to the server.
I have a free hosting with friends of mine, but their server is not running php.
(And no, I'm not considering changing my hosting - I see this as a interresting challenge
The question: What is the simplest way to achieve this?
I've thought of doing this in the 'usual' way - but instead of echo($each_string); I'd add $each_string to a temporary array and at the end loop through the array and write to file.
I'm wondering if there is any way of telling PHP at the beginning of the script to send the output to a new file instead of displaying the output in the browser.
Is there any function that allows this?
(I'd prefer run the script from the browser rather than a command line - to allow preview and a user friendly input form).
Any ideas?