programmer group

Pthon of Express Bird API Single Number Query Interface Function

Before writing express delivery, there were only examples of php and. net on the official website, and I used the relevant functions of python package to trample a lot of holes before I came out and shared my method.Firstly, the picture above shows the results. For technical documents, please refer to Express Bird's official website api: Free Query Express Interface 100% Safety Guarantee Logistics Instant Query API - Express Bird Express company code link: https://www.kdniao.com/file/2019 Express Bird Interface Supports Express Company Coding....

viblo.asia

Sử dụng hai tài khoản Github trên cùng một PC

Bạn đang sử dụng song song hai tài khoản Github cho công việc và không nỡ bỏ rơi một trong hai, muốn chăm sóc cả 2 tài khoản, muốn chiếc pc của bạn có thể SSH tới 2 tài khoản Github cùng một lúc. Vậy làm thế nào thỏa mãn tham vọng này. Hãy đọc đến cuối bài viết để hiểu được rằng, chăm sóc cả hai là một việc khó khăn, tốt nhất cứ nên dùng một cái thôi cho khỏe. SSH đến tài khoản Github đầu tiên. Việc setup để PC của...

programmer group

The Way to MySQL Learning: SQL Scripting Language

Original Link: https://my.oschina.net/u/1772925/blog/600871 Using the MySQL database, you first install the MySQL database, and all the SQL scripts in this article are tested and executed on MySQL. Install Mysql server;Install the Mysql workbench client to manage mysql with a graphical interface.Install the phpMyadmin client to graphically manage Mysql via bs. 1. Mysql server operations:   Take...

viblo.asia

Mẹo về migrations Laravel

Đôi khi, đặc biệt trong các dự án lớn. Có thể bạn sẽ gặp phải những trường hợp tạo migration cho bảng, hoặc cột đã tồn tại. Thật là tốt, khi Laravel đã có một cách nhanh chóng để kiểm tra nó. Một ví dụ migration như thế này: public function up() { Schema::create('flights', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('airline'); $table->timestamps(); }); } Nếu như bảng flights đã...

akrabat.com

Slim4-empty: minimal Slim 4 starting point

To simplify creating a new Slim 4 project, I've created slim4-empty which does this for me. To use it: $ composer create-project akrabat/slim4-empty my-new-project and you're done! The my-new-project directory is created and contains Slim 4 along with a minimally viable public/index.php to get you going. You can then run it with the PHP built-in server: php -S 0.0.0.0:8888 -t public/ And navigate to https://localhost:8888 to view "Hello World" in your browser. What does it contain? Slim4-empty provides no structure to your project...

programmer group

How do you use bcrypt to hash passwords in PHP

Occasionally, I hear the advice of "using bcrypt to store passwords in PHP, bcrypt rules". But what bcrypt? PHP doesn't provide any of these functions, Wikipedia is chattering about file encryption utilities, and Web search reveals only a few different languages. Blowfish Realization. Now Blowfish can also get mcrypt through PHP, but how does this help in storing passwords? Puffer dolphins are a common password. They work in two ways. If it can be encrypted, it can be decrypted. Password requires a one-way hash function. What is...

programmer group

PHP Solutions for Authentication Codes Not Displayed

PHP Solutions for Authentication Codes Not Displayed: Step 1: Make sure the code is not written incorrectly!!! (You can test it by simply extracting the code you need) Step 2: Ensure that PHP painting technology extends the opening of the GD library; at php.ini set: extension=php_gd2.dll Step 3: Clear the cache: PHP's three functions about the cache (very important): ob_get_contents() - Returns the contents of the output buffer ob_flush() - Flushes the contents of the output buffer ob_clean() - Empty (erase) output buffer ob_end_flush() -...

programmer group

[Symfony Security] Implements OAuth login using Guard

Symfony Security Whatever authentication is performed, it is essentially a process of searching user class through credentials. Whether it is a traditional form (username/password) login or an API token, credentials are usually stored in the request object (header, body, query, etc.), so they are extracted from the request object. The process of finding user credentials is called Authentication. Symfony Security Security components are composed of four sub-components, which are independent of each other and can be installed...