is_binary() in PHP 5
private function is_binary($string, $testLength = 256)
{
$testString = substr($string, 0, $testLength);
$testString = str_replace(array(chr(10), chr(13)), '', $testString);
return !ctype_print($testString);
}
private function is_binary($string, $testLength = 256)
{
$testString = substr($string, 0, $testLength);
$testString = str_replace(array(chr(10), chr(13)), '', $testString);
return !ctype_print($testString);
}
So you’ve got a big .sql file to import, but phpMyAdmin is timing out after 300 seconds. You’ve set PHP’s upload_max_filesize to accept huge files, and the script timeout to some ridiculous figure. You’ve set every Apache directive you can find. But it still times out after 300 seconds.Here’s the answer. Go into /phpmyadmin/config.inc.php. Find $cfg[’ExecTimeLimit’]. Set it to something more than 300. Done.