Put it in the database directly. I love to skip such length steps. You can import those address directly by making a query.
Main Topics
Browse All TopicsI am switching to a new webserver and I need to set up my installation of phplist.
I have 500,000+ users on my lists... I have the users in a text file I am trying to import into phplist.
However if I try and import users in a text file with more than 25,000 users, I get the following message:
Fatal Error: File too big, please split it up into smaller ones
Does anyone know a way around this? I really don't want to upload 20 files...
Is this a setting I can alter?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yes, I thought of importing it directly into the database, but I wasn't sure I'd be able to manually replicate the phplist import process. Specifically, in the mysql database, the table phplist_user_user is where I would want to import the new addresses, however aside from the fields that I easily understand (id, email, confirmed, blacklisted, etc.), I see there is a uniqid field with values such as:
00035644e0354c52e2c73fa88b
and
00043e3bb76b5e039ee7becfa9
so while I'm confident I could import the users into this table, I'm unsure of how to populate the uniqid field and what the consequences would be if I were to leave it blank.
Thoughts?
This is what that id does :
Unique ID for User
A unique string is given to each user by phplist. This string is used in personalized URLs to confirm one's subscription (confirmationURL), to modify one's preferences, etc. In most systems, for instance, to reach the preferences pages for a given user, you paste this string after the following URL: ...mysite.com/lists/?p=pre
Now our concern here is "how-to" regenerate this Id for those emails which are to be entered into the dbase using import.
Okay so here is the function that generates that unique id. Take a look and you will know how to generate the unique id. You can then do it using operations on the db itself, and for that, you ll need to know a bit of sql.
private function createUniqueId() {
// create a unique id for the user (and make sure it's unique in the database)
$safe = 0;
do {
$hash = md5( uniqid( mt_rand( 0, 1000 ) ) . $email );
$sql = 'SELECT id FROM ' . self::$usertable_prefix . "user WHERE uniqid='$hash'";
$result = Query::queryToArray( $sql );
if( $safe++ > 10 ) {
ErrorHandler::registerErro
return false;
}
}
while( count( $result ) > 0 );
$this->uniqid = $hash;
return true;
}
Thanks
Business Accounts
Answer for Membership
by: fiboPosted on 2008-03-09 at 11:38:10ID: 21082198
B-((
The 20-times import of splitted files is most probably your best and most effective option...
Use a powerful edito to do that, eg ultra-edit for which you can get a trial version (a very good editor BTW, but this is not your present problem).
This will handle correctly huge files and allow you to easily make the split.