Previous Thread
Next Thread
Print Thread
Rate Thread
#102211 02/14/2001 1:01 AM
Joined: Jan 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 4
i have a who want to be a millionaire script on my site. a file is created with it called IP which writes the IP number of everyone who plays so they cant play twice. The problem is that the scores keep resetting and i think it has something to do with the IP file. Is there any ch mod thing i can do to maybe prevent the resetting of the scores? The guy who made the script says it a problem and is trying to fix it but i wanted to experiment with trying to fix it. The reason i thought it may have to do with the IP file is because for everyone who plays it writes their ip then score and somehow the list keep resetting every once in a while. The guy who made it said that it had something to do with people playing at the same time and trying to write data to it. Well if anyone has any suggestions please tell me

Sponsored Links
#102212 02/14/2001 1:19 AM
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
Sounds like the file may be corrupting. Make sure you're locking the file when writing to it.

Also, if you are storing multiple IP's, make sure you are appending the file, not writing over it, as that will erase the previous data.

--mark


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
#102213 02/14/2001 2:25 AM
Joined: Jan 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 4
how do i lock the file?

#102214 02/14/2001 3:33 AM
Joined: Jan 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 4
how do i lock the file?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)