Posts by Felipe Horizonte • 29 points
4 posts
-
-2
votes3
answers781
viewsA: Problem reading UTF-8 files in PHP and right in the browser
To convert a file to utf 8, use the function mb_convert_encoding()
-
1
votes3
answers67
viewsA: Regex is not working with file_get_contents
I found a better solution to the problem! Just convert the file to UTF-8 using the function mb_convert_encoding()! Follow the code below: $conteudo = mb_convert_encoding(file_get_contents($chart),…
-
2
votes3
answers67
viewsQ: Regex is not working with file_get_contents
I have a problem about regex and I come here to ask you for help. I’m trying to get a file value .chr by regex, but it does not return any match, I find it strange because I have tested in regex…
-
-1
votes2
answers78
viewsA: Autoload does not find PSR-0 class
The autoload syntax is wrong try to use this: "autoload": { "psr-4": { "SON\\" : "vendor/", "App\\" : "" } }, Alias, it is not recommended to use psr-0 as it has been discontinued. It is best to use…