PHP

PHP使用Redis的GEO(地理位置)

Redis has added support for GEO (geographic location) since version 3.2, but the earth is not a perfect sphere, and the deviation may be 0.5% in the worst case. Areas close to the poles are not supported. The valid longitude of the supported coordinates is from -180 degrees to 180 degrees; the valid latitude is from -85.05112878 degrees to 85.05112878 degrees. If it exceeds the range, an error will be reported

PHP code obfuscation processing ideas

Many people may want to modify such source code, but the source code is so incomprehensible. After getting such source code, I guess many people want to modify the source code

Laravel 8 - Scopes

In simple terms, laravel scopes are just a query, a query is used to make code shorter and faster. We can create custom queries using relationships or any scope

Laravel 8 - Traits

Traits are a mechanism for reusing code in single inheritance languages like PHP, traits are designed to reduce some of the limitations of single inheritance by enabling developers to freely reuse method sets in several independent classes living in different class hierarchies .

Use PHP to connect to FTP server

PHP provides a built-in function to connect to the ftp server using the ftp_connect() function. Using the ftp connection, you can easily transfer files via FTP. Here, I will show you how to connect to ftp server and ftp login in PHP