Posts Tagged ‘PHP’

Dynamic Page Design

Monday, August 18th, 2008

Bro gay bertanya di Kaskus :

Sama satu lagi..
Misalnya saya punya 3 div tag (header, navigation, content)..
di navigation misalnya ada home, news, contact us..
Nah misalnya saya klik home atau news, contact us biar yang berubah cuman contentnya aja
logikanya gmn ya? Ada tutorialnya ga?
Thanks =)

Jawaban dari saya :

Misalnya gini, ini adalah desain utama tiap halaman

(more…)

Dynamic Loader

Tuesday, July 29th, 2008

What does this script do ?

  1. Load multiple JS / CSS files at once. (Purpose : reducing number of HTTP requests).
  2. Compress JS / CSS files. By removing tabs, new lines, etc. (Purpose : reducing file size).
    For CSS files :

    • replacing "font-weight:bold" with "font-weight:700" (minus 1 character).
    • replacing "#FF5500" with "#F50" (minus 3 characters).
    • replacing more extra characters.

(more…)

Animated Captcha

Sunday, July 27th, 2008

I’ve uploaded it somewhere, but here, you can get the official animated captcha :)

This one is the same script with the script in PlanetSourceCode.com, BUT, i have updated it with distortion etc (added on July 20ish 2008).

Captcha

(more…)

PHP Mailer Class

Tuesday, July 22nd, 2008

I got this mailer from PHP Classes. Now i want to share it with you.

If you use simple PHP mail() method, most e-mails will go to spam folder. Use this mailer class as the solution.

Usage :

<?php
$global_php_mailer = new PHPMailer();

$global_php_mailer->From = 'admin@webkamu.com';
$global_php_mailer->FromName = 'Web Kamu.com';
$global_php_mailer->AddAddress($to);// to
$global_php_mailer->AddReplyTo('admin@webkamu.com','Terserah, web kamu');

$global_php_mailer->WordWrap = 50;

$global_php_mailer->IsHTML(true);

$global_php_mailer->Subject = $subject;// subject
$global_php_mailer->Body    = $message;// message
$global_php_mailer->AltBody = $message;// message

$global_php_mailer->Send();
?>

Kudos to the original creator. Here’s the download link.

CURL Class

Wednesday, July 16th, 2008

Here is my simple PHP cURL Class. I’ve put an example there. :)

Download.