How to Define, Call & Create a function in PHP?
What is function in PHP? PHP provides us many built-in helper partners works that you can call anyplace inside your application OR browser. They make your work…
How to fix – “There has been a critical error on your website” – WordPress error.
There are so many WordPress developers facing this issue in their WordPress site due to plugins or theme issues. and you will also find so many solution…
Jenkins Error: Running two Java Versions – Jenkins Problem in Mac OS
Hi Everyone – Today we are going to discuss about how to have two version of Java Development Kit running in MAC OS and how to switch…
How to define String in PHP?
A string is a group of characters, where a character is equivalent to a byte. This implies PHP just supports a 256-character set and subsequently doesn’t offer…
How to Print Multidimensional Associative Array in PHP using loop with example?
Foreach Loop with Multidimensional Associative Array :- Multidimensional Associative Array is used to store using foreach loop arrays value where pairs arrays value can be an integer…
How to Use Middleware In Laravel.
step:1– first, you have go this path: C:\xampp\htdocs. then you have right-click on the git base here. same as this pic. Step:2- write any project name like…
Php Error: Composer – allow_url_fopen must be enabled in php.ini
Solution $ php -i | grep allow_url_fopen $ allow_url_fopen => Off => Off $ php -d allow_url_fopen=on /opt/cpanel/composer/bin/composer update Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps,…
How to run php artisan queue:listen in background on Ubuntu or Linux machine
Steps:1. Login to ubuntu machine using putty or any other ssh client2. Run command: sudo -s3. Run command: cd /opt/lamp/htdocs/<Laravel project directory name>4. Run command: sudo vi…
How to Print Multidimensional Numeric Array in PHP using loop?
For Loop with Multidimensional Numeric Array:- Multidimensional Array means one or more arrays have multple array values access. It can store numbers, string multiple array uses of…
HTML Tutorial Part-1
What is HTML? Html provides a way of displaying Web pages with text and images or multimedia content. HTML is not a programing language, but a markup…
Echo Statement, Print Statement, and Here document in PHP.
Echo Statement This statement is used to output the data to the screen or printing text on the screen. For Example:- echo “Sushant Kumar”;echo ‘Sushant Kumar’;echo 59.236;echo…
What is a client, Server, Internal Data Types, and Variables in PHP?
Php Introduction PHP is an open Source Server-side programming/ Scripting language that suited for web development and can be embedded into HTML. PHP stands for Hypertext Preprocessor…
What is Multidimensional array in PHP with Example?
Multidimensional Array is Arrays of Array means one arrays have multiple array. You can define as it have 2Dimensional ([][]), 3Dimensional ([][][]), 4Dimensional ([][][]), and etc. ex:-…
How can use Array Operators in PHP with Example?
Php union:- ($a+$b) = Work as union means if same value then replace left variable to right variable(for keys that exit both array) ex:- Php Equality:- Key…
AJAX Crash Course
What is AJAX ? Asynchronous Javascript & XML Set of web technologies Send & receive data asynchronously Does not interfere with current web page JSON has replaced…
Protection of CSRF in Laravel
What is CSRF? CSRF stands for Cross Site Request Forgery and it’s a web attack that forces a user to make unintended requests to a web application where they are previously…
What is difference between echo, print, and print_r in PHP with example?
Echo Statement:- The echo statement is used to output in display with or without parenthesis echo or echo() but no return value. Echo Statement faster than print…
Laravel 5.5 php artisan migrate error in Ubuntu: SQLSTATE[HY000] [2002] Connection refused
How I got this error?Ans: I was running php artisan migrate command in /opt/lampp/htdocs/project_dir What was the error? ubuntu@ip-ip_addr:/opt/lampp/htdocs/project_dir$ php artisan migrateIn Connection.php line 664: SQLSTATE[HY000] [2002]…
How to install latest version of nodejs in Ubuntu or Linux
Steps:1. Login to Ubuntu or Linux machine using ssh client like putty 2. Run command: sudo -s3. Run command: sudo apt-get install curl4. Run command: curl -sL…
How to install composer in Ubuntu or Linux machine
To install Composer on your Ubuntu or Linux system, perform the following steps: 1. Check if you have PHP installed and configured properly. If not then please…
How to link php from XAMPP installation to use php command from user or any other directory in Ubuntu or Linux
Assumption:I assume that you have already installed XAMPP in your Ubuntu OR Linux machine.If not, then you may follow this link to do so: https://www.devopsschool.com/blog/installing-xampp-7-4-xxx-on-ubuntu/ How I…
What is the difference between numeric and associative array in loop with example?
For Loop with Numeric Array:- Numeric Array uses in For Loop for Declaration and Initialization as numeric index values are store and access. ex:- For Loop with…
Top 50 Tools – Platform – Library – Scripting – Framework for Web Developer in 2020
Tools git sourcetree chrome-developer-tools firebug postman adobexd adobephotoshop Cloud aws github godaddy cpanel Framework android xmapp laravel Concept microservices Operating System ubuntu centos Programming Language php Web…
Python Interview Questions and Answer Part – 2
Which argument would you use in a Python function to obtain a dictionary of all the named arguments passed? Keyword Arguments (**kwargs) (Ans) *args The NoneType argument…
Python Interview Questions and Answer Part – 1
What Python function is used to open files? open_file() file() new_file() open() (Ans) What does the pass keyword do? Passes control to another function Continues to the…
npm error on Linux: Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 12.x
Environment:Linux 64-bitLaravel 5.5Node.js 12.x How I got this error:I made some changes in one of the js file of my project. Hence, I needed to rebuild the…
PHP Laravel Error: Trying to access array offset on value of type null
Environment:Laravel Version: 5.5PHP Version: 7.4.0 Error stack trace:Message: Trying to access array offset on value of type null Sample code that gave me error:$filterConfig = $request->get(‘filterConfig’, null);$showAll…
How many types of loops are there in PHP?
While Loop:-While loop keeps repeating an action until a condition returns false. Nested While loop:-Nested while loops work as while loop but in this case, you use…
Complete Reference: WordPress Debugging & Troubleshooting Guide
Any wordpress issues and problem may be caused by a variety of issues, including: Part – 1- Enable debugging mode in WordPress, follow the steps: Edit wp-config.php…
How to clear laravel.log in PHP Laravel
laravel.log is a file that collects all the Log messages by default into it Sometimes you need to truncate this log file for troubleshooting the application Command…
