Category: PHP

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Access-Control-Allow-Origin: Origin is therefore not allowed access

When the client application makes a request to a port other than the origin port, the server usually returns in its header which origins are allowed, so the browser issues the Warning in its console: How to solve the problem? Considering that the server uses PHP, to solve the problem add the following line at

Standard

PHP SQL Injection Example and How to Avoid It

SQL Injection is a technique for injecting malicious SQL code through loopholes in the application. This is a serious flaw that completely compromises the security of the site.   Example of SQL Injection   Let’s suppose that a hacker accesses a page in any store that has this security hole. A survey of this kind

Standard

PHP: How to Create and Read Cookies

Cookies are data exchanged between the browser and the server, used to store user preferences, login and so on.   How to create a Cookie in PHP? // Criando Cookies $nome = “masterdaweb”; $valor = “Cookie Criado com Sucesso”; $expira = time() + 3600; setcookie($nome, $valor, $expira); $name – Cookie name. $value – The value

Latest news

Latest news directly from our blog.