C Program to Convert a Number to a String

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


If you want to convert a number into a string, then you can use the sprintf() function in c programming language. We assume you have a basic knowledge of c programming language. C program to …

Sizeof Operator in C Programming Language

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


sizeof() function is used to get the memory allocated size in C programming language. See the below example with the output. Sizeof Operator in C Below example will explain the data types such as int, …

C Program to Display Hostname And IP Address

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


In this program, we will share how to get the Hostname and IP address of a local machine. In this program, I am using these predefined functions: 1) gethostname(): Get the hostname of a local …

Java Program to Swap Numbers

Posted by Prem Tiwari | Updated on | in Java Programming.


This is a very basic program in Java programming language. If you are a Java beginners or want to start learning Java programming language, then this program will help you to understand the basic Java …

Java Program to Subtract Any Two Numbers

Posted by Prem Tiwari | Updated on | in Java Programming.


In this post, I will explain about a Java program to subtract any two numbers with an example and program output. This is a very basic program in Java programming language. If you are a …

Java Program to Add Any Two Numbers

Posted by Prem Tiwari | Updated on | in Java Programming.


This is a very basic program in Java programming language. If you are a Java beginners or want to start learning Java programming language, then this program will help you to understand the basic Java …

Magento Country Codes For Table Rate Shipping Methods

Posted by Prem Tiwari | Updated on | in Code Snippets, Magento Tutorial.


If you want to implement the table rate shipping method in your online Magento store, in that case, you also need to enter the country codes. Below is the complete list of country codes for …

Get The Full Details of Products in MySQL Database in PrestaShop

Posted by Prem Tiwari | Updated on | in Code Snippets.


If you want to get the complete lists of products which are currently on your PrestaShop based website using MySQL database, then use the below MySQL queries. how to get full details of each product …

Disable Theme Editor Option in WordPress Admin

Posted by Prem Tiwari | Updated on | in Code Snippets.


When you deliver WordPress based website to the client who is not technical as he can manage his/her website by using WordPress Admin panel, then you should disable the theme editor option from admin panel. …

How to Remove File Extension From URLs

Posted by Prem Tiwari | Updated on | in Code Snippets.


If you want to remove the file extension from the URLs, then this tutorial designed for you, keep your close attention in the tutorial as I am going to share how to remove the file …

Redirect User Directly to Checkout Page After Adding Product to Cart in Woocommerce

Posted by Prem Tiwari | Updated on | in Code Snippets.


In this tutorial, I will explain how to redirect user directly to checkout page after adding product to cart in WooCommerce. This is very simple & easy code snippets to extends the features of your …

Add Confirm Password Field on The Register Form Under My Accounts

Posted by Prem Tiwari | Updated on | in Code Snippets.


If you want to add confirm field password field on the registration form under my account page, then this tutorial is specially designed for you. Please keep your close attention in this post and use …

How to Add Custom Fields in User Registration in WooCommerce

Posted by Prem Tiwari | Updated on | in WooCommerce, WordPress.


Sometimes we need to add the extra fields in the WooCommerce registration form to get some more information, which by default you can’t get from the registration page. In this tutorial, I will share how …

Use Safely Redirect URLs in WordPress

Posted by Prem Tiwari | Updated on | in WordPress Snippets.


In this tutorial, I will explain how to use safely redirect URLs in WordPress. The wp_safe_redirect() function does not exit automatically, if you are using this function in your code, then you should always used …

How to Remove Width and Height Attributes From Images in WordPress

Posted by Prem Tiwari | Updated on | in Code Snippets, WordPress Snippets.


In this tutorial, I will explain how to remove width and height attributes from inserted images in WordPress posts and pages. The images uploaded through the WordPress media uploader and inserted in your posts or …