FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Basic scripted user manipulation
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Basic scripted user manipulation [message #34956 is a reply to message #33820] Mon, 27 November 2006 13:45 Go to previous messageGo to previous message
appscontent   United States
Messages: 33
Registered: November 2006
Karma:
Member
I have been able to create a single user by running the users.php script detailed earlier in this thread. It works like a charm and greatly assists those of use who are not PHP coders and don't know how to call the functions in fudapi.inc.php.

I have saved an Excel file of my users in CSV format. It is my understanding that I could use PHP's fgetcsv() function to fetch users one at a time and for each user perform the create user. In other words, I don't want to add users one by one as follows:

./users.php create pssc "Phillip Camp" pssc(at)noware(dot)com 'zxy123:'


I would like to read a file and create the users until I hit the end of the file.

Could someone assist me in adding this logic into users.php (see original script attachment)? I have about 2000 users I want to add as users in the next day or so.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Wikipedia plugin is not working for Russians
Next Topic: Bridge Fudforum <--> Elgg
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 18:53:37 GMT 2024

Total time taken to generate the page: 0.03863 seconds