Join us at IRC!
Ideas are far more powerful than guns.
Friday, May 25, 2012
Navigation
Members Online
Total Online: 33
Web Spiders: 15
Guests Online: 32
Members Online: 1

Registered Members: 70208
Newest Member: andresuran
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

PHP comment system that doesn't require mySQL

stealth-
Member



Posts: 999
Location: Eh?
Joined: 10.04.09
Rank:
God
Posted on 26-06-09 08:06
Hi,

I'm working on a website on mine (stealth-x.com), and before I go around uploading the rest of the site i'd like to include a comment system. However, due to hosting restrictions, mySQL isn't running on the server. I know it should be possible to use a PHP comment system that runs off of text files, but I havn't the time to learn PHP right now, and I couldn't find anything of use from google. If anyone knows any project like this, and could point it out, that would be awesome :)


The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealth-x.com
http://www.stealth-x.com
Author

RE: PHP comment system that doesn't require mySQL

Mr_Cheese
HBH Owner



Posts: 2468
Location: Brighton, UK
Joined: 30.11.04
Rank:
God
Posted on 26-06-09 08:56
you'll want to learn these php functions.

fwrite
fread
fopen
feof

that should do it.
Author

RE: PHP comment system that doesn't require mySQL

hellboundhackersok
Member



Posts: 353
Location:
Joined: 20.09.07
Rank:
God
Warn Level: 95
Posted on 26-06-09 09:23
I think you're looking for a Flat File Database ( http://www.google.com/search?q=flat+file+database )

Demonstration: http://www.designdetector.com/archives/04/10/FlatFileDatabaseDemo.php

Pretty easy to implement.

EDIT: Fixed URL, added demo



Paint.NET Pwns


Edited by hellboundhackersok on 26-06-09 09:26
Author

RE: PHP comment system that doesn't require mySQL

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 26-06-09 17:09
stealth- wrote:
but I havn't the time to learn PHP right now

Then how are you making a website :whoa:


Wisdom spared is wisdom squared.
Author

RE: PHP comment system that doesn't require mySQL

S1L3NTKn1GhT
Member



Posts: 468
Location: XXXX
Joined: 03.06.06
Rank:
God
Warn Level: 10
Posted on 26-06-09 17:45
ranma wrote:
stealth- wrote:
but I havn't the time to learn PHP right now

Then how are you making a website :whoa:


Its called X/HTML + CSS. :p . You don't HAVE to use php for a web site unless you want it to be more dynamic. I would suggest for this thought that you DO just buck it up and learn some PHP. Its not that hard and shouldn't take a WHOLE lot of time to get the hang of. Plus it'll give you a better background to move onto to making more dynamic web apps.


root@wtf.org#su - dumbass

Dude you're AWESOME!
-SystemMeltdown(MSN)
http://isexu.com
Author

RE: PHP comment system that doesn't require mySQL

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 26-06-09 18:28
S1L3NTKn1GhT wrote:
ranma wrote:
stealth- wrote:
but I havn't the time to learn PHP right now

Then how are you making a website :whoa:


Its called X/HTML + CSS. :p . You don't HAVE to use php for a web site unless you want it to be more dynamic. I would suggest for this thought that you DO just buck it up and learn some PHP. Its not that hard and shouldn't take a WHOLE lot of time to get the hang of. Plus it'll give you a better background to move onto to making more dynamic web apps.


I stopped considering javascblockedript-less and server-side-less websites as "making a website". I don't know why... I sorta forgot there's also plain websites. Makes me shiver


Wisdom spared is wisdom squared.
Author

RE: PHP comment system that doesn't require mySQL

S1L3NTKn1GhT
Member



Posts: 468
Location: XXXX
Joined: 03.06.06
Rank:
God
Warn Level: 10
Posted on 26-06-09 18:41
ranma wrote:
S1L3NTKn1GhT wrote:
ranma wrote:
stealth- wrote:
but I havn't the time to learn PHP right now

Then how are you making a website :whoa:


Its called X/HTML + CSS. :p . You don't HAVE to use php for a web site unless you want it to be more dynamic. I would suggest for this thought that you DO just buck it up and learn some PHP. Its not that hard and shouldn't take a WHOLE lot of time to get the hang of. Plus it'll give you a better background to move onto to making more dynamic web apps.


I stopped considering javascblockedript-less and server-side-less websites as "making a website". I don't know why... I sorta forgot there's also plain websites. Makes me shiver


Why? Theres alot of REALLY cool and still quite dynamic as far as interactive, galleries etc. Google around for freelance web designers and you'll find some pretty cool designs that use merely CSS,HTML, AJAX scblockedripting. For personal sites its really not much of a requirement to use PHP.


root@wtf.org#su - dumbass

Dude you're AWESOME!
-SystemMeltdown(MSN)
http://isexu.com
Author

RE: PHP comment system that doesn't require mySQL

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 26-06-09 18:46
http://w3schools.com/ajax/default.asp
AJAX uses javascblockedript <.<


Wisdom spared is wisdom squared.
Author

RE: PHP comment system that doesn't require mySQL

stealth-
Member



Posts: 999
Location: Eh?
Joined: 10.04.09
Rank:
God
Posted on 26-06-09 19:39
hellboundhackersok wrote:
I think you're looking for a Flat File Database ( http://www.google.com/search?q=flat+file+database )

Demonstration: http://www.designdetector.com/archives/04/10/FlatFileDatabaseDemo.php

Pretty easy to implement.

EDIT: Fixed URL, added demo


Awesome, thats exactly what I was looking for. Thanks :)

And I am planning on learning PHP, its just that I'd like to finish learning python and C before I move on to another languages.


The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealth-x.com
http://www.stealth-x.com
Author

RE: PHP comment system that doesn't require mySQL

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 26-06-09 20:16
Lol. I don't think you can easily finish those two languages. They can go quite in-depth. But sure, whatever.


Wisdom spared is wisdom squared.
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.