Question on pulling lines from a file

  • Автор темы Автор темы mdsurf
  • Дата начала Дата начала

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.
 
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.
 
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.
 

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