Stress testing WordPress

WordPress should behave the same, only dependent on your server resources. I hope you have a dedicated server because if not then you will experience severe outages and possibly cancellation of your hosting service. WordPress is merely databases and PHP, so amount of files will not affect its use. It is stable. You could have … Read more

Best way to import users, post and categories from an external database

Unless there is a core WordPress import filter available for your CMS ( see http://codex.wordpress.org/Importing_Content ) or a plugin for a CMS not covered by core WP ( see http://wordpress.org/extend/plugins/search.php?q=import ), or a Google search for your database schema doesn’t reveal anything, you need to roll your own importer. The best way is to write … Read more

How can I import users into WordPress?

A new file, import.php: <?php define(‘WP_INSTALLING’, true); // this is required. i forget why! include ‘/path/to/wordpress/wp-load.php’; include ABSPATH . WPINC . ‘/registration.php’; // wp_insert_user() $userdata = array(‘user_login’ => ‘jdoe’, ‘user_pass’ => ‘foobar’); $user_id = wp_insert_user($userdata); Check wp_insert_user() for other possible fields. Run update_usermeta() for any additional needed meta fields. (Including user level, though there may … Read more