Full Name :Ranjith
Username : admin
Articles : 0
Description :
Status message :
Cyber cafe management Server Screen

Cyber Cafe Management System

Sunday, June 10th, 2012 - 56 Comments

Objective of the projectTo develop an application project to manage the workings of a Cyber Café. This project executed in Saint Mary’s Syrian College, Brahmavar. Introduction:Cyber Café Management is a complete package developed for management of systems in a cyber café. This project is intended to be used in a Cyber Café. All cyber cafes […]

How to convert List to long[] or vise versa?

Thursday, January 12th, 2012 - 1 Comment

There is no automatic conversion from array of primitive type to array of their boxed reference types or vise versa. You have to iterate for each data. Converting List<Long> to long[] 1 2 3 4 5 6 7 List<Long> input = getSomeLongs(); // Assume some values long[] output = new long[input.size()]; int index = 0; […]

How to use Enum in C?

Monday, January 2nd, 2012 - 0 Comment

In C and C++, enum types can be used to set up collections of named integer constants. Consider a set of all days. #define Sunday 0 #define Monday 1 #define Tuesday 2 #define Wednesday 3 #define Thursday 4 #define Friday 5 #define Saturday 6 The above lines can be replaced by: 1 enum AllDays{Sunday, Monday, […]

How to use bool in c?

Monday, January 2nd, 2012 - 1 Comment

There is no bool data type in C. In C99 standerd version, the boolean variable has been added as _Bool. Additionally, a new header stdbool.h has been added for compatibility reasons. This header allows programmers to use boolean types in the same way, as in C++ language. To use bool in C, we can use […]

How to resize image using php?

Thursday, September 1st, 2011 - 1 Comment

Here is a simple script to resize the given image. This requires PHP5, GD library. First download the file and include to your code. Usage example: 1 2 3 4 5 6 7 8 9 10 11 12 <?php // *** Include the class include("resize-class.php");   // *** 1) Initialise / load image $resizeObj = […]

How to Extract or Unzip files from a .zip file using PHP

Thursday, September 1st, 2011 - 1 Comment

Here is the simple code which will extract a zip file. Here we are using pclzip.lib file to extract files. You no need to install any other library to your server. First download pclzip.lib file. Now use the below code to extract your zip file. 1 2 3 4 5 6 7 8 9 10 […]

How to upload image to database using PHP/MySQL

Thursday, September 1st, 2011 - 22 Comments

Here is the simple code to upload files to a particular folder also this will make an entry in database. For example if you are making user registration, this code can be used to store user photo. Use the same user table to store user image. In this code we have used “file_tbl” table to […]

How to convert Digits or numbers to word using PHP?

Thursday, September 1st, 2011 - 5 Comments

Here is the code to convert digits to word using PHP Example: 564 : five hundred sixty four 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 […]

How to get image source from file using PHP

Wednesday, August 31st, 2011 - 1 Comment

Use preg_match_all to get the image source from your file. PHP code: 1 2 3 4 5 6 7 8 <?php $content=’Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type […]

Enquiry mail template with validation

How to send enquiry or feedback mail using PHP script

Wednesday, August 31st, 2011 - 8 Comments

The PHP mail() function is used to send emails from inside a script. Syntax: mail(to,subject,message,headers,parameters) Here is an example of PHP feedback-form which you can directly publish on your website. The example below sends a message to a specified e-mail address. This PHP form includes Name, Email ID, Phone No, Subject, Message. Here JavaScript validation […]

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup