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

Home » FUDforum » How To » Question About Adding Users From A Mailing List
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Question About Adding Users From A Mailing List [message #34829] Mon, 20 November 2006 13:58 Go to previous message
appscontent   United States
Messages: 33
Registered: November 2006
Karma:
Member
I admit this is more a question of how to code in PHP ...

I have an extract file in Excel format that contains the following 4 columns of user data:

1. user_name
2. real_name
3. email_address
4. user_password

I have been playing with some of the code that others have posted in the various forums here and found some code call "user.php". I can run this code from the command line as follows, and it successfully adds a single user for me:

bash-2.05a$ php -q user.php create user_name "real_name" mail_address 'user_password'

Question: How can I run this from the command line to read and loop through my extract file to add all my user?

I know that fudapi.inc.php has a function call "fud_add_user" that I probably should be using, but I am not a PHP coder so I could probably on get as far as below if I had to build from scratch:

<?php
include ("fudapi.inc.php");
$ret = fud_add_user();
?

[Updated on: Mon, 20 November 2006 13:58]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Just a few things
Next Topic: Failure in db.inc line 16
Goto Forum:
  

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

Current Time: Fri Nov 22 20:30:34 GMT 2024

Total time taken to generate the page: 0.03601 seconds