HOME > PHP > PHP Forum > อัพโหลดไฟล์แล้วมีเออเร่อครับ File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#18' is not a compiled character set and
อัพโหลดไฟล์แล้วมีเออเร่อครับ File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#18' is not a compiled character set and
File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#18' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
Warning: Cannot modify header information - headers already sent by (output started at E:\web_data\domain.com\httpdocs\xmemberx\admin\index.php:5) in E:\web_data\domaincom\httpdocs\xmemberx\admin\index.php on line 49
if ($debug) echo "divisores de f son:\n"; //no activar para numeros grandes
if ($debug) print_r(divisores($f)); //no activar para numeros grandes
echo "e=".$e."\n";
if ($e <= 1 || $e >= $f) die("ERROR: e debe estar entre 1 y f");
if ($debug) if (!esCoprimo($e, $f)) die("ERROR: e debe ser coprimo de f y estar entre 1 y f"); //no activar para numeros grandes
echo "d=1/".$e."*(1 mod ".$f.")\n";
echo "lo anterior equivale a buscar k entero: \n";
echo "d=1/".$e."*(k*".$f." + 1)\n";
// Calculate partial results for each factor, using each partial result as a
// starting point for the next. This depends of the factors of two being
// generated in increasing order.
$partial_results = array();
$part_res = $p;
$idx = 0;
foreach($factors as $factor)
{
while($idx < $factor)
{
$part_res = bcpow($part_res, "2");
$part_res = bcmod($part_res, $r);
$idx++;
}
array_push($partial_results, $part_res);
}
// Calculate final result
$result = "1";
foreach($partial_results as $part_res)
{
$result = bcmul($result, $part_res);
$result = bcmod($result, $r);
}