Skip to content

URL Shortener using Auto-Increment field.

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

Chart to your URL Shortener with Statistics. PHP4

Published inAprendendoCodeMySQLphp

7,954 Comments

  1. Been using Betbolt UK since early this year and tbh it’s turned out better than I expected. Game library is quite wide — reckon there’s somewhere around 3,000 games in total. Pragmatic Play and Play’n GO dominate the lobby, with Big Time Gaming in there too. Sweet Bonanza and Book of Dead are still the popular picks, they load fine on the site. One minor gripe — the lobby search isn’t the most intuitive, takes a bit of digging to locate older or specific titles.

    The live table game section are powered by Evolution Gaming which basically means quality’s solid. Crazy Time, Lightning Roulette, Monopoly Live — all the Evolution game shows are covered. Real croupiers, proper studios, and no streaming issues I’ve noticed. Usually I drift between the slots and the live tables depending on my mood.

    Betbolt UK’s sign-up offer was a 100% match up to ?100 plus 50 free spins on one of their Pragmatic slots. The wagering requirement is 35x that’s nothing crazy by UK casino standards. There might be promo codes going — check bet bolt before you deposit since the offers change fairly often. Minimum deposit to get the bonus is ?10, standard stuff.

    Betbolt UK’s sportsbook is solid — Premier League coverage are well covered and they compare well against the bigger books. Live betting runs smoothly most of the time, but occasionally the odds can lag a bit during busy match times. Minor stuff really but worth noting.

    Withdrawals at Betbolt UK have been fine for me. Using a Visa debit and money’s come through in under 24 hours. The usual UK stuff — Visa, Mastercard, Skrill are all supported, plus crypto for those who want it. They’re licensed through the MGA so there’s at least some regulatory oversight. Support runs round the clock via live chat and response was fast when I had a question about a withdrawal.

  2. free spins casino no deposit usa, no deposit bonus codes usa and free
    spins 2021 and united statesn real how to earn money by playing mobile games (Angela) casino, or paypal online casino uk

Leave a Reply

Your email address will not be published. Required fields are marked *