Posted by: ranacse05 on: March 24, 2008
In facebook.com we see a nice thing,that is when u try to edit ur profile the e-mail address becomes image ! I mean u just type string and that becomes image.Here is the code which can convert string into image.
$date = ‘Raquibul Islam’;
$img = imagecreatetruecolor(100,25);
$bgcol = imagecolorallocate($img,255,255,255);
$hatcol = imagecolorallocate($img,rand(128,255),rand(128,255),rand(128,255));
$headcol = imagecolorallocate($img,255,225,205);
$bodycol = imagecolorallocate($img,0,0,0);
$eyecol = [...]
Posted by: ranacse05 on: March 20, 2008
A few days ago i was looking for a script witch one will help me to unzip a file using PHP . There is 2 different ways to do it.One just execute a commend to unzip the file in the shell using PHP and another one is using library functions .Then i found this [...]
Posted by: ranacse05 on: March 18, 2008
Few days ago i wrote a post on SQL Injection and its protection.Here is a better way to protect the Database from SQL Injection.Just write a function like this
function safe_query( $value )
{
if( get_magic_quotes_gpc() )
{
$value = stripslashes( $value );
[...]
Posted by: ranacse05 on: March 12, 2008
FaceBook its a very well know name now a days.Its a community site.But i think that the presentation of this site makes it different from others.The lightbox style is awesome. But how can we easily use lightbox on our site ? Solution is facebox . There is a very nice tutorial on how [...]
Posted by: ranacse05 on: March 8, 2008
One of my best friends Asif’s sister got married on 07th march 2008.So Underground members had to attend the ceremony All together 16 of us went there.It was an awesome journey. this time i journey by bus (on roof) for the first time of my life. The food was also awesome.We [...]
Posted by: ranacse05 on: March 3, 2008
Hello guys today i’ll discuss about SQL Injection.This is a technique by with any hacker can destroy your database.
Example : Suppose our page is
include ‘connect.php’;
$pass=$_POST['pass'];
$user=$_POST['user'];
$sql=”select * from $table where pass=’$pass’ and name=’$user’;”;
$re=mysql_query($sql);
if(mysql_num_rows($re)==1)
{
$_SESSION['db_is_loggged_in']=true;
header(‘location:admin.php’);
exit();
}
else echo “Wrond pass or user name”;
if any user input is like “‘OR 1″ then somthing will happen unexpected.Hackers can do something like [...]
Recent Comments