Author Archive
08 Jul 2023
File Handling in PHP

File handling is a crucial aspect of web development, allowing developers to read, write, and manipulate files using PHP. Whether you need to upload files, retrieve data from text files, or generate dynamic files, understanding the principles and techniques of file handling in PHP is essential. In this article, I will explore the various file
02 Jul 2023
Effortless HTTP Requests in PHP (alternative to the cURL)

Introduction: Guzzle cURL, a powerful PHP library, revolutionizes the process of making HTTP requests. This article explores the unique features and benefits of Guzzle cURL, showcasing its ability to streamline HTTP requests and enhance PHP applications with unparalleled simplicity and power. Effortless Integration: With seamless integration into PHP applications, Guzzle cURL makes incorporating HTTP requests
30 Apr 2023
PHP Function array_reduce

PHP array_reduce() function is used to reduce an array to a single value using a callback function. The callback function takes two arguments: the accumulator and the current value of the array. The accumulator is the result of the previous iteration, or the initial value if it’s the first iteration. To find the number of
01 Apr 2023
Import large database in MySql

To import the large database in MySql, Below are the changes required in MySql my.ini (Configuration file): Step 1: Stop the MySQL server from your control panel. Step 2: Open the file C:\xampp\mysql\bin\my.ini Search and Change the below lines (setting): innodb_buffer_pool_size=4G innodb_log_file_size=2GB innodb_log_buffer_size=256M innodb_flush_log_at_trx_commit=0 innodb_lock_wait_timeout=500 innodb_strict_mode=0 Step 3: Start the MySQL server from your control
08 Jan 2019
JavaScript – Function

A function is a group of code designed to perform a particular task and can executed when they are called. It helps to write a modular codes. Functions allow a programmer to divide a big program into a number of small and manageable functions. We can call functions again and again when needed, but they
17 Dec 2018
JavaScript for in loop

The for-in loop is used to loop through an object’s properties. I have not posted any article on Objects yet, so you may not feel comfortable with this loop. But once you got the knowledge of objects in JavaScript, you will find this loop very useful with JavaScript Objects. Syntax for (variable_name in object) {
05 Dec 2018
JavaScript For Loop

For loop provides a concise way of writing the loop structure and it’s most compact form of looping. The for loop requires following three parts: Initializer: Initialize our counter variable to start with Condition: specify a condition that must evaluate to true for next iteration, otherwise the control will come out of the loop Iteration:
03 Dec 2018
JavaScript – While Loop

The while Loop While writing a program, when we encounter a situation where we need to perform repetitive action, in that we would need to write loop statements to reduce the number of code lines. JavaScript includes while loop to execute code repeatedly till it satisfies the given condition. Flow Chart Syntax while (condition expression){
30 Nov 2018
JavaScript – Switch Case

In our previous article we learned about decision making statement if-else. switch case statement is also used for decision making purposes. It’s a multi-way branch statement and in some cases switch case statement is more convenient over if-else statements, like when we want to test a variable for hundred different values and according to those
27 Nov 2018
JavaScript if-else Statement

If-else Statement is one of the conditional statement, that is used to decide the flow of execution on the basic of condition, If a condition is true, you can perform one action and if the condition is false, you can perform another action. However ‘else’ is optional with ‘if’ statement, if we want to perform
