» page 4

Sort articles by: Date | Most Rates | Most Views | Comments | Alphabet

Monolog-PHP log class library introduction

Author: bamboo06 on 2-12-2018, 17:47, views: 1097

0 Monolog is a full and easy to expand log log library under php. There are many well-known php frameworks including Symfony, Laravel, CakePHP and so on that have Monolog built in. Monolog can send your logs to files, sockets, inboxes, databases and various web services.
Monolog-PHP log class library introduction

Monolog follows the PSR3 interface specification and can be easily replaced with other log classes that follow the same specification. Monolog has good extensibility. Through the interfaces Handler, Formatter and Processor, you can expand and customize the Monolog library.

Category: PHP Scripts / Plugins


https is the trend of the development of the world's websites

Author: bamboo06 on 27-11-2018, 14:27, views: 1024

0 HTTPS This is a lot of websites that are used to protect user data. It is enabled when the user logs in. More often, due to trade-offs in performance overhead, basically all data is transmitted unencrypted. Multimedia files, especially streaming media, seem to have no security problems in plain text transmission. However, they actually have very serious consequences, such as being maliciously hijacked traffic, and inserting a small advertisement on the page. The visitor also thought that this was the advertisement provided by the interviewed station. If it is a normal advertisement, it can be tolerated, but pornographic gambling false medical advertisements abound. This is certainly not a good user experience.
https is the trend of the development of the world's websites

So, in our particular environment, it's okay to focus on HTTPS, not to mention deploying HTTPS for the purpose of protecting user privacy.

Category: Internet


Website status code

Author: bamboo06 on 14-11-2018, 18:19, views: 1364

2 404, 503, 301, the website status code is the most common, but as a webmaster, you should have more website status codes in order to respond to various errors in the website and fix errors faster. Here are some website status codes that Yang Xiaojie blogs for everyone.
Website status code

100 Continue
The initial request has been accepted and the customer should continue to send the rest of the request. (HTTP 1.1 new)
101 Switching Protocols
The server will switch to another protocol in accordance with the client's request (HTTP 1.1 new)
200 OK
Everything is ok, and the answer to the GET and POST requests is followed.

Category: Internet


Drag and Drop Drag and Drop for HTML5

Author: bamboo06 on 11-11-2018, 21:41, views: 1179

1 Drag & Drop is a common feature that grabs an object and drags it to another location. In HTML5, drag and drop is part of the standard, and any element can be dragged and dropped. In the past, we used the Mousedown, Mouseove, Mouseup and other events of the mouse to constantly acquire the coordinates of the mouse to modify the position of the element. Now the html5 native Drag & Drop event (DnD) is convenient and the performance is improved.

Internet Explorer 9+, Firefox, Opera 12, Chrome, and Safari 5 support drag and drop.

Category: HTML5


Use javascript to realize related operations of adding to cart

Author: bamboo06 on 10-10-2018, 16:53, views: 1227

1 There are many ways to add items to the shopping cart. The usual way is to click the “Add to Cart” button and you will be redirected to the shopping cart. In the shopping cart, you can click the “Billing” button to settle. Today I will introduce you to a more friendly solution.
Use javascript to realize related operations of  adding to cart

By default, the shopping cart is hidden and invisible. When the user clicks the Add to Cart button, the item information will be added to the shopping cart. The shopping cart will appear as a button in the lower right corner of the page. Clicking the button will expand the shopping cart. , display the product information in the shopping cart, and also delete or settle the items in the shopping cart. Users can also temporarily close the shopping cart to continue shopping.

Category: Javascript / Plugins


Building LEMP environment in CentOS 7.x

Author: bamboo06 on 3-04-2018, 23:29, views: 24127

0 Recently, due to project requirements, the server was upgraded from CentOS6 to CentOS7, and the corresponding PHP version was also upgraded to PHP5.6. We are familiar with a one-click installation package for LEMP environment, but in this article we will install each component module separately and build a complete PHP operating platform.
Building LEMP environment  in CentOS 7.x

The LNMP environment we often refer to is the Linux/nginx/MySQL/PHP combination. What is LEMP? Actually, Nginx is pronounced Engine-X = E. The LEMP package is made up of Linux, nginx, MariaDB/MySQL, and PHP. It seems that LEMP and LNMP are the same. Now, it is customary to call LEMP in the industry. MariaDB is a branch of the community-driven MySQL database. It has more features and better performance, so we installed MariaDB under CentOS7. I already installed CentOS7. Now I just need to install Nginx, MariaDB and PHP.

Category: PHP Scripts / Apps


Reveal.js a - framework for doing web presentations

Author: bamboo06 on 3-04-2018, 13:57, views: 5386

6 Reveal.js is a tool that helps us easily create beautiful presentations using HTML, which is our common PPT slideshow. Reveal.js does not depend on any other javascript library and is an independent javascript plugin library. It offers a variety of slide transitions and is a great online demo library.
Reveal.js a - framework for doing web presentations

Reveal.js also has many advanced features, complete installation, some of the functions of reveal.js, like external Markdown and presentation notes, need the presentation to run on a local web server, so you need to run in nodejs environment, install node .js and grunt are a bit more complicated. This article uses a simple installation, combined with examples of the site, using reveal.js to achieve the functionality of the presentation.

Category: Javascript / Plugins


Tips about the file upload

Author: bamboo06 on 16-11-2017, 22:45, views: 13737

1 File upload WEB development in a wide range of applications, we often send microblogging, send micro-channel circle of friends have used the picture upload function. File upload refers to the process of uploading local images, videos, audio files to the server for other users to browse or download. Today, I talk to you about the common file (picture) upload methods and points to deal with.
Tips about the file upload

Category: PHP Scripts / Javascript / Plugins / Internet


Record and read JSON format log files by PHP

Author: bamboo06 on 11-11-2017, 17:34, views: 5056

1 Sometimes we need to record the operation of an operation event of the user or back-end, you can use the back-end language such as PHP to log the operation results to the log file, easy to test and find the problem. In particular, these are running in the back-end and the front can not directly see the results of the operation, then you can use the log file to record, if you often interface with some interfaces such as paypal interface, amazon card interface, log records will be not enough.
Record and read JSON format log files by PHP

We talk about PHP log records, log information is written to a log file, different from the memory log. The process of writing to the log is to open the log file (newly created if it does not exist), then append the log content to the back of the log file, and finally close the log file.

In this article, we save the contents of the log in json format for easy reading directly when needed.

Category: PHP Scripts / Skins


AlphaGo Innovation

Author: bamboo06 on 29-05-2017, 03:44, views: 9456

0 As the first person to meet with AlphaGo in 2015, the Chinese traveler European football player, the European champion Fan wrote a detailed description of the chess program chess and chess routines, and its use in the recent game strategy and tactics Innovation. The following is Fan Quan full text:
AlphaGo Innovation

One of the most important roles of artificial intelligence is that it helps humans understand and explore the ability of new knowledge in complex areas. The use of artificial intelligence in several areas has given us a glimpse of its ability. For example, using algorithms, we have greatly optimized the use of energy for data centers. Of course, there's our Go program - AlphaGo.

Category: Internet