Click to See Complete Forum and Search --> : Hi, making a blog.


CammoDude91
10-23-2004, 08:19 AM
Im coding a blog script, currently just planning it really.
The thing is, the front page, where the posts are seen, has to be able to be viewed as a html file, without and other type of code, server side includes, or anything. I have to be able to edit posts, and have a commenting system, how do you guys think i should go about this?

I was thinking PHP and XML with XSLT for styling.. but how can i make a PHP script to turn XML with XSLT into HTML? I've looked for ways to write to XML documents.. but all i get is things discussing PEAR_xml or something. Im at a loss for XML.

If it was flatfile, would it still be possible to edit posts, because im used to just adding ones, not retrieving them.

Because it has to be HTML, I dont see how I could use a MYSQL database.

remember, ONLY the page where visitors see the blog posts has to be pure HTML.

mabye instead of using a flatfile txt, i could actually USE a html doc as the flat file..

suggestions, tips, expireance, please talk to me. also if there is any SIMPLE blogs i can look at, nothing but posting, commenting, and editing scripts, please tell me. all i can find are bloated up things with thousands of dollars worth of code.

edit: just thought of something. making all the posts different text files with number labels so eaiser to retrieve and edit! then compiling and showing them together as html...

Paul Jr
10-23-2004, 02:03 PM
It isn't possible to create a blog without server-side scripting. The most practical storage solution would be a database, such as MySQL, but sometimes that isn't available. Ryan (pyro) has created xBlog Lite (http://www.infinitywebdesign.com/software/xbloglite/), which is a flatfile-based blogging system. Instead of storing the entries and whatnot in a database, the actual files are created on the fly when you create an entry. I've never actually used it myself, but several people here have, and I've heard good things about it.

CammoDude91
10-23-2004, 02:20 PM
nono, i will use SSscripting.. I just cant have it on the front page that people look at. im mkaing a profile host for AIM and everything has to be solid HTML.. so the part u could see as a aim visitor would be html. il look at the one u showed me, thx.

Paul Jr
10-23-2004, 02:29 PM
That is possible, but it would be more difficult than usual. You would have to use your server-side language of choice to parse the main page every time you make an entry.

CammoDude91
10-23-2004, 02:31 PM
tahts what i was thinking.. sorta like recompile it after every.. uh... edit/addition.

Ben Rogers
10-23-2004, 03:07 PM
Originally posted by CammoDude91
nono, i will use SSscripting.. I just cant have it on the front page that people look at. im mkaing a profile host for AIM and everything has to be solid HTML.. so the part u could see as a aim visitor would be html. il look at the one u showed me, thx. You can link to PHP files in your AIM profile, since PHP can output (X)HTML.