hmmm....idk ryan, maybe its like...well what are the errors your getting?

CFMaBiSmAd

03-28-2007, 02:15 AM

So, have you looked at the content of your userpwd.txt file and compared it with what your code is doing when it reads this file? Also, have you echoed any of the data to see what is being tested and used in the program to find where in the code it is working and at what point it is not?

I see two problems in your code -

1) You are rewinding the file pointer after you fopen() the file in the register and login code. When you open the file for append in your register code, this will move the file pointer from the end of the file to the beginning of the file. This will cause data at the start of the file to be overwritten.

2) When you write to the file in the register code, you use a : as the separator. However, in all the other code you are exploding using ||, which is why I asked if you have looked at the content of your userpwd.txt file. The first step in troubleshooting is verifying that the data you are operating on is what you expect.

RyanRyan

03-28-2007, 02:36 AM

Thanks soo much I was looking over and it was saving it as user : pass THEN it tried to explode it like it was user||pass thank you. :)