June 23rd in PHP Scripts by pbu .

PHP script to convert text string to image

PHP script to write email address into a image

I was after a php script that dynamically converts text to image and finally i decided to code on my own. It also does convert small length text to image like names, emails etc..

This script automatically calculates the width of text into pixels inserts the PNG or gif image.

this is a string to <
>

To call the script for dynamically generating an image just use the html code

<img src="txt2img.php?text=<? echo $str ?>" …

June 18th in Linux/Unix by pbu .

how to change hostname in linux centos?

how to change hostname in linux

Very often you might want to change the hostname in your linux server. The hostnames are usually written like…

vps.domain.com
server.domain.com
box.domain.com
web.domain.com

and it is a very good idea to follow this hostname format.

To change hostname all you have to do is modify 2 files

1. Open /etc/hosts and change the name of the host

127.0.0.1 vps.domain.com vps localhost localhost.localdomain

2. Open /etc/sysconfig/network and do the change

HOSTNAME=”vps.domain.com”

Once this is done, check whether the hostname has been changed using hostname command after …

June 16th in Games by pbu .

PS3 vs Xbox360? which is best console?

PS3 or Xbox360? which is the best console?

I have seen many many discussions by gamers arguing whether ps3 or xbox360 is the best console in market. Majority of them say that xbox360 performs much better for games than PS3, but then again it may be wrong.

PS3, because of blue ray disc advantage, PS3 is simply superb in playing movies and i can tell you that movies played in PS3 look much realistic and there are no words to …

June 16th in Games by pbu .

The Best Action Games for PS3 Console

Best Action Games for PS3

I have been a passionate gamer since long time and i have played many action games on PS3. Having played that many i would certainly say that the following games stand out of the rest and certainly worth buying.

I would certainly look for the following factors before buying a game

* Graphics (so important for me)
* Gameplay experience.
* Storyline

GTA 4 (superb)

Assasins Creed (superb)

Stranglehold

Tom clancy’s Splinter Cell – Double Agent

Metal Gear Solid 4 (superb)

Godfather 2 (Great)

Tom Clancys Vegas …