PHP

WordPress WP website directory security permissions

WordPress file read and write permissions and ownership play an indispensable role in the overall security of the WordPress website, so we need to ensure that reasonable settings are made as much as possible

Hide the management bar in WordPress

There are many ways to hide the management bar, and there are many reasons why you may want to hide the management bar. You can do this by adding some code in the theme's functions.php file

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

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