On Mon, 06 Aug 2001 10:02:33 -0400 Alexis Lee wrote:
What I understand you want is a way to generate pages with a customisable sidebar and main page on your home computer, which can then be uploaded to a static webspace.
Bingo, exactly what I want! No more no less.
You certainly don't need a database for this ($0.02: pg). You don't need to learn a 'web language' such as PHP for it; since you're going to be throwing text into files, C could do it. But web languages weren't designed by fools.
Yup, RDBMS is over kill for what I want.
You can build PHP as a CGI executable (which can then be used just like any UNIX CLI app), pipe your source through that, and upload the result. Alternatively, you could set up Apache/PHP on your home machine hosting the pages. Use wget to grab each page into export/, rename all to end in .html (for X in `ls export'; do mv $X ${X%.php}.html; done), then upload to your space.
getting more like it, although PHP does not ender itself to me
AFA designing your source goes, I'd suggest something like this:
html.php:
<? function htmlopen() { // html, head and body tags; set up for the sidebar content } function htmlsplit() { // close sidebar, open main page } function htmlclose() { // footer, close main page, close html } ?>
mainpage.php:
<? include_once('html.php'); htmlopen(); // sidebar content htmlsplit(); // main page content htmlclose(); ?>
That looks fairly simple to me, and it shouldn't be too hard to add extra sections to the layout later on. I learnt PHP from the reference manual, and I knew enough to write that after day one.
cat head body tail > index.html :o)
I think this is the most sensible suggestion sofar, I am just skeptical about PHP, my past history with it is not good (3 weeks trying (and failing) to install it last year!
The one I am surprised no one has mentioned is Slashcode!
Thanks
D
Alexis
"Don't say don't quote me, because if no one quotes you, you probably haven't said a thing worth saying" - KMFDM, Dogma "Imagine a world without hypothetical situations" - Bram Moolenaar `man` first, ask questions later.
alug, the Anglian Linux User Group list Send list replies to alug@stu.uea.ac.uk http://www.anglian.lug.org.uk/
http://rabbit.stu.uea.ac.uk/cgi-bin/listinfo/alug
See the website for instructions on digest or unsub!
===== -------------------- "We all know Linux is great... it does infinite loops in 5 seconds." Linus Torvalds