Saturday, February 13, 2010

Two most common and important aspects of OOP: Abstract Class and Interface

Sometime in interviews, many of you may have faced the term of OOP(Object Oriented Programming) called Abstract Class and Interface. These two are very common yet powerful issues of object oriented programming language. I am going to talk about some common aspects that we need to take care of while using abstract class and interface. Also i will discuss when to use abstract class and when to use interface. So i hope after reading this article, you will get a clear idea of using both these two trends of OOP.

I assume that you already have knowledge on class, object and inheritance. If not, then i strongly suggest you can go to: http://java.sun.com/docs/books/tutorial/java/concepts/ and read this thoroughly.

My small wishes for this year!!!

I saw in one of my colleague's blog that he has stated his wishes for the year 2010. So i thought why not i post my wishes too. Everybody has their own wishes for every year. My wishes are:

1. Get a perfect job for me so that i can sustain and maintain a good career after 4/5 months of layoff.

2. Get an Apple Ipad.(Please Allah, I am begging you for this) :)

3. Get a nice Tama Drums Kit(with Iron Cobra Double Pedal).

4. Carry on a good prosperous life with my better half.

I don't know what God keeps in my forehead but i want these to come true. Guys pray for me and my future.

Thanks!!!!

Thursday, February 11, 2010

How to get and set the values of php.ini files through your php script

As we know that every php installation contains a configuration file named php.ini. This file contains all the required values that is needed to run and execute your php script. It sometimes happen that the configuration file that resides in the server(could be your local server or remote server) may conflict on some issues with your php script and in that case you may want to check/append the values so that your script works perfectly. You can do this with the help of two php built in function called "ini_get" and "ini_set".

Tuesday, February 9, 2010

OpneSource Integrated development environment(IDE) called NetBeans for PHP

For coding purpose, we use different type of integrated development environment (IDE). There are so many IDEs and sometimes its difficult to choose the best one to use. As I am a php developer, my focus shall be on the IDE for PHP code snippet. I already used Zend IDE (of course the trial version), Dreamweaver. But  from the last few days i start coding on a IDE called NetBeans V.6.8. NetBeans is based on JAVA platform and it needs JRE(Java Runtime Environment) to be installed on the PC. Among the IDEs I have used so far, this one is the best. I have heard from many PHP developer that they don't find any IDE with debugging facility for php code testing. Apart the Zend Debugger(again you need the licensed copy), NetBeans has a built in debugging facility with Xdebug.