reading select info from a txt file...

General discussions related to php

Moderators: macek, egami, gesf

User avatar
bezmond
Moderator
Moderator
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK
Contact:

reading select info from a txt file...

Postby bezmond » Sat Apr 12, 2003 2:40 am

HELP! I don't know where to begin with this,
I want to add a line to a txt file that will look like this:
111111 password 12
where 111111 is an ID assigned on registration, password is a randomly generated 6 digit number, and 12 is the access level they are assigned (by default this is 1).

Further to this, I want to (seperate script) read from the txt file and be able edit the rating only (username and password will never change). The level is an integer from 0 to 12.

The txt files name is "cert.txt"

Anyone who can help me with this will deserve a beer or four...

Regards,
Andrew

php-vikas
New php-forum User
New php-forum User
Posts: 164
Joined: Mon Apr 14, 2003 12:25 am
Location: India
Contact:

Postby php-vikas » Mon Apr 14, 2003 1:28 am

Hi

Why are you using file system for storing the userid and password detail. Is there any special reason for this?

I would recommend you to use the Database instead of file.It would work more batter then file system.

If you have any problem with database system then i can help you. after all this is the matter of beer... :lol:

I can help you with the system of file if you dont like the database.

Vikas Garg

User avatar
bezmond
Moderator
Moderator
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK
Contact:

Postby bezmond » Mon Apr 14, 2003 1:40 am

no, a server program called FSD reads from the txt file... I can do it in the database, I already have, I just need to be able to change the details of the txt file.

Andrew


Return to “PHP General”

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron