Monday, January 16, 2012

Create notepad with C++ programming

C++ notepad
(TC was used to run this program)

Download link: direct
C++ notepad code:

Image watermark with text and image

Image watermark with text or image is necessary to protect won web image copy from user. Click here for demo watermark with text and click here for demo watermark with image.

(It is mention that demo is limited. so, download and check in your host sarver.)

Download link: Direct

Watermark

Wednesday, January 11, 2012

Create or delete subdomain dynamically using php and cPanel

Introduction
Using this code you can create subdomains in the live server using php under cPanel control panel. There are two functions in this code. One is to create subdomains and the other is to delete a subdomain.
A subdomain is nothing but a folder in the root folder or a folder in any other place in your server domain space under the root folder which will be pointed by a url which you give as name.

Create subdomain code in php

Here is the function to create a subdomain in php.

• First parameter is the subdomain name. Like if you want music.sitename.com then you should provide the word music.

• Second parameter is the user name of your web hosting control panel username. This is the login where you manage your sites files, ftp, database, etc.

• Third parameter is the password of your control panel.

• Fourth parameter is the name of your original or root domain. for example if your domain name is example.com then you have to provide this here without the subdomain name.

Tuesday, January 10, 2012

Web, news and image search using google api

Real time search using google api. By this you can search web, news and image from your web through www.google.com api.Click here for demo
Google Search

Monday, January 9, 2012

eBangla ASCII To Unocode Converter

eBangla converter is the online converter that convert ASCII text (bijoy) to unicode text.

Click here for Demo

Friday, January 6, 2012

Gravity registration page

To create a gracity registration page jsut copy this code and save as index.php in your sarver.
Code of index.php

Convert image to code image by php

[php]
<?php
function image2ascii( $image ){
$ret = '';
$img = ImageCreateFromJpeg($image);
$width = imagesx($img);
$height = imagesy($img);

for($h=0; $h<$height; $h++) // loop for height of image code
{
for($w=0; $w<=$width; $w++) // loop for width of image code
{
$rgb = ImageColorAt($img, $w, $h); // add color in code
$r = ($rgb >> 16 ) & 0xFF;
$g = ($rgb >> 8 ) & 0xFF;
$b = $rgb & 0xFF;
// create a hex value from the rgb
$hex = '#'.str_pad(dechex($r), 2, '0', STR_PAD_LEFT).str_pad(dechex($g), 2, '0', STR_PAD_LEFT).str_pad(dechex($b), 2, '0', STR_PAD_LEFT);

if($w == $width)
{
$ret .= '<br>';
}
else
{
$ret .= '<span style="color:'.$hex.';">*</span>';
}
}
}
return $ret;
}


$image = '123.jpg'; // an image to convert in code
echo image2ascii( $image ); // do the conversion by calling function
?>
[/php]
Click here for Demo