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»

apache2

webservice implementation in PHP using SOAP

WSDL to PHP Code generation Download wsdl2phpgenerator-2.5.5.phar Run php wsdl2phpgenerator-2.5.5.phar -i input.wsdl -o tmp/my/directory/wsdl The directory is created if possible.   References: 1. Book: Pro PHP XML and Web Services – Page No. 690 2. http://arnekroeger.blogspot.com/2011/02/php-soap-creating-and-consuming-wsdl.html 3. https://github.com/wsdl2phpgenerator/wsdl2phpgenerator-cli Read more»

apache2

how to setup apache web server in Ubuntu 14.04 LTS

  Setting up web server is common thing among web developers. And, this is how, i usually do while setting up apache2 webserver along with php and mysql-server for starting with any simple project as, [crayon-5a35d29f1930d434817001/] After that, i define servername in /etc/apache2/conf-available/servername.conf  and enable this configuration file as, [crayon-5a35d29f19316807464664/] Now, i create the project […] Read more»