Tema: Re: url gamyba su mysql
Autorius: Jornada Del Muerto
Data: 2009-09-14 16:44:06
    Arba tegul susiveda jiem ir alternatyvius pavadinimus, greiciausia 
zmogus sistemu su SEO prisiziurejo, kur kisa i URL lietuviskas raides ir 
t.t.. kurios pagal URL RFC nera palaikomos, o tiesiog servas jei supportina 
toki feature'a tada atrenka su tam tikru handlinimu, elementariai jei sukurs 
paprasciausia HTML su lietuviskom mano nuomuone neturetu veikti is viso 
jis...

    Ka tu matai tai tik SEO o ne realus failai, siaip MySQL kartais kai 
visai to nereikedavo kazka supainiojus su koduotem pervercia i ne 
lietuviskas raides, tai tuo nemaloniu dalyku, tavo atveju gali labai 
efektyviai pasinaudot supaprastinant visa parsinima :)

PS. Info netestuota praktikoje per daug, siaip prielaidos...


"Donatas" <rezus@splius.lt> wrote in message 
news:h8l5rp$fv$1@trimpas.omnitel.net...
> na tai pries rasydamas i DB apdorok tas reiksmes ir i atskira stulpeli.
> Gal pravers viena funkcija, kuria kazkada naudojau:
>
>
> public function getPermalink($eilute) {
>  $lt_sim = 
> array("Ą","Č","Ę","Ė","Į","Š","Ų","Ū","Ž","ą","č","ę","ė","į","š","ų","ū","ž","-"," 
> ");
>  $en_sim = 
> array("A","C","E","E","I","S","U","U","Z","a","c","e","e","i","s","u","u","z","_","_");
>
>  $eilute_en = str_replace($lt_sim, $en_sim, trim($eilute));
>  $permalink = preg_replace("/[^a-zA-Z0-9_]/", "", strtolower($eilute_en));
>
>  return $permalink;
> }
>
>
> "tobias" <oracullusTRINAM@yahoo.com> wrote in message 
> news:h8l161$nka$1@trimpas.omnitel.net...
>> kas zinotu mysql query sintakse pagaminti url title is duoto stringo?
>>
>>
>> "Abc'd EfgH ij & KL!" > "abcd_efgh_ij_kl"
>>
>>
>> aciu
>>
>