php

How to generate entity from database tables in PHP automatically

If you have followed my previous tutorial, then you already know about, how to create object relational mapping  (ORM) in object oriented programming system.  Before proceed, you can go through this at least once. Here is the link ORM PHP using OOP In this tutorial, we will be developing application which generates entities automatically either of […] Read more»

php

how to develop ORM(object relational mapping) in PHP using OOP

Today, i am going to teach you, how to develop object relational mapping database application in PHP using object oriented programming methodology. I love to code in object oriented method to reduce redundancy, encapsulation and many more. Let’s begin….   1. First create the database called ‘ORM‘ using phpmyadmin and create the ‘person‘ table   […] Read more»

php

Object Oriented Programming in PHP – best practices

 Naming Convention all small letter for filename class.emailer.php for class file interface.emailer.php for interface abstract.emailer.php for abstract classes class name to be in camel case e.g. class BigData variable names all in small case e.g. $dbname method name to be camel case with first letter to be small e.g. getRecord() Interfaces defines the methods to be […] Read more»

java

JAVA environment variables

JAVA_HOME is the path of JDK that used to run the tomcat and web applications CATALINA_HOME is the path of the tomcat binaries files CATALINA_BASE is the path the tomcat configuration files   Read more»

wordpress

WordPress Hooks: ACTION and FILTERS

Hooks are simply a standardized way of “hooking” into WordPress. Using hooks, we can execute functions at specific times in the WordPress process, allowing us to alter how WordPress functions and the expected output. Hooks are the primary way plugins interact with our content in WordPress. Two types of hooks can be used: Actions and […] Read more»

wordpress

How to create wordpress plugin

Here, we are going to create a polular post plugin in wordpress. Steps: 1. first step is to create a popular-posts.php file inside wp-content/plugins directory and paste the following header. [crayon-5a36e0afa6c49502631079/] 2. You can now activate from wordpress admin dashboard. 3. Read more»

eclipse

Eclipse Error not able to create a new server

1 . To fix the error ‘Cannot create a server using the selected type’ run the following: cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/ rm org.eclipse.jst.server.tomcat.core.prefs rm org.eclipse.wst.server.core.prefs 2 . Once you do this, another error ‘Could not load the Tomcat server configuration at /usr/share/tomcat7/conf. The configuration may be corrupt or incomplete /usr/share/tomcat7/conf/catalina.policy (No such file or directory)’ So to […] Read more»

SOAP

Webservice Architecture – SOAP using JAVA API

Before we need know 1. Core Java 2. Develop Java Web Applications 3. Deploy Java Web Applications We will know about following: 1. SOAP(JAX-RPC & JAX-WS) 2. REST(JAX-RS) ATM Application < ---- > Customer DB Bank1 interaction with Bank2 customer to use ATM Webservice Architecture: – How to share information between two inter-operable applications Webservice […] Read more»

lua

Lua Scripting Language

Lua is an open source language built on top of C programming language. It does not try to do what C can already do but aims at offering what C is not good for. Lua has a safe environment, automatic memory management, and good facilities for handling strings and other kinds of data with dynamic […] Read more»