Search found 3 matches

by section31
Mon Feb 14, 2005 2:10 pm
Forum: PHP - Theory and Design
Topic: Preventing multiple posts using a Flat File Database
Replies: 4
Views: 2180

FAILS 8O 8O . Well that seems to be somewhat primitive if you ask me. You think php would handle it better by waiting or soemthing.

So, after I implement flock into this script....can you rate the code on efficiency? Criticism is welcome.

Thanks guys.
by section31
Mon Feb 14, 2005 2:05 pm
Forum: PHP - Theory and Design
Topic: Preventing multiple posts using a Flat File Database
Replies: 4
Views: 2180

But going back to my question. What happens when 2 people access the same file when you use an excluseive lock? Will it fail? However, flock()'ing after fopen() is useless but has been (somewhat) fixed. What does that supposed to mean...wh is it useless...They do it on php's manual. Nevertheless, I ...
by section31
Sun Feb 13, 2005 5:09 pm
Forum: PHP - Theory and Design
Topic: Preventing multiple posts using a Flat File Database
Replies: 4
Views: 2180

Preventing multiple posts using a Flat File Database

I made a simple little script to log the ip/time of every person that posts something...EX. Login form or something. I've used scripts like this in the past to prevent brute force attacks on my logins, but I used a mysql database which makes things so much easier. I decided to implement the same met...