Wednesday, September 18, 2013

phpmyadmin blank page

due to hosting configuration,
some hosting don't allow use of ini_set.
to fix it,
edit libraries/session.inc.php and comment off all ini_set
edit libraries/common.inc.php and comment off all ini_set

in config.inc.php, maksure to set:


$cfg['Error_Handler']['display'] = true;
$cfg['Error_Handler']['log'] = true;
$cfg['Error_Handler']['gather'] = true;
$cfg['Servers'][$i]['auth_type'] = 'cookie';

//optional
$cfg['Servers'][$i]['extension'] = 'mysql'; //if mysqli isnt supported

//and off these:

//$cfg['Servers'][$i]['controluser'] = 'root';
//$cfg['Servers'][$i]['controlpass'] = '';



Wednesday, September 11, 2013

mac ruby iconv not found

#if you are using rbenv to setup your ruby, use this command:
CONFIGURE_OPTS="--with-iconv-dir=/usr/bin/iconv" rbenv install [version]

#to locate your iconv, use
which iconv

eg:
CONFIGURE_OPTS="--with-iconv-dir=/usr/" rbenv install 1.9.3-p448

otherwise for rvm, you may use instruction from here:
http://stackoverflow.com/questions/7829886/in-require-no-such-file-to-load-iconv-loaderror

Friday, September 6, 2013

php $_POST return empty

its most likely due to ini setting post_max_size.
make sure to set your post_max_size to higher than upload_max_filesize in php.ini,
other wise your $_POST variable or $_REQUEST variable might become empty...