5/7/12

A Tutorial on Arrays in PHP

Arrays in all languages whether Java, C++, Python, C etc are the same. 


Definition, Arrays are complex variables that store a group of values under a single variable name.



Creating Arrays


Its difficult for a person who is new to PHP to create an array, because arrays every language is created differently though they do the the same thing. This was a problem which I also had initially when I started coding in php.



5/5/12

Algorithm Tutorials - Part 1 : Ad-Hoc Problems

I will start with the very basic of Algorithms.

Before moving on to the different algorithms, let's first see what does an algorithm actually mean?



Definition


A process or set of rules to be followed in calculations or other problem-solving operations, esp. by a computer.  


Aho, Hopcroft and Ullman, had stated in their book on algorithms, named, "The Design and Analysis of Computer Algorithms" that "Perhaps the most important principle for the good algorithm designer is to refuse to be content."



5/2/12

Cloud Computing : The Future of Web

This is not a tutorial with codes, its a tutorial to make people aware about Cloud Computing, later posts will have tutorials with examples of App Engine. Before we move into Cloud Computing and its characteristics. Lets take the word cloud.

CLOUD


Cloud is a place or an area where we have all the components of cloud computing, basically its a metaphor for the Internet. By components I mean Server (Application/Back-up), Database, Back-up Storage, Network etc. 


4/19/12

Object-Oriented Programming meets PHP with examples

After getting request for the above topic, we decided to write a tutorial on it. However, if you need more detailed lessons you can check out www.computerclasses.org for available courses on this topic.

As we all know that object-oriented programming is an approach in which objects and classes are used and this approach is being followed by the some of the leading programming language like C++ and Java. Click here, to read about OOPs Concept in Java.

Before the introduction of PHP 4 OOP in PHP was not at all possible but after its introduction in PHP 4 and more advancement in PHP 5, the users are making full use of it and other programmer who thought PHP to be difficult are now actually enjoying it.



4/17/12

4/13/12

Querying Data using the PreparedStatement Object

Consider a scenario where a New Publishers, a pubhlishing company maintains information about the books and the authors in a database. The company wants an application using which they cab access the information about authors based on different criteria. For Example, it should retain all authors living in a city specified at runtime. In this scenario, we cannot use Statement object to retrieve information because the value needs to be specified at the runtime. We need to use the PreparedStatement object as it can accept runtime parameters.

The PreparedStatement interface is derived from Statement interface and  is available in the java.sql package. 

The PreparedStatement objects are compiled and prepared only once by JDBC.