git

how to configure github ssh public key

[crayon-5a36e139db0d4690312583/] Give the name, git_rsa and press enter for empty password. Then, copy the git_rsa.pub and add it to SSH key in github profile settings and save it. Add the git identity in the local computer, [crayon-5a36e139db0e1951090309/]   And, test with [crayon-5a36e139db0e5214431149/]     Read more»

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»

eclipse

how to add tomcat server in eclipse

Assumption: First install the tomcat directly using apt-get install tomcat7 or download binary distribution from tomcat website.   1. Go to window>preferences 2. search for server 3. select Runtime and click on add 4. Add the tomcat7 path, which is located at /usr/share/tomcat7 5. apply…and that’s it. OR 1. from menu window>show view>other.. and search […] Read more»

security

how to install ssl in apache tomcat

Generate Keystore: [crayon-5a36e139dbf57961192856/]   My Working Local SSL certificate [crayon-5a36e139dbf60552638177/]   Reference: http://crunchify.com/step-by-step-guide-to-enable-https-or-ssl-correct-way-on-apache-tomcat-server-port-8443/ https://support.quovadisglobal.com/KB/a273/how-do-i-install-an-ssl-certificate-into-tomcat.aspx http://stackoverflow.com/questions/8120690/tomcat-doesnt-deliver-intermediate-certificate-https   http://helpdesk.ssls.com/hc/en-us/articles/203505131-How-to-generate-a-CSR-code-on-Tomcat-using-keytool https://www.godaddy.com/help/generating-a-csr-and-installing-an-ssl-certificate-in-tomcat-4x5x6x7x-5239   Read more»