Create WordPress Plugin : WordPress Essentials

Create WordPress Plugin

So once you go through this post you will come to know how to create wordpress plugin. This post will have a series of other posts as well which will let you know how to create a widget in the wordpress plugin, how to work with the database through the plugin, how to work on wordpress admin section through a plugin and how to create shortcodes in a wordpress plugin . So Once you go through all the future extensions of this post you will come to know all about the wordpress plugins. Continue reading

New Features in PHP 5.4

This subject New Features in PHP 5.4 is not new as PHP 5.4 was released on March 1, 2012, But many of us still do not know what are the New features in php 5.4, So lets get familiar with them .

Why should I upgrade to 5.4 ? So What’s new Features in PHP 5.4 ?

So before going any further i will give you a very obvious reason of them all which is performance and security šŸ™‚

Continue reading

What are TRAITS in PHP ?

What are Trait in PHP ? Why do we need Trait in PHP ?

In this article we will be working on a very new feature which is introduced in PHP 5.4 which is Traits in PHP.
Traits are mechanisms which help and increase in code re-usability, and also serves perfectly to solve the problem of multiple inheritance in php.

For example we have two or more than two classes that need to access a method / function .
So to solve this before version 5.4 you were suppose to do something like :

Continue reading

CURL in PHP Tutorial basics

I have been asked this question multiple times from my colleagues and my fellow-mates . What is curl? How to use curl ? and When to use Curl ? So in the following blog I am going to answer all your questions .

In PHP if you want to access outside URL from your website there are four ways to do so
Using theĀ  fopen() function
Using theĀ  fsockopen() function
Using theĀ  cURL library
Using theĀ  Http_Request class

All these function have their own specific use but cURL is the most recommended one.
In order to run cURL in your website or in php you need to install and enable it . If it is already installed you can skip to part for basic use of curl .

Continue reading

Introduction to Arrays in PHP

In the following article ( introduction to arrays in php ) we will talk about arrays in php, Syntax, Types and how to use them. Before we begin “What exactly is an Array ?”

Array is a collection of values which are stored in a single variable. By now you might have seen that you can store characters and numeric values in a variable. But by the use of array, you can store various types of values in a single variable. Lets see the example below: Continue reading

Read and Write text file in PHP

In many Websites we develop, most of them use the log system so we can map system points to be analyzed later, such as a connection failure, attempts to access a restricted place … Anyway there are many possibilities of use a log file.

For this we will use only three functions, which is the fopen to open the file, fwrite to write to the file, and fclose to close the file.

The first step is to define the name of the file in which we will do read write operations (or what is the name of file to be created), in our example will specify a suggestive name like “file.txt” and add it to a variable “$file”.

In our example we will insert the text “Hello. technofusions.com is awesome website for freshers ” for this we createĀ  variable “$text” .

Continue reading

“Read More” Link / Add Limit to Text In PHP

CODE

EXPLANATION

Line Five Strip Tags are used to remove any html tag present in the string and returns a pure string without any html tag .

For more Documentation On Strip Tags Click Here Continue reading