Posts by Waldir A. Pedroso • 40 points
3 posts
-
-1
votes1
answer418
viewsA: Apache gets too slow
I advise you to change apache for nginx ... or use Nginx as apache proxy. will gain more performance in both response and consumption. If it is not possible (depending on the application), you need…
-
0
votes3
answers53
viewsA: cleaning variables with preg_match()
Use the function preg_replace: $exemplo1 = preg_replace ('/[\/*\&%#\$+-]/', '', '/*João Paulo/'); echo $exemplo1; OUTPUT: John Paul Example 2: $exemplo2 = preg_replace ('/[\/*\&%#\$+-]/',…
-
2
votes3
answers38
viewsA: PHP integer value being modified for no apparent reason
You can use the sprintf sprintf('%08d', 1234567); output: 012345678 8d is the amount of digits you want