Posts by Blamoo • 81 points
4 posts
-
1
votes3
answers9219
viewsA: json_encode returning "Malformed UTF-8 characters, possibly incorrectly encoded"
Since $data is an array, you can apply the function recursively with array_walk_recursive: array_walk_recursive($dados, function (&$val) { if (is_string($val)) { $val = mb_convert_encoding($val,…
-
1
votes1
answer295
viewsA: How to take data from a form and play in a PHP Array
It would not be easier to already bring this data in json format from your Android app and only read with json_decode? If not possible, do so with a regex: $linhas = file('POST_DATA.txt'); $ret =…
-
5
votes2
answers1064
viewsA: When to use cache system in PHP?
Cache is kind of abstract, there are several optimizations you can do on a system that fit well into that word, like: Cache of static pages Cache of database queries Cache of service responses Cache…
-
1
votes1
answer70
viewsA: Decryption problem
The idea of a hash is that it is irreversible even... So even those who have access to the database cannot know what the users' passwords are, only the password hash. You should run this function…