
Yii2 Custom Action Button
Use the following format code to make custom action button in Gridview:
Use the following format code to make custom action button in Gridview:
Using a tool called iftop we can monitor bandwidth usage via command line on Linux. But here we will create our own shell script to monitor bandwidth usage. The idea is to read rx_bytes and tx_bytes files inside /sys/class/net/[interface]/statistics/ folder. Create netspeed script in /usr/local/bin/ and copy and paste below script. Script content: Exit nano…
We need Windows 7 installer on USB thumbrive for laptop which doesn’t have DVD Drive. Below are steps on how to create Windows 7 installer on USB Thumbdrive. 1. Prepare a USB Thumbdrive with minimum 8GB size and a Windows 7 DVD installer. 2. Plug the thumbdrive and insert Windows 7 DVD into tray. 3….
Function the_excerpt() can be used to show summary of article or post in WordPress. As default, the excerpt length is set to 55 words. We can control this length by adding few lines code in functions.php file inside theme folder. Below is the codes to change excerpt length in WordPress. Open File Manager and open…
For you who are new in using Blogspot and do not know how to install Google Analytics code on your Blogspot website, here is the tutorial how to do it. Actually, install Google Analytics code can be done by copy and paste the javascript code into HTML/Javascript Gadget. But don’t you know that Blogspot already…
The following tutorial can be used as dictionary for beginner on SQL syntax. SQL syntaxes are used to manipulate data which are select, insert, update, and delete on database. 1. Select Select command is used to get rows of data from table. Syntax: Example: 2. Insert Insert command is used to insert row to table….
On Linux operating system, we can use command top to show system statistic, running processes, and uptime. How can we do it on Windows environment? Using Windows operating system, the similar to top command is net statistics server. Execute this command in command prompt will show summary of Windows system statistic including when the system…
Guide on this article can be used to post Twitter using PHP. First of all, download source code from http://phpfashion.com/twitter-for-php. Extract downloaded file to your folder. Example: /public_html/twitter-php/. Then we create index.php file with the following code: The first line is to setup variables: username, password, and message. And the next part is to setup…
phpFox is social network web-based application which can be used to build online community. I found this error message when installing phpFox: To fix this problem, edit install/include/installer.class.php Find this line: and modify to this: After that, create new folder: Change the folder permission to 777: After that redo phpFox installation http://domain.com/install/index.php And problem will…
This guide can be used to insert data into database using select query. Using above syntax, all data in second_table will be copied into first_table. You can also add where keyword.