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
David Freeman wrote:
On Mon, 06 Aug 2001 10:02:33 -0400 Alexis Lee wrote:
AFA designing your source goes, I'd suggest something like this:
<snip>
cat head body tail > index.html :o)
This would work, except that you'd need files: 'head, split, tail' plus two files per page: 'sidebar, content'. For 6 pages, this is 15 files.
My way, it would be 7. It would also be easier to get extra candy in, like a datestamp on every file. (You'd have to split tail into tail1 and tail2, then cat tail1 >> product.html; date >> product.html; cat tail2
product.html)
Both methods could use make to good effect. It is indeed a wonderful program.
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 dox in the PHP manual were good enough for me to do it in maybe half a day... then it took me another 1.5 days to get all the modules I wanted compiled in properly (kept changing my mind).
You could, of course, just grab the mod_php RPMs from one of Mandrake's mirrors. It's bloated for what you want because it has everything compiled in, but then you're not going to be running a production site just an HTML factory.
Alexis