Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 31st, 2007, 12:07 AM   #21
Styx
Programmer
 
Join Date: Mar 2007
Posts: 39
Rep Power: 0 Styx is on a distinguished road
And why are you doing that?
Styx is offline   Reply With Quote
Old May 31st, 2007, 1:55 AM   #22
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 402
Rep Power: 3 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
As I replied to you once before I will refer you back to what I wrote...
Quote:
that is one of the design parameters of the bulletin board I'm working on.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Old May 31st, 2007, 3:55 AM   #23
xavier
Professional Programmer
 
xavier's Avatar
 
Join Date: Oct 2004
Location: .ro
Posts: 371
Rep Power: 4 xavier is on a distinguished road
Send a message via Yahoo to xavier
Aha, i didn't see that, sorry.
I guess you could use mutex for a file where you write all the other filenames and only one thread will access the file at one time, and then you're sure you have unique file names.

http://www.php.net/shm_get_var -- maybe it will be of some help
__________________
Don't take life too seriously, it's not permanent !
xavier is offline   Reply With Quote
Old May 31st, 2007, 4:26 AM   #24
Styx
Programmer
 
Join Date: Mar 2007
Posts: 39
Rep Power: 0 Styx is on a distinguished road
I know, why is that one of the parameters you are working with? Are there many bulletin boards that use flat files instead of databases? Is there a purpose why you're not using a database where one should be used?
Styx is offline   Reply With Quote
Old May 31st, 2007, 12:21 PM   #25
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 402
Rep Power: 3 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
If you want an explanation of the script just click on the link in my signature. The only other flat file database board that I've found is Ultimate PHP Board.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Old May 31st, 2007, 3:26 PM   #26
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I think you're beginning to discover why that choice was not optimal .
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 1st, 2007, 12:33 PM   #27
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 402
Rep Power: 3 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Not a question of optimal, it's a question of requirements. Every learning experience has its obstacles. I'm still reading up on database management so the solution may take me some time, but I've no doubt I'll come up with one.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Old Jun 1st, 2007, 12:46 PM   #28
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I recall the requirements from earlier posts. The question isn't whether or not you can come up with a solution. Also, there's no question that you can learn some things. The question is whether or not you made the right move to satisfy you ORIGINALLY expressed goals.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 1st, 2007, 1:09 PM   #29
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 402
Rep Power: 3 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Ya I could've used an already existent flat file database, but then I wouldn't have really learned as much. Because scripting the forum to work hasn't been that difficult. It's the database programming that has provided an interesting challenge. Since I can't use SQL databases because this board is intended for people who don't have access to an SQL database on their service. I only found two viable implementations which I've mentioned elsewhere in some posts. Both of them were beyond my own comprehension and I didn't just want to use somebody else's work without understanding what it was doing, because if an error occurred I highly doubt I could say how or why it did. GrimBB has its secondary purposes to others, but the only reason I work on it is to learn (I've actually learned some better CSS and HTML practices as a side bonus).
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Old Jun 1st, 2007, 8:41 PM   #30
Styx
Programmer
 
Join Date: Mar 2007
Posts: 39
Rep Power: 0 Styx is on a distinguished road
In almost every implementation of PHP, there's going to be some form of SQL database available, unless it's a really basic free web host.

And if it is, there are much better solutions for free web hosts available.
Styx is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
queue - shared memory programmingnoob C++ 4 Mar 26th, 2007 8:19 PM
message queue game programmingnoob C 19 Sep 29th, 2006 5:14 AM
Queue again zman2245 C++ 3 Sep 9th, 2005 1:07 PM
Queue. Array vs Linked List zman2245 C++ 9 Sep 9th, 2005 1:14 AM
Queuing and Queue Tables foxcity911 Other Programming Languages 1 Aug 6th, 2005 11:19 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:33 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC