SQL injection is one of the most common vulnerabilities in PHP application. Many developers will always be on guard against it. The common way to prevent SQL injection is to filter data input and to transfer data sent to the database. In fact, you should never trust the user to input data. In order to better understand SQL injection, the autho ...
Posted on Tue, 16 Apr 2019 16:09:32 -0400 by caster001
It is believed that friends who use Baidu Map as real-time positioning service will encounter this problem. When displaying the coordinate position, there will be time to obtain coordinate data or two coordinate points are too far apart, resulting in visual Marker movement like "zombie jump", jumping to show customers minute by minute ...
Posted on Tue, 16 Apr 2019 15:33:32 -0400 by ludachris
Before reading this article, you need to master: PHP grammar, object-oriented
In the process of completing the whole software project development, sometimes many people need to cooperate, sometimes they can finish it independently. Whatever it is, with the increase of code volume, it is written that "out of control", gradually "u ...
Posted on Tue, 16 Apr 2019 03:30:32 -0400 by nevesgodnroc
I. Introduction to nginx
Nginx (pronounced [engine x]) is specially developed for performance optimization. Its best-known advantages are its stability and low system resource consumption, as well as its high processing capacity for concurrent connections (a single physical server can support 30,000-50,000 concurrent connections), it is a high ...
Posted on Tue, 16 Apr 2019 03:24:33 -0400 by d3chapma
linux platforms such as centos
Because my development is based on Mac, I use Mac's environment configuration to learn.
Detailed configuration of php-fpm
This is a rel ...
Posted on Mon, 15 Apr 2019 20:18:32 -0400 by mattgleeson
Today, I learned from the President Tree and read the blog on the internet. The big guys have a clear idea. When I saw the code, I was shocked.~
What and what, l array, r array, rot array, blossom everywhere, so I manually manipulated a structure chairman tree.
First look at other people's ideas, and then I see the simplest c ...
Posted on Mon, 15 Apr 2019 16:21:31 -0400 by fatnjazzy
1. base64_encode - Encoding data using MIME base64
In order to enable binary data to be transmitted through a non-pure 8-bit transport layer, such as the main body of e-mail.
Base64 requires that every three 8Bit bytes be converted to four 6Bit bytes (3*8 = 4*6 = 24), and then add two higher bits of 0 to the 6Bit to make up four 8Bit bytes, ...
Posted on Sun, 14 Apr 2019 22:39:32 -0400 by egiblock
1. Time stamps for updating parent tables
If you want to update the timestamps of the parent table while updating the association table, you just need to add the touches attribute to the model of the association table.For example, we have two correlation models, Post and Computing.
use Illuminate\Database\Eloquent\Mod ...
Posted on Sun, 14 Apr 2019 16:21:31 -0400 by Yrogerg
In the last article, I just wrote about adding the shopping cart function. After deleting the products in the shopping cart and submitting the order, the stock reduction and the balance of the customer account are not perfect.
This article goes on to improve the previous one, which wrote about the function of deletion in shopping cart. In order ...
Posted on Sun, 14 Apr 2019 00:12:32 -0400 by anarchoi
My PHP is a little white one. Recently, in learning about php, it is often necessary to judge the return results of sql statements such as INSERT and SELECT. This has caused me a lot of trouble, after all kinds of attempts, put my summary here.1.INSERT statement
$sql = "INSERT INTO tableName VALUES(NULL,...)";
$result = mysqli_query($conn,$sql) ...
Posted on Fri, 12 Apr 2019 05:42:32 -0400 by tvance929