Boa noite,
Na primeira versão do LURL (Tiny-URL), o usuário João, sugeriu que em vez de eu gerar um identificador aleatório, que poderia causar problemas quando o banco de dados se tornasse muito grande, eu poderia utilizar o campo ID, pois o mesmo é Auto Increment, e por isso ele se auto incrementa, não permitindo que existam dois campos com o mesmo identificador.
Já pensava em acatar a idéia do João a bastante tempo mas sempre estava com preguiça, até que alguns dias atrás uma amiga pediu ajuda para fazer um script para conversão de números entre bases. Após ajudar a mesma, ficou fácil. Só passar o código para PHP, modificar algumas funções antigas e pronto.
Foi necessário criar dois novos métodos importantes:
[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]
As demais modificações você pode ver aqui:
LURL (Tiny-URL) com Identificador apartir do ID em PHP 4
Assim que for possível vou fazer as alterações na versão para PHP5 onde é utilizado classes.
Matheus Bratfisch
PS: Vou criar uma página para o LURL na sessão Code em breve.
LURL (Tiny-URL) com gráfico e estatísticas para PHP4
LURL (Tiny-URL) com gráfico e estatísticas para PHP5
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.
gokken in noordwijk
Here is my homepage – blackjack casino online (Hilton)
betrouwbaar buitenlands cash or crash live casino (http://comienzo.nl/2026/05/11/gokken-hoe-Werkt-het-2026/)
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