JAM RUTE KAPAL HARGA
7:30 SKP – TBK DUMAI EXPRESS Rp65,000.00
7:45 TBK – SKP MIKO NATALIA Rp70,000.00
8:00 SKP – TBK DUMAI EXPRESS Rp65,000.00
9:00 TBK – SKP MIKO NATALIA Rp70,000.00
9:30 SKP – TBK DUMAI EXPRESS Rp65,000.00
10:45 SKP – TBK MIKO NATALIA Rp70,000.00
11:30 TBK – SKP DUMAI EXPRESS Rp65,000.00
12:15 TBK – SKP MIKO NATALIA Rp70,000.00
12:30 TBK – SKP DUMAI EXPRESS Rp65,000.00
13:00 TBK – SKP DUMAI EXPRESS Rp65,000.00
13:15 SKP – TBK MIKO NATALIA Rp70,000.00
14:30 SKP – TBK DUMAI EXPRESS Rp65,000.00
14:30 TBK – SKP MIKO NATALIA Rp70,000.00
15:15 SKP – TBK MIKO NATALIA Rp70,000.00
16:30 SKP – TBK MIKO NATALIA Rp70,000.00
16:30 TBK – SKP DUMAI EXPRESS Rp65,000.00

Block website using host file

Posted: October 10, 2011 in Tutorial

1. Open My Computer
2. C:\WINDOWS\system32\drivers\etc
2. find “HOSTS“ file
3. Open file
4. On below IP “127.0.0.1 localhost” add url block website

Nah, berhubung awa masih ditugasin bikin website, awa ngejelasin tentang beberapa prosedur bwat ngejaga website kita dari HTML injection, denganHTMLinjection, seseorang bisa mengambil cookies bisa dilihat di wikipedia

Buat nanggulangin nya, dalam script PHP, ad beberapa fungsi bwat nanggulangin ni masalah antara lain htmlentities(), trim(), amstrip_tags()

Ok? awa cuman ngasih perumpamaannya aj, sisanya di coba sendiri ok

trim() adalah sebuah fungsi untuk menghapus spasi di kanan dan kiri text, kalo lu bkin semacam guest box trus si user menginputkan spasi sebnyak 1000x what happen? coba sendiri aj (blon nyoba hihi :P )

htmlentities() adalah sebuah fungsi untuk merubah semua tag HTML menjadi text biasa.

strip_tags() adalah sebuah fungsi untuk menghilangkan semua tag HTML :D

Mari kita tes menggunakan kombinasi trim() dan htmlentities()

$nama_dengan_html =
“<b><font color = blue>Yangki Sulaeman</font></b>”;

$konvert = trim(htmlentities($nama_dengan_html));

maka outputnya adalah

<b><font color = blue>Yangki Sulaeman</font></b> bukan Yangki Sulaeman

Mengapa demikian? karena dengan fungsi htmlentities() semua tag2 HTML akan diubah menjadi text biasa, tag HTML <b> akan memberikan outputtulisan tebal, tetapi dengan htmlentities() tag tersebut akan menjadi text <b> biasa.

Bagaimana dengan trims() dan strip_tags()?

$nama_dengan_html =
“<b><font color = blue>Yangki Sulaeman</font></b>”;

$konvert = trim(strip_tags($nama_dengan_html));

Maka outputnya

Yangki Sulaeman , tidak seperti htmlentities()strip_tags()menghilangkan tag2 HTML tersebut bukan mengubahnya menjadi text biasa.

Ok deh,sekian dulu yah pembahasannya,maaf bila salah,untuk melihat fungsi2 PHP yang lain bisa melihat di situs resmi PHP id2.php.net/

 

 

 

 

 

Expert search form PHP

Posted: September 28, 2011 in Tutorial

Code :

<FORM action=’/search’ id=’searchform’ method=’get’ style=’ text-align:center;’>

<INPUT class=’inpsearch’ id=’s’ name=’q’ onblur=’if (this.value == &quot;&quot;) {this.value = &quot;Ketik kata kunci dan tekan Enter&quot;;}’ onfocus=’if (this.value == &quot;Ketik kata kunci dan tekan Enter&quot;) {this.value = &quot;&quot;;}’ type=’text’ value=’Ketik kata kunci dan tekan Enter’/>
<INPUT id=’searchsubmit’ type=’hidden’ value=’Search’/>
</FORM>

Kelebihan:
1.tidak perlu mengubah script dan susunan direktori kita, kita langsung bisa menggunakannya hanya dengan menambahkan sebuah file .htaccess pada direktori utama website kita (direktori utama website bukan berarti root direktori server, walaupun kita berada sebagai sub-direktori kita masih dapat menggunakannya, tetapi dengan syarat & ketentuan tertentu). Read the rest of this entry »

Fix storage card from write protected

Posted: September 26, 2011 in Tutorial

In the past we had received so many problems from the readers who have a problem in copying files on their USB portable devices like pen drives, memory card and iPod etc.

According to the mails we had received about this problem, people have seen the following errors when their thumbs drives, memory card etc becomes write protected. Read the rest of this entry »

When you create a new image with a white background or a colored background, the bottommost image in the Layers palette is called Background. An image can have only one background layer. You cannot change the stacking order of a background layer, its blending mode, or its opacity. However, you can convert a background into a regular layer, and then change any of these attributes. Read the rest of this entry »

This tutorial is easy to understood and teach you how to get the certificate key.
The certificate and key generated by this method will expire in next 3 years and have 17 capabilities like opda’s certification. Read the rest of this entry »

The Android 2.3.4 Gingerbread version for Samsung Galaxy Mini 5570 is out now and can be downloaded from Samfirmware.com. The firmware version was build with a label of S5570XXKPI the CSC is S5570SERKPI and the OPS file is the same. This firmware which has a build date of June 02 2011. Read the rest of this entry »

Looking for the examples of URL rewriting then this post might be useful for you?? In this post, I’ve given five useful examples of URL rewriting using .htaccess. Read the rest of this entry »