All Questions

9
answers

How to prevent SQL injection in my PHP code?

I developed a page in PHP for internal use of the company I work with and only very few people use it. You can use this page to do some queries, insertions, changes and deletions of a table in a MySQL database, however I believe that my PHP code...
asked on 03.02.2014 / 13:37
2
answers

What is REST and RESTful?

I always hear about REST and RESTful , but I can not tell which one is different or what it's for. It looked like something with Common.js style application architecture pattern.     
asked on 04.01.2015 / 05:01
4
answers

What is callback?

I see in many codes and even architectures the word callback, I see that it is in JavaScript functions. But what is it? How is it used? Why? I would like an example of actual usage.     
asked on 31.07.2014 / 00:14
4
answers

What is the difference between INNER JOIN and OUTER JOIN?

What is the difference between INNER JOIN and OUTER JOIN ? Can you give me some examples?     
asked on 19.02.2014 / 03:32
6
answers

How is computer randomization generated?

Questions How is computer randomization done? Which algorithm or mathematical basis the computer uses to generate these numbers? For example: In JavaScript I use Math.random() it me returns different numbers every time as fo...
asked on 12.03.2014 / 14:48
6
answers

Why should not we use functions of type mysql_ *?

A very common question is why should we stop using mysql_ * functions? For example mysql_query() , or mysql_connect() . I see that many people use them, or stop using them but do not know the real reason. Why should they stop bein...
asked on 18.12.2013 / 12:27
19
answers

How to find a postal address in the Post Office?

How do I search the post office for the details of an address using your zip code (similar to the address records we see on e-commerce sites)?     
asked on 15.12.2013 / 04:33
7
answers

How to protect the source code?

I'm thinking of making an application to sell, I'd like to know how to protect my source code to keep my software safe. I have seen that the Java bytecodes, stored in the .class file are easily converted back to .java using the...
asked on 25.02.2014 / 16:07
4
answers

What is the difference between the functions var name = function () and function name ()?

I see in some codes different ways of defining a function, but I do not know the difference if it exists. What is the difference between these functions? Function 1 function teste(valor){ return (valor > 1) ? true : false; } Fu...
asked on 18.04.2014 / 00:35
2
answers

Why do you say that using @ atus to suppress errors is a bad practice?

In PHP, we can suppress errors by using arroba before certain expressions. This can be seen at: # I've seen some hangouts on PHP and staff were criticizing the use of @ in PHP, for the thesis that an error should be han...
asked on 03.09.2015 / 17:17