Posts: 354
Threads: 11
Joined: May 2002
Quote:seph Wrote:Jes make one.
I'd rather have someone else's code to work with. Even trying to set up a table for it in the database I'm not sure which 'text'-type to use for the content field... just completely lost.
I tend to learn coding better when I have simple examples to work with...
CuteNews seems pretty good, I'll be using that on my redesigned site. It's straight PHP though, uses flatfile database rather than sql.
In a world without walls and doors, who needs Windows and Gates?
Posts: 720
Threads: 46
Joined: Oct 2001
Quote:CuteNews seems pretty good, I'll be using that on my redesigned site. It's straight PHP though, uses flatfile database rather than sql.
Even better.
Posts: 1,166
Threads: 62
Joined: Apr 2003
Quote:Piptol Wrote:CuteNews seems pretty good, I'll be using that on my redesigned site. It's straight PHP though, uses flatfile database rather than sql.
Even better.
Flat files are horrible and unsafe, man. SQL is the only way to go, pssh, can't believe you didn't know that.
am an asshole. Get used to it.
Posts: 2,020
Threads: 24
Joined: Jun 2002
nyeh? SQL is just a protocol. If you put a read lock on a flat db file properly, and lock the file while writing to it, it works fine, sometimes better than SQL. But you have to know what you are doing to make it read/write as fast. I imagine if this blog script is popular the creators probably did.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Posts: 749
Threads: 4
Joined: Jun 2002
Quote:Flat files are horrible and unsafe, man. SQL is the only way to go, pssh, can't believe you didn't know that.
What about if you don't have installed a database server in your host?
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Posts: 720
Threads: 46
Joined: Oct 2001
I know that as a database, SQL is ultimately superior... but it's just a blog. And security is a non-issue, so I'm not too concerned.
I'm more familar with files anyways from dos-coding, so its more my style.
Posts: 354
Threads: 11
Joined: May 2002
Wiz, did you find it or do you want me to mail it you?
In a world without walls and doors, who needs Windows and Gates?
Posts: 1,166
Threads: 62
Joined: Apr 2003
Well, another good thing about SQL is its speed and support for multiple users at the same time. With files, you have to create your own format, parse the data, and then do what you will. When more than one person views the page at the same time, there will be problems unless you put in a file locking handler, and that takes more effort than using an SQL database. Also, with file locking, the second person that visits the page will have to wait for the file to be free to use, a major inconvenience.
SQL beats flat files in every aspect except for some servers not having database support, which really isn't an issue.
am an asshole. Get used to it.