Qbasicnews.com

Full Version: PHP blog code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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.
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.
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.
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.
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? [Image: soupson.gif]
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.
Wiz, did you find it or do you want me to mail it you?
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.
Pages: 1 2