Tag: PHP

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Installing PHP 5.6 on Ubuntu 14.04, 16.04 and 17.04

Installing PHP 5.6 on Ubuntu 14.x, Ubuntu 16.x and Ubuntu 17.x has become easy, thanks to the ondrej/php repository (https://launchpad.net/~ondrej). How to install PHP 5.6 on Ubuntu 14.x, Ubuntu 16.x and Ubuntu 17.x ? To install PHP 5.6, simply execute the following sequence of commands: apt-get install python-software-properties add-apt-repository ppa:ondrej/php apt-get update apt-get install php5.6

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.