Posts by Bruno • 57 points
8 posts
-
-2
votes2
answers68
viewsQ: Creating Mysql user safely
For security reasons, what privileges a database user should or should not have?…
-
0
votes2
answers32
viewsQ: passing class and variable in contruct
<?php private $pessoa; public function __construct(Pessoa $pessoa) { $this->pessoa = $pessoa; } As in the construction passes the class Pessoaand a variable???... as this variable in the…
-
0
votes0
answers249
viewsQ: Doubt - Generate 6 character random string in PHP
Guys, how do I generate a string like this: Z8Yjv.jpg I went to get a photo of a user here from Stack-Overflow and the name of the photo came like this. I had thought of something like this:…
-
1
votes1
answer76
viewsQ: Doubt about Null Byte in Bcrypt PHP
Well, I learned that PHP’s Bcrypt is vulnerable to Null Byte. What are the tests I have to do to see this vulnerability, and what are the conquencias of it??
-
1
votes3
answers84
viewsQ: how best to make a case_sensitive query
SELECT * FROM `table_users` WHERE BINARY nome = $nome AND senha = $senha Is that correct, or would it be bad practice?
-
0
votes0
answers41
viewsQ: Differences between ways to set the charset in Mysql
What is the difference between these 2 ways to set the charset in the communication with the bank? $pdo = new PDO("mysql:dbname=qualuqer_db;host=localhost;charset=utf8", "root", ""); and $pdo = new…
-
1
votes3
answers592
viewsQ: Doubt PHP function - mb_strlen
I understood how "mb_strlen" works, but I didn’t understand an example: <?php mb_strlen($string, '8bit'); ?> What would that "8-bit"???
-
0
votes1
answer469
viewsQ: What’s the difference between '(quotation marks) and '(quotation marks)?
Good guys, I want to know the difference of a value wrapped with '(quotation marks) and value without '(quotation marks). Ex: SELECT * FROM dados WHERE nome = $nome (valor sem uso das aspas) SELECT…