INC1.net

Developer blog

Category: PHP

Number of hits to the WordPress database

March 22, 2019April 9, 2019 AlexanderMariaDB, MySQL, PHP, WordPress

To know the number of accesses to the database by your site on WordPress, you need to file the theme footer. php before the tag add the following code. <!–?php echo get_num_queries(); ?–> queries in <!–?php timer_stop(1); ?–> You will…

Read More→

PHP page generation speed

March 13, 2019March 18, 2019 AlexanderPHP

To measure the speed of page generation in PHP, insert the following code at the beginning of the script: // Breathing start time of page generation $start_array = explode(” “,microtime());$start_time = $start_array[1] + $start_array[0]; And at the end of the…

Read More→

Install Nginx, PHP, MySQL (Mariadb) on Ubuntu

March 6, 2019March 18, 2019 AlexanderMariaDB, MySQL, NGINX, PHP, ubuntu, WordPress

-Would you be kind to me in which direction to go? -In the famous you, – replied the cat. -I don’t know it. -So, in the unknown. In any case, it is known that in a known time you will…

Read More→

Intercept require output in PHP or execute PHP in file_get_contents

February 2, 2019February 22, 2019 AlexanderPHP

… So we’re introducing a plan-intercept. Only immediately prepare a report that the plan-interception no results. The Lord of the Rings: the Two Towers In order to load the contents of a file and display it in a certain place…

Read More→

Deploying Nginx + PHP on the Ubuntu server

December 13, 2018February 25, 2019 AlexanderNGINX, PHP

NGinx-is a quick and easy Web-server, to install it you need to enter several commands in the terminal: sudo apt update sudo apt install nginx php-fpm Check the health of the Web server: systemctl status nginx In this case, change…

Read More→

AJAX PHP JQUERY Transfer POST Request

November 21, 2018November 28, 2018 AlexanderAJAX, jQuery, PHP

In order to send a POST request to PHP script via JQUERY AJAX, create 2 files: jqtest.htm – in which will be the request form and JavaScript code to generate and send the request; jqtest.php – for receiving and sending the answer.…

Read More→

  • РусскийРусский

Recent Posts

  • Number of hits to the WordPress database
  • PHP page generation speed
  • Install Nginx, PHP, MySQL (Mariadb) on Ubuntu
  • How to configure SSH without a password with a key pair in Ubuntu
  • Intercept require output in PHP or execute PHP in file_get_contents

Archives

  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018

Categories

  • AJAX
  • Bot
  • Domains
  • Java
  • JavaScript
  • jQuery
  • JSON
  • MariaDB
  • MySQL
  • NGINX
  • PERL
  • pgAdmin
  • PHP
  • ubuntu
  • WebDriver
  • WordPress

RSS Entries RSS

  • Настройка сервера VPS WordPress под ключ
Copyright © All rights reserved.
Alexander Cheremnykh