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

Home » FUDforum » How To » Help with fud_add_user
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Help with fud_add_user [message #34975] Wed, 29 November 2006 04:21 Go to previous message
appscontent   United States
Messages: 33
Registered: November 2006
Karma:
Member
Okay ...so I am not a PHP developer! I need help with the following ... since it doesn't add the users.

<?php
include_once("/home/mypath/FUDforum/include/GLOBALS.php");
include ("fudapi.inc.php");
$filename = "/home/my/path/testusers.txt";
$fh = fopen ($filename, "r") or die("Could not open file");

while (!feof($fh))
{
$fields = fgetcsv($fh, 20);
$userid = fud_add_user($fields, &$errcode);
}

fclose ($fh);
?>


The csv file contains the following data:

user1,password1,email1(at)noplace(dot)com,name1
user2,password2,email2(at)noplace(dot)com,name2
user3,password3,email3(at)noplace(dot)com,name3
user4,password4,email4(at)noplace(dot)com,name4
user5,password5,email5(at)noplace(dot)com,name5


[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: fudForum within a trusted intranet
Next Topic: How to convert all FUDforum from ISO-8859-1 to UTF-8?
Goto Forum:
  

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

Current Time: Thu Nov 21 21:23:19 GMT 2024

Total time taken to generate the page: 0.04347 seconds