Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP blog code
#11
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?
Reply
#12
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.
Reply
#13
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.
Reply
#14
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
Reply
#15
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]
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Reply
#16
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.
Reply
#17
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?
Reply
#18
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)