Question : How to import large list into phplist?

I 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?  

Answer : How to import large list into phplist?

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=preferences&uid= (...mysite.com/lists/?p=preferences&uid=41f0e3d602a3d253498... in this example).


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::registerError( "Couldn't get unique id in $safe tries, aborting." );
               return false;
            }
        }
        while( count( $result ) > 0 );
       
        $this->uniqid = $hash;
        return true;
       
    }
   


Thanks
Random Solutions  
 
programming4us programming4us