How we can create custom post type plugin.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
How we can create custom post type plugin: In this post you will learn how to create a custom post type plugin in WordPress.   What is Custom Post Type Plugin? If you want create own custom posts in your site, you will use custom post type plugi [...]

How to save image as featured image in WordPress

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
If you want to save the image as featured image from front end form. Here is the code for making the image as featured image for a particular post. $filename = $_FILES[‘attachmentfile’][‘name’]; $wp_filetype = wp_check_filetyp [...]

PHP7 Introduction

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
You might have knowledge about active development of the biggest version of PHP7. It takes near about a year for the development. Finally the wait is over and we have brand new version of PHP7 with us. The PHP7 timeline was scheduled by members of co [...]

What is MongoDB?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
What is MongoDB? MongoDB is an open source, document-oriented database designed with both scalability and developer agility in mind. Instead of storing your data in tables and rows as you would with a relational database, in MongoDB you store JSON-li [...]

What is NodeJs?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
What is NodeJs? Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast and scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for dat [...]

What is AngularJs?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
What is AngularJs? AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. Angular’s [...]

What is ExpressJs?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
In short Express is a Fast, unopinionated, minimalist web framework for Node.js ExpressJs is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web and mobile applications. It facilitates a rap [...]

How to install Node JS and use it ?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Install NodeJS 1. First of all download the Git Bash from: https://git-scm.com/downloads for writing up the commands. After downloading, install it and it will open a window like: Main difference between command prompt and the git bash is: In command [...]

PHP code to subscribe user directly to mailchimp using CURL

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
MailChimp is the most famous online email marketing software and is offered free of cost. It allows the user to subscribe and send newsletter in bulk to them. It also manages your subscriber’s lists. MailChimp makes it easy to integrate email s [...]

How to generate an API key from mailchimp account?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
You would have to follow the following steps Login to your mailchimp account. After Login, on the top right corner before Help, you will see your account name with down arrow. Click on that. You will see an option of “Account” there. Clic [...]

How to upload a file to server?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
A file can be uploaded on a hosting server in different ways. One of the simplest way is the hosting provider. The hosting provider provides hosting control panel tool with file manager to guide you upload the file. Second option is to use ftp manage [...]

What is REST API?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
REST API REST stands for ‘Representational State Transfer’. It’s an architectural style and an approach to communication for the developement of web services. Roy Fielding in 2000 first introduced REST. REST basically uses HTTP pro [...]

How to install MongoDB with easy steps

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
In this digital era, things are moving very vast and for making thing vast technology is playing main role. Proving this term, new technologies are coming with more fast and sharp features, like: MongoDB. MongoDB is playing a vast role in making the [...]

How to Install MongoDB PHP Driver in your localhost windows machine with PHP?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Download the php_mongo.dll file from internet (http://pecl.php.net/package/mongodb/1.1.6/windows) Put this file in your php extension directory. Add the following line in php.ini file: extension=php_mongo.dll Restart Apache Server. You are all set no [...]

Cookies and Sessions

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
SESSION Data is stored on the server. This can be used to move data from one page to another across the website. Example When a user logs in to the website, we store user’s id in a session. This way we can check at any page that who has logged in a [...]

PHP DB Connect

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
How to create a connection with MySQL? Use mysqli_connect("host", "username", "password"); How to connect to database? Use mysqli_select_db("databasename", "connection"); How to insert data into MySQL database [...]

Dbase MySQL

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
In these tutorials, we will come to know how PHP can be connected to a database.   In a database, there can be multiple tables. Each table can have multiple fields   How to create a database We are considering that you already have phpmyadmin insta [...]

Arrays

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Arrays are used to store many values in single variables. Eg. Name of fruits In Php, array can be declared as the following Array($val1, $val2); Please check the following screenshot CODE <?php $fruitNames = array("Grapes","Banana" [...]

Operators

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
For Addition use + Eg. $a + $b For Subtraction use – Eg. $a – $b For Multiplication use * Eg. $a * $b For Division use / Eg. $a / $b For getting remainder of division (modulus) Eg. $a % $b For getting results of powers (exponentiation) Eg. $a [...]

Loops

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
In PHP the loops are of following types for foreach do while while For loop For(variable start point; till condition; increment or decrement) CODE <?php for ($days = 1; $days <= 7; $days++) { echo “Day number is : “.$days.” &l [...]