JOJOManLV Posted October 1, 2012 Author Report Share Posted October 1, 2012 tākā man bija mysqli aizmirsu izdarīt vienu lietu(šito gēlu apgūsti tikai) mysqli_query($sql, "set names utf8"); viss nsotrādāja, bet ar htmlentitites kopā nevar likt savadāk nestrāda tad ir ķeburi ;) Quote Link to comment Share on other sites More sharing options...
F3llony Posted October 1, 2012 Report Share Posted October 1, 2012 http://php.net/manual/en/function.htmlentities.php Vari izmantot, iestati 3 argumentu uz UTF-8 Quote Link to comment Share on other sites More sharing options...
JOJOManLV Posted October 1, 2012 Author Report Share Posted October 1, 2012 http://php.net/manua...tmlentities.php Vari izmantot, iestati 3 argumentu uz UTF-8 o ir paldies... bet kāpēc htmlentities($str, ENT_QUOTES | ENT_IGNORE, "UTF-8"); viņš kodē visu nepieciešamo tekstu tā kā nākas? izvādās viss skaisti.. bet vai drošibā nebūs gļuku? Quote Link to comment Share on other sites More sharing options...
briedis Posted October 1, 2012 Report Share Posted October 1, 2012 Vispār tu saproti kāpēc tu lietot htmlentities? Quote Link to comment Share on other sites More sharing options...
JOJOManLV Posted October 1, 2012 Author Report Share Posted October 1, 2012 Vispār tu saproti kāpēc tu lietot htmlentities? lai neveidotos sql injekcijas un lai visādas pēdiņas un daži citi simboli pārveidotu html kodos? Kļūdos? Quote Link to comment Share on other sites More sharing options...
briedis Posted October 1, 2012 Report Share Posted October 1, 2012 Palasi, ko dara tā funkcija un padomā līdzi: http://php.net/manual/en/function.htmlentities.php Ieteikums: ieraksti google "php sql injections" Quote Link to comment Share on other sites More sharing options...
JOJOManLV Posted October 1, 2012 Author Report Share Posted October 1, 2012 Palasi, ko dara tā funkcija un padomā līdzi: http://php.net/manua...tmlentities.php Ieteikums: ieraksti google "php sql injections" nu okej... ar sql nedaduz pāršāvu pār strīpu...(bet tas nebija domāts kā vienīgais, es viņu lietoju kā papildus fīču lai palielinātu drošību) bet īsti neibraucu ko tu vēlies pateikt? nu viņš konvertē html simbolus šitādos šitādos te &... kodos(neiznu kā tos sauc) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.