Archive for the ‘PHP’ Category

March 22, 2019

|

Tags: mariadb, mysql, PHP, WordPress

|

Categories: MariaDB, 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 also learn the time spent on processing all calls to the DATABASE.

March 13, 2019

|

Tags: PHP

|

Categories: PHP

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 script we write this: // Calculating the speed of page generation $end_array = explode(” “,microtime());$time […]

February 2, 2019

|

Tags: PHP

|

Categories: PHP

… 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 of a Web page, you can use file_get_contents, but if the file loaded in this […]

December 13, 2018

|

Tags: NGINX, PHP, update

|

Categories: NGINX, 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 the file /etc/nginx/sites-available/default server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.html index.htm […]

November 21, 2018

|

Tags: Ajax, JavaScript, jQuery, JSON, PHP

|

Categories: AJAX, 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. Listing of the file jqtest.htm: <div> <label for=”request”>Request: </label> <input id=”request”> <input type=”submit” value=”Send” onclick=”send();”> […]

0
1
image
https://inc1.net/wp-content/themes/vanguarda/
https://inc1.net/en/main/
#f0bd65
style3
scrollauto
Loading posts...
/var/www/inc1.net/
#
on
none
loading
#
Sort Gallery
on
yes
yes
off
off
off
en