max_execution_time and WP_MEMORY_LIMIT in xampp

I wanted ti import demo data for this theme called jupiter in localhost usin xampp

and it said

so here is what u need to do


go to wp-settings.php in root of the site and put in the first row


define( 'WP_MEMORY_LIMIT', '96M' );

about the max_execution_time

go to folder xampp and then php find file php,ini

line 458 change it to 256

that’s it your done


Add Field to General Settings Page

if you need to add new settings in WordPress for easy use to your customer you can use this snippets

$new_general_setting = new new_general_setting();

class new_general_setting {
function new_general_setting( ) {
add_filter( 'admin_init' , array( &$this , 'register_fields' ) );
function register_fields() {
register_setting( 'general', 'favorite_inspired', 'esc_attr' );
add_settings_field('fav_color', ''.__('Favorite Inspired?' , 'favorite_inspired' ).'' , array(&$this, 'fields_html') , 'general' );
function fields_html() {
$value = get_option( 'favorite_inspired', '' );
echo '';

mysql_connect() Deprecated fix


Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead



MySQLiz – MySQLi support

1. Extract everything from archive. You will see “upload” directory.
2. Copy all from “upload” directory to your Opencart directory (via FTP or SFTP).
3. In the config.php and admin/config.php replace “define(‘DB_DRIVER’, ‘mysql’);” on “define(‘DB_DRIVER’, ‘mysqliz’);”