How to make host file entry on Windows?

In order to make host file entry on Windows please follow the steps mentioned in this video. Host File Entry: 1. Open Notepad – Right Click, Run as Administrator. Click Start All Programs Accessories. Right-click Notepad and select Run as administrator. 2. Click Continue on the Windows needs your permission UAC window. 3. When Notepad…

How to copy files from one hosting server to another directly?

The below example shows how you can copy files from one hosting to another without downloading it on your local machine and using ftp or any other source to upload those files. This can be done with a simple cron job and trust me its very useful in case you want to quickly copy the…

How to accept payments using Network Online – Payment gateway services?

Today, I am going to share an example of how you can integrate the Payment Gateway Service offered from Network Online (https://uat.timesofmoney.com/direcpay/niecom/home.jsp). 1. Create a PHP file with name “NetworkOnline.php” and the following code. <?php echo "<b>PHP ENCRYPTION KIT FOR NETWORK ONLINE</b>"; $enc = MCRYPT_RIJNDAEL_128; $key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";//enter secret key $mode = MCRYPT_MODE_CBC; $iv =…

How to upgrade Joomla 2.5.x to Joomla 3.6.x?

Well, the first and the foremost solution or the approach you can have is by visiting the Joomla document for upgrading Joomla website from version 2.5.x to Joomla 3.6.x. You can use the below link for the same: https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration Today, I had performed a similar task and will be sharing with you the exact approach…

How to run you first website on Amazon AWS?

Today, is the time of cloud computing and many of us might not be aware of how to set up your first website on one of the best and popular cloud service providers i.e. Amazon Web Services or AWS. So, I am here to explain or guide you in setting up your first web environment…

WPML language translation not working in wordpress ajax call

Recently, I had come across a issue which I thought very useful to share with the developers working on WordPress and using WPML for language translations. Issue: WPML language translation not working in wordpress ajax call Solution: 1. Make sure you are passing language variable in with ajax url. e.g. http://www.example.com?lang=ar 2. Use the following…

How to download or copy large mysql databases with the help of putty?

This is one of the best examples I came across when I got tired in trying to download approax 1 GB of mysql database through phpmyadmin (export). Download large size database(s) using putty ssh access: 1. Download and login to putty Note: – You need to download putty software. Google to get it. – Your…

How to extract large zipped files using linux shell or putty?

Suppose you have created a zip file of around 50 gb and after uploading it or copying it to another location you might come across a situation where the unzipping is not happening as per your expectation. Possible causes can be time out issue, connection break, etc. Below example is a perfect one to solve…

SQL Server all type of queries

Create table query CREATE TABLE sale ( datetime datetime, PROD_ID INT PRIMARY KEY, PROD_NAME VARCHAR(50), PROD_TYPE VARCHAR(25), UNITPRICE BIGINT, QUANTITY BIGINT, AMOUNT MONEY, ) SELECT * FROM sale truncate table sale drop table sale Insert values in a sales table INSERT SALE VALUES(’01-01-2008′,’100′,’SOAP’,’HOUSEHOLD’,’10’,’100′,’27000′) INSERT SALE VALUES(’01-02-2008′,’101′,’OIL’,’HOUSEHOLD’,’11’,’75’,’26000′) INSERT SALE VALUES(’01-05-2008′,’102′,’TOWEL’,’HOUSEHOLD’,’12’,’110′,’25000′) INSERT SALE VALUES(’01-25-2008′,’103′,’SHAMPOO’,’HOUSEHOLD’,’15’,’125′,’11000′) INSERT SALE VALUES(’01-26-2008′,’104′,’BRUSH’,’HOUSEHOLD’,’120′,’115′,’15000′)…

MLM (Multi Level Marketing) Database Logic

Here i am going to explain about the login for MLM database. MLM database means Multi Level Marketing. When a new user will be registered, all the sponsers in chain will get commission. Please find below the code for the same: Here are form fields: $sid = $_POST[‘textfield2’]; $name = $_POST[‘textfield3’]; $email = $_POST[‘textfield4’]; $address…

Important PHP elements and codes that can be used with $_SERVER super global variable

$_SERVER is a PHP super global variable which holds information about headers, paths, and script locations. Below are some elements that can be used with $_SERVER to get effective results. The example below shows the example elements that can be used with $_SERVER in the following form: echo $_SERVER['PHP_SELF']; //Returns the path and filename of…

How to show shopify product variants as a product or related products on the products details page ?

Some of us might have come across a requirement where we need to show the variants of a product like colors, size, etc. in terms of products or related products with carousel kind of effect and so. Recently, I got into similar kind of situation where a product was having variants like colors: red, green,…

How to Secure your WordPress website?

There is a great advantage of using Opensource frameworks and content management systems one of the reason is its large support base and contributors, who keep on working to make things easier for use at no cost and this makes it not only popular but a preferable solution to one’s requirement. Popularity comes with a…

Prevent access to files in a directory using file type and htacess – all about website security

This is a simple example illustrating the use of htaccess to block access of files based upon certain file types. 1. Prevent access of .php files in a directory. Create a file .htaccess inside the folder/directory where you do not want the .php files to be invoked or called or executed. Now place the following…

Example to display next month’s date from current date without skipping any day or month in PHP

Want to display next month’s date from current date without skipping any day or month, here is the example: <?php $date = '31-01-2016'; echo nextDate($date); function nextDate($currentDate){ $getCurrentMonth = date("m",strtotime($currentDate)); $getCurrentDate = date("d",strtotime($currentDate)); $getCurrentYear = date("Y",strtotime($currentDate)); $currentMonthplus = $getCurrentMonth+1; $getNextMonth = date("m",strtotime('+1 month',strtotime($currentDate))); if($currentMonthplus != $getNextMonth){ $nextDates = date('t M Y', strtotime('01-'.$currentMonthplus.'-'.$getCurrentYear.'')); }else{ $nextDates =…

PHP Interview Questions – 1

PHP Interview Questions This post is just an attempt to help you guys to know and understand how tricky a PHP interview can be, what type of questions can be asked to you and how effectively you can tackle those questions. I do not guarantee that these will be the questions you will be asked…

Want to use Google reCaptcha on your website? Here is how you can do so…

In this post I am going to describe the steps you can apply in order to install and configure google captcha on your website. Source: https://www.google.com/recaptcha/intro/index.html INSTALL AND CONFIGURE GOOGLE RECAPTCHA 1. You need to have a google account in order to use google recaptcha. Click here to create an account now. 2. After you’re…

Want to add a custom auto suggest form to your store or website? Please read the following post to do so…

Hello Everyone, In this post we’ll be trying to implement a customized auto suggest form with scrolls based upon keyboard up-down keys. Please make sure you have the jQuery library in order to make ajax calls. The following example can be used with any platform. Don’t have jQuery? Click here to download now or try…

Migrated WordPress website to a new server with a new domain, want to update all old domain links with new?

This is a very common but very much of use in the life of WordPress developers. Consider a situation where we have restlessly worked on a website with domain www.example1.com, while adding content, uploading images to posts and other pages we get the domain www.example1.com in all pages or posts data stored in database and…

Advanced: How to get products from Shopify store to display on other non-shopify stores?

In this post, I’m going to explain the approaches we can take to fetch products from Shopify store and display the same on our non-shopify based store. Please read the first part of this post by clicking here Considering, You’ve already read our first post now, I am going to discuss and give you a…

Primary: Fetch and list Collections or Products from Shopify to your own store?

Hello Users, Today, I’m am going to share with you my recent encounter with Shopify. I was asked to provide the feasibility, process of implementation in performing one of requirements which has now become common. Task: 1. Fetch products from Shopify stores – Details like : Product Name, Price, SKU, Product Image, Tags, etc. 2.…

Looking for IT Jobs in Mohali? Here is a list of companies where you can apply and get your dream job.

Mohali is IT Hub of Punjab which houses many companies which provides IT services major and development centers. If you are a start up or an experienced candidate, you can get your dream job in Mohali or Chandigarh. Below are list of some companies you can look and apply for job. 1. FATBit Technologies Address:…

How to update DNS for a domain on a particular machine?

This example illustrates the way to modify your hosts file which allows you to override the DNS for a domain, on a particular machine. This is very useful when you want to test the site without any test link before going live. Some interesting facts of this example: 1. Test website with actual links without…

Want to implement a contact us form in Shopify?

Shopify is a complete ecommerce solution that allows you to set up an online store to sell your goods. It lets you organize your products, customize your storefront, accept credit card payments, track and respond to orders — all with a few clicks of the mouse. Continue reading >> Every store needs a contact form,…