How To Learn CSS Design Easily
CSS is Cascading Style Sheet ..
You who want to learn howto web design must know about HTML and CSS ..
Here is some website may be usefull for you to learn web dseign ..
To learn about CSS quickly … you must know the basic of HTML and CSS first ..
To see the live change of […]
List Of Good Programming Website
I think these website you must know when you want to become programmer :
http://www.nettuts.com : this website is great to get tutorial about all aspect to make any website development
http://www.designfloat.com : this website is social networking website for programming, so you can find any issue about programming right there
http://www.diveintopython.org : website with online book […]
How to make Cookies Expired
The difference between cookie and session is cookie is saved in client ( browser) but session is saved in server.
If you want to unset cookies you can not use unset function.
This code wil show how to make cookie expired
If you want to set how cookie expire in time you can use something like this […]
Generate Image Verification with PHP
Generate Image Verification is usually used to stop brute force attack in web application …
This code show how Generate Image Verification with PHP
<?
$str = “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO1234567890″;
$randkey = substr(str_shuffle($str),0,7);
$image = imagecreatefromjpeg(”./image/test.jpg”);
$font = 9 ;
$black = imagecolorallocate($image,0,0,0);
$red = imagecolorallocate($image,100,0,0);
$y = (imagesy($image)-imagefontheight($font))/2;
$x = ((imagesx($image))/4);
imagestring($image,$font,$x,$y,$randkey,$black);
$font =3;
imagestring($image,$font,7,$y+20,”www.gunungpring.com”,$red);
header(”Content-type: image/jpeg”);
imagejpeg($image);
imagedestroy($image);
?>
Session Implementation
In PHP to use session you can use like this …
This is to set session …
<?php
session_start();$_SESSION[”mysession”] = “This is my session”;
?>
To acces session
<?php
session_start();echo $_SESSION[”mysession”];
?>
To Destroy session
<?
session_start();unset($_SESSION[”mysession”]);
session_destroy();
?>
Where am I?
You’re currently at “How To Learn CSS Design Easily,” an entry on Talk Only by admin on Jun 11 2008 @ 5:58 pm
-
Categories
-
Meta

