» Articles for 09.06.2020

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

NProgress.js-page loading progress bar

Author: bamboo06 on 9-06-2020, 20:54, views: 323

0 NProgress.js provides a page loading progress bar effect. When the page opens and loads, a progress bar loading animation will appear at the top of the page. NProgress.js is a lightweight progress bar component that is easy to use and can be easily integrated into single-page applications.
NProgress.js-page loading progress bar

Directly quote the nprogress.js and nprogress.css files to your page.

Category: Javascript / Plugins

 

PHP errors and exception handling

Author: bamboo06 on 9-06-2020, 20:26, views: 198

0 Unlike other programming languages ‚Äč‚Äčthat throw exceptions when encountering errors, PHP also has an exception mechanism when handling objects, but PHP will perform as happily as possible and ignore what happened, unless it encounters an extremely serious error. There is an exception. This article outlines PHP-related error exception handling mechanisms.
PHP errors and exception handling

PHP has several error severity levels. The three most common types of information are errors, notices, and warnings. They have different severity: E_ERROR, E_NOTICE and E_WARNING. The error is a serious problem during operation, usually caused by code error, it must be corrected, otherwise PHP will stop execution. Notifications are information of a recommended nature, because the program code may cause problems during execution, but the program will not stop. The warning is a non-fatal error, and program execution will not be aborted.

Category: PHP Scripts