Current location: Hot Scripts Forums » Programming Languages » PHP » Making a blog


Making a blog

Reply
  #1 (permalink)  
Old 05-24-04, 06:51 PM
Iriel Iriel is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Pittsburgh PA
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Making a blog

Simply put, I'm looking for some way to create a blog with PHP and XML. I'm trying to shy away from MySQL due to connection settings and transferring between two servers. If anyone has good links or advice on this, let me know.
Reply With Quote
  #2 (permalink)  
Old 05-24-04, 06:54 PM
nekeno12 nekeno12 is offline
Wannabe Coder
 
Join Date: May 2004
Location: CO
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
I'm pretty sure there's a lot of freeware out there that will allow this.

Try http://www.cgi-resources.com/
Reply With Quote
  #3 (permalink)  
Old 05-24-04, 07:34 PM
Iriel Iriel is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Pittsburgh PA
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Well I'm mostly looking for tutorials on how to code a blog like this by hand rather than modifying someone else's script (this is for a class and must be original). The main 4 scripting languages that I can use are ASP, JSP, PHP, and ColdFusion.
Reply With Quote
  #4 (permalink)  
Old 05-24-04, 10:14 PM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

I am planning to develop my own blog system based on XML, too.

In my case, I have already developed one with MySQL, but because of MySQL's lack of multibyte code support, I am creating an XML version by replacing all the database queries with XSLT templates so that it can be truly UTF-8-capable.

What's your choice of XML derivative? I thought of using DOM, but it is slow after the archive gets no longer small, and I thought SAX was not flexible enough.

One thing I am doing is chop up all the archives into each month. That way, there is not going to be a single file that is too large to handle, but search in the entire entries became a headache - I'll perhaps take that out of the list.

Anyways, it's probably a good idea for you to see what others have done with database and decide what features you want, etc, then try developing it with XML derivative of your choice. When you don't know exactly what you want, it's very difficult to develop anything, you know.

There is a book called Professional PHP4 XML from Wrox. I thought it was a good intro to XML in PHP. You may want to check it out: http://www.amazon.ca/exec/obidos/ASI...226016-3233169

Also, one thing you should be aware is that XML in general is slower than database, especially for such scripts as blog where queries are not too complicated. For this reason, if your sole concern about using the database is its config (because you can easily format all entries in XML to export from the database - or simply use standard SQL - for transferring between servers), you may want to rethink about that.

Good luck with your project then. =)
__________________
Blavv =|
Reply With Quote
  #5 (permalink)  
Old 05-25-04, 04:50 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
well, XML is good and everything ..

but I have a suggestion tho, have you heard about SQLite?
it's a database engine (NOT server) that comes with php5, it uses files to store data .. and also support SQLs!
just like MySQL! this SELECT statament will run fine with SQLite:
PHP Code:

//fetch some rows

$fetch sqlite_query($link"SELECT * FROM news WHERE id='$id';"); 
of course this is a simple query, but so far I could make complex queries with Joins and aggregate functions!
SQLite is amazing ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #6 (permalink)  
Old 05-25-04, 04:54 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
well, I am a happy user of Pivot which is a PHP/XML weblog system. you could check out how that is done.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
blog community ibolui Script Requests 1 07-22-04 03:30 AM
What script to create a blog aggregation service bunder Job Offers & Assistance 1 04-16-04 05:31 AM
need to find a blog aggreagation script... bunder Script Requests 0 04-15-04 01:05 PM
Give each user a blog. MTO Script Requests 1 03-03-04 05:35 PM
Becoming a blog host - need feedback beachgerl Script Requests 2 02-29-04 10:46 PM


All times are GMT -5. The time now is 10:36 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.