PHPHow to Find the Document Root using PHP ScriptBy RahulFebruary 21, 2015The document root, also known as the web root, is the topmost directory in your web server’s file structure where…
Bash ShellHow To Pass Command Line Arguments in a Shell ScriptBy RahulFebruary 15, 2015Bash scripts are simple text files that contain a collection of commands. Bash scripts can help with administrative tasks, task…
Bash ShellBash for Loop with ExamplesBy RahulJanuary 7, 2015Bash is a popular shell used on Linux and macOS systems. It is a powerful tool for automating repetitive tasks…
JAVAHow to Install Java 7 (JDK 7u76) In Ubuntu 16.04, 14.04 LTS, 12.04 LTS & LinuxMint Via PPABy RahulJanuary 4, 2015Warning – Java 7 is officially deprecated by Oracle team. It is no more available for download on the public…
JavaScriptHow to Remove Spaces from String in JavaScriptBy RahulDecember 3, 2014Question – How to remove extra spaces from a string using JavaScript? A space (” “) character is used to…
Bash ShellHow to split a string on a delimiter in bashBy RahulDecember 2, 2014We can use an internal field separator (IFS) variable to parse an array. Let’s use an example script, where first…
Bash ShellHow to Find Script file name in a Bash ScriptBy RahulDecember 2, 2014Command SNAME=$(basename “$(test -L “$0” && readlink “$0” || echo “$0″)”) While running a bash script using Linux terminal the…
Bash ShellHow to Generate and Verify md5 checksum of File in LinuxBy RahulNovember 30, 2014Command: md5sum myfile.php > myfile.php.md5 Above command will generate md5 checksum of file myfile.php and store in file myfile.php.md5. myfile.php.md5…
JavaScriptHow to Get Query String Values using JavaScriptBy RahulNovember 28, 2014We can easily get values passed in url query string using JavaScript or jQuery. Here is an simple examples of…
JavaScriptHow to Redirect User to Another Webpage with JavaScriptBy RahulNovember 28, 2014This tutorial will help you to redirect a webpage to another webpage using JavaScript. Here are 3 examples of redirecting…