Selamat Datang

Assalamu'alaikum Warahmatullahi Wabarokatuh Wamaghfiratuh, Moga anda dapat mengambil manfaat dari keberadaan blog Prestasikoe ini.

blog ini sekedar kumpulan" yang tidak bisa ku ingat seluruhnya,
makanya dibuat dlm tulisan.

produk

produk

Monday, September 8, 2008

Example #1 A htmlentities() example

<?php

$str  =  "A 'quote' is <b>bold</b>" ;



// Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt;

echo  htmlentities ( $str );



// Outputs: A &#039;quote&#039; is &lt;b&gt;bold&lt;/b&gt;

echo  htmlentities ( $str ,  ENT_QUOTES );

?>

from : http://id2.php.net/htmlentities
bg83

Saturday, September 6, 2008

teknik OpenWindow

function OpenWindow(theURL, width, height, left, top) { { window.open(theURL , "" ,"width="+ width +",height="+ height +",left="+ left +", top="+ top +", toolbar=no,directories=0,menubar=no,status=no,resizable=0,location=0,scrollbars=2,copyhistory=0") } }

bg83

teknik cache

<?php

Header("Cache-Control: must-revalidate");

$offset = 60 * 60 * 24 * 3;

$ExpireString = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";

Header($ExpireString);

?>



bg83

teknik breakout framing

if (parent.frames.length > 0) { parent.location.href = location.href; }

bg83

Thursday, September 4, 2008

renew imgVerify

<img src="" alt="" hspace="1" id="imgVerify">

<input name="rgnrt" type="button" id="rgnrt" value="renew" onClick="var s=document.getElementById('imgVerify').src;var re = RegExp(/i=+([\d]*)/i);if(s.match(re)){re=re.exec(s)[0];a=s.split('?')[0];n=(parseFloat(re.split('=')[1])+1);document.getElementById('imgVerify').src=(a+'?i='+n);}else{document.getElementById('imgVerify').src=(s+'?i=1');}">

document.getElementById("imgVerify").src='imgVerify.php';




bg83