Question on pulling lines from a file

mdsurf

Client
Регистрация
29.07.2011
Сообщения
69
Благодарностей
1
Баллы
0
Hello everyone,

I have a question about pulling lines from a file. I have created a wordpress sign up template and the way i have it now is when signing up for wordpress the template pulls a random email from a file and once the email is used it deletes it so it can't use the same email again.

Is there a way to prevent it from using the same email again without having to delete it? For example, if I have 5 emails in the file can ZP pull them one by one, ie email 1, email 2 email 3 etc and goes on down to the bottom of the list.
 

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Благодарностей
93
Баллы
28
You have to do a count of the lines in the file then > set a counter and loop to pull each line one by one.... there is some documentation in the forum somewhere.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
This is an example of loop. This tip won't work with multuthreading.
You can try to play with global counter for multithreading, I like make BU of file with accounts and remove them one by one, it does the trick with any count of threads.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)