Author: Lucas

shape
shape
shape
shape
shape
shape
shape
shape
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

Standard

Apache: Optimization – KeepAlive On or Off?

Apache is the most widely used web server in the world, so knowing a little about how it works in order to optimize it is very important. There are websites that need different configurations from the ones Apache has configured by default. Here we will discuss the use of KeepAlive. What is KeepAlive? KeepAlive allows

Standard

PHP set_time_limit() – Script Execution Time

PHP by default limits the execution time of a script to 30 seconds. If the script exceeds this time limit, the process is “killed”, in other words the process is terminated. To get around this problem there is the set_time_limit() function, which sets a new maximum execution time for the script, in seconds.   Example:

Standard

Increasing Max MySQL Connections

To increase the maximum number of connections that MySQL allows, you must edit the ‘/etc/my.cnf’ file. Log in to the server as ‘root’, and type the following command: vi /etc/my.cnf There should be a part of the file that looks like the example below: [mysqld] safe-show-database innodb_data_file_path=ibdata1:10M:autoextend datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock   Add the following variable below

Latest news

Latest news directly from our blog.