PHP CPD (PHP Copy Paste Detector) – Detecting duplicate code in PHP files
PHP CPD (PHP Copy Paste Detector) – Detecting duplicate code in PHP files
It is a PEAR tool that makes it easier to find duplicate code in php application.
PHP CPD (PHP Copy Paste Detector) – Detecting duplicate code in PHP files
It is a PEAR tool that makes it easier to find duplicate code in php application.
htop is an interactive system-monitor process viewer. It’s a utility for process monitoring. It is an alternative to the Linux program top. It displays a frequently… Read More »htop – an interactive system-monitor process-viewer
KeepAlive: KeepAlive is to reuse the same connection to transfer multiple files between the web browser and the web server. Its a persistant connection. KeepAlive [Advantage]:… Read More »Apache KeepAlive – On or Off?
To List all databases with its size in MB or GB, below command can be used to get the information. Below is the command to… Read More »Get all databases size of an instance/server in MB or GB (Human readable format)
In this post, we will see how to password protected a zip file using command line so that even if the anyone outside gets access… Read More »Create password protected zip file via command line
This post is useful to those who want to convert AWS ec2 instance from PV type to HVM type. Linux Amazon Machine Images(AMI) uses two type… Read More »Converting AWS EC2 PV(Para Virtual) instance to HVM instance
This post is useful to those who are maintaining multiple branches on multiple servers and merge production branch or any specific branch to all other branches… Read More »Git pull, Merge, Push master branch or specific branch into multiple branches at once using shell script
For cases where an application fails to close a connection it is no longer using, a low wait_timeout value can help to avoid hitting max_connections… Read More »MySQL wait_timeout and sleep connections.
Below are the links can be followed for more reference: https://techtalkbook.wordpress.com/2014/10/22/php-codesniffer-a-tool-to-help-writing-codes-as-per-coding-standard-guideline/ http://pear.php.net/package/PHP_CodeSniffer/ https://github.com/thomas-ernest/CodeIgniter-for-PHP_CodeSniffer
It’s difficult to know the name of the current active GIT branch in the terminal so let’s see how to do configuration to show active… Read More »Display current Git Branch name in Terminal Prompt in Mac
If enabling “Automatically Start MySQL Server on Startup” does not work then doing below process will fix it. Open terminal/command line interface (CLI) and run… Read More »Auto start MySQL on Mac startup
If variables are used repeatedly in a code block then its better to execute that code block in a function as much as possible to… Read More »Use of local variables vs function variables
What is it: It is a process of making source code available for other developers to review with an intention of catching bugs and design errors,… Read More »Code Review = Quality Code
What is it: Cross-sight scripting is a potential threat to most Web servers and browsers. It is not a product-specific attack. Servers that generates dynamic… Read More »Security issue-2: Cross-site vulnerabilities
What is PHP Code Sniffer: A package for syntax checking. It can check code against defined rules, covering anything from white space through document comments… Read More »PHP CodeSniffer – A tool to help writing codes as per coding standard guideline.
What is PHP APC: Alternative PHP Cache, one of the most popular caching mechanism for PHP’s op-code caching. Once activated, it starts caching PHP codes… Read More »Using APC(Caching Mechanism) with PHP.
Download and Extract the PHP library to the same directory level where the PHP script is to be used for connecting to a remote server… Read More »File upload via SFTP using php
What is PHP Built-in web server: As of PHP 5.4.0, PHP provides a built-in web server. It allows to launch a basic web server for… Read More »PHP Built-in web server
What is it: Invalidated input is the most common and well-known security flaws in web applications and is the root cause of many of the exploits.… Read More »Security issue-1: Invalidated Input Errors
What Is Security Security is a measurement. Not a characteristic, quality or feature: – It is unfortunate that many software projects list security as a… Read More »Security: In General