Skip to content

Instantly share code, notes, and snippets.

<?php
session_start();
if (isset($_GET['bahasa']) and !empty($_GET['bahasa'])) {
$_SESSION['bahasa'] = $_GET['bahasa'];
} else if (!isset($_SESSION['bahasa'])) {
$_SESSION['bahasa'] = 'id';
}
<?php
// array of thumbnail images
$thumbnails = array('1_a.jpg','2_b.jpg','3_c.jpg','4_d.jpg','5_e.jpg',
'6_f.jpg','7_g.jpg','8_h.jpg','9_i.jpg','10_j.jpg');
// set thumbnail path
$thumb_dir = '../share/images/';
// set width and height of image output
$out_width = 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="description" content="Menggunakan CSS Sprite"/>
<title>Menggunakan CSS Sprite</title>
<style>
/* Main Styling */
.thumb {
background-image:url(thumbs21.php);
<?php
/**
* Kelas untuk memanipulasi data yang berkaitan dengan rupiah.
*
* Catatan: Saya lupa darimana contoh fungsi terbilang awalnya!
*
* @version 0.0.1
* @author Anggiajuang Patria <[email protected]>
* @copyright (c) 2009-2010 http://www.segellabs.com/
* @license http://www.gnu.org/licenses/gpl-3.0.txt
<?php
$engines = array(
'google' => '#',
'yahoo' => '#',
'bing' => '#',
'ask' => '#',
'alltheweb' => '#',
'aol' => '#',
'lycos' => '#',
<?php
$engines = array(
'google' => '#',
'yahoo' => '#',
'bing' => '#',
'ask' => '#',
'alltheweb' => '#',
'aol' => '#',
'lycos' => '#',