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/ and comment off all ini_set
edit libraries/ and comment off all ini_set

in, maksure to set:

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

$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

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

otherwise for rvm, you may use instruction from here:

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...