CollegeWires Android Tutorials are now Live!

In this post I have discussed some basic types of array in PHP along with built in PHP functions used exclusively for arrays. An array can be imagined as a string of beads, with the beads representing variables that can be numeric, string, or even other arrays.

Php Array Collegewires

Numerically indexed arrays
Read the rest of this entry »

python_to_exe_py2exe

You may want to share your python program with friends and people. However, they may not have python installed on their system. But you can run python programs without installing Python interpreter on a system using py2exe. This post discusses how to compiles your .py extension python programs into .exe Windows executable program.
Read the rest of this entry »

Now and then, we come across image uploading in our projects. This post describes how to upload an image and resize them.

php_image_collegewires

Let’s begin. Read the rest of this entry »

Python – Dictionary

In: Python

5 Apr 2012

python_dicitonary_collegewires

Dictionary is another built-in python data type, other being lists and strings. It is an unordered set of key: value pairs, with the requirement that the keys are unique (within one dictionary). A pair of braces creates an empty dictionary: {}. Read the rest of this entry »

PDO_PHP_collegewires

The PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP. PDO provides a data-abstraction abstraction layer, thus providing uniform methods to access databases, regardless of which database you are using. PDO requires the new OO features in the core of PHP 5, and so will not run with earlier versions of PHP.
Read the rest of this entry »

Parsing JSON with PHP

In: PHP

26 Mar 2012

JSON_parser_php

JSON (JavaScript Object Notation) is a lightweight data-interchange format. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others.
An example of JSON: Read the rest of this entry »

Check previous posts on Object-Oriented Programming with PHP here and here.
In this post we will do some basic database functions:

  • Connect
  • Disconnect
  • Select
  • Insert
  • Delete
  • Update

download_source

Read the rest of this entry »

PythonThis post presumes your understanding of Object Oriented Programming.
Defining a Class
To define a class we use the word ‘class’ followed by the name of the new class.

>>>class MyClass:

Unlike OOPs in other languages like PHP and Java, there are parentheses in Python. Anything inside the class definition is indented. Read the rest of this entry »

Loading

Subscribe via email:

About this blog

Hrishikesh Kumar

A Programming tutorial blog by Hrishikesh Kumar. More...