Create new Small Array from Big Array (Array Push method)

Hiiiii, if you are a php developer than sometimes you encounter a problem of making a small array out of large array on some conditions basis or you want to insert some elements into the array. PHP is having many easy method to do the above defined work.You can insert the elements in array in various conditional statements like for loop, foreach loop , while loop etc. In this example I’ll be showing two array insertion method in two different loops.

 

To see code……  CLICK HERE

Using Curl to contact various APIs in PHP

Hiiiii, being a developer if you want to contact or request APIs or you have to request payment gateway for sending the amount deduction request to payment sites then you can contact them with the help of form submissions or using web services . Most of us don’t know how to use web services and to use which web services for your work. so, here in this post I’ll give a tutorial of using a web services.

Web services are used for connection between two areas of data(sites) over network. For this tutorial, I will be using “curl” web services to connect to various APIs. Curl uses HTML, javascript and high level languages like “PHP”,etc to perform its task of connection between various sites. Using curl we can send a data in the form of XML or any other format which your requesting APIs demands.

curl-web-service

To see code……  CLICK HERE

Easy jQuery Tabbing with attractive CSS

ystem and want to display data in that tabs without page refresh. Some find it difficult to implement but here I am teaching you to implement it in a very easier view. Tabs gives a very beautiful looks to your site and also organize the data viewed on your site in a very organised manner. As jQuery is used then it is very fast and efficient without any refreshing of page. The tabbing I’ll be teaching here will have good CSS and nice looks.

To see code……  CLICK HERE

PHP array print method in proper format

Hiiiii, If you are a PHP Developer then you generally face a situation when you want to echo a complete array in the complete array format with indexes in the complete proper format. You get this array echo problem when you post the form variables on next page or on same page, when you fetch the records from database or when you the variables in URL.

 

To see code……  CLICK HERE

Upload Multiple Featured Post Thumbnails in WordPress

Hiiiiiii, sometimes it happens that if you are are developing a wordpress website and on some of your pages or post you want to show more than one featured images then if you choose a normal image showing procedure in html with ‘img’ tags then it is a very big and lengthy procedure and for that you have to make changes in many files and have to perform many steps like- firstly upload an image with wordpress upload, then you have to give the full path of that image to “img” tag.

But here in this post I’ll be telling you a very easy way to add many featured images in wordpress posts, pages or templates. In the method I’ll be teaching here, there is a full provision of adding unlimited featured images for particular posts and pages.

 

wordpress-multiple-post-thumbnails

 

To see code……  CLICK HERE

Generate random Passwords in PHP

Hiiii, when we make some user registration system in our project or code then we always want to keep the user details like password etc very secure which is not easy to detect and which is random for each and every user. You can try to make random password by applying some logic but here in this demo I’ll be providing you with a very simple and short code to generate a random password.

This random passwords are also necessary when you have to send a confirmation mail to users with some password different from their identities. Users have to change their random passwords to their own password on first login.

Don’t interpret the meaning of these random password with passwords generated by some encryption techniques like md5 hash, etc. The random passwords here are generated in php by making a string with some logic by adding a digit to that password string.

In this technique which I’ll be showing here, you can generate the password of your desired length.

 

 

 

To see code……  CLICK HERE

FIle Handling in PHP (File Reading and Writing)

Hiiiii, we always find it difficult to work with files in our early stages of programming in any language. But sometimes it is necessary to work with files when it comes to reading and writing text files, doc files or html files. So, in this tutorial I am providing you a very simple code for file handling. It is easy to understand and execute. I have tested this code with text files and html files but you can try it with different format files also like doc, etc.

FIle Handling in PHP

To see code……  CLICK HERE

WordPress Upload Error after Custom Plugin Installation

Hiiiiiii, This post is all about a wordpress error  which you usually gets when you develop you own customs plugins and uses a jQuery code in the same manner as used in Core PHP.This error is  Actually WordPress doesn’t identifies “$” in your JQuery code, for that you have to use “jQuery” in place of “$” in your javascript code.But in this I’ll be telling a standard way of writing Javascript code in WordPress. The error is shown as below :

Wordpress Upload Error

To see code……  CLICK HERE