Good Night,
This is a new version of URL-Shortener that don’t create random IDs to websites, it uses the auto-increment field and replace it to other base.
It was necessary to create two new methods
[code lang=”php”]
function convertDecimalTo($decimal,$newBase,$str,$letters) {
if ($decimal >= $newBase) {
$x = $decimal % $newBase;
$y = $decimal / $newBase;
$str = $letters{$x} . $str;
if ($y < $newBase) {
$str = $letters{$y} . $str;
}
return convertDecimalTo($y,$newBase,$str,$letters);
} else {
if (strlen($str) == 0) {
$str = $letters{$decimal} . $str;
}
return $str;
}
}
function convertBaseToDecimal($value,$newBase,$letters) {
$sum = 0;
$len = strlen($value);
$end = $len-1;
for ($x=$end;$x>=0;$x–) {
$sum = $sum + strpos($letters,$value{$x}) * pow($newBase,($end – $x));
}
return $sum;
}
[/code]
You can download the full new version to PHP4
URL Shortener (LURL) using auto increment field to generate the “TAG”
Hope you enjoy,
Matheus
trifecta box bet calculator
Also visit my blog post … cheltenham 2026 free bets
cash out forklaring
Feel free to surf to my homepage … spille Odds håNdball
nowe 175 Darmowych spinów Kasyno Online 15 zł
bonus
Люди подскажите Отец не выходит из штопора Жена в истерике В больницу тащить страшно Короче, только это реально спасло — нарколог на дом воронеж цены доступные Дал рекомендации и успокоил семью В общем, не потеряйте контакты — наркологическая помощь на дому в воронеже наркологическая помощь на дому в воронеже Звоните прямо сейчас Перешлите тем кто в такой же ситуации