Ever seen live TV streaming in sidebar Firefox??
i got this idea when i want to watch e-lifestyle on MetroTV. and i combined it with trick of facebook chat in sidebar.
ok i’ll take metroTV streaming for example.
first open your notepad application. copy and paste this code to your notepad.
this script is using for countdown (waiting) timer.
you can use for download script, website popUp, and other think.
let’s check it out.
this is the container or targer for countdown script:
<div id="antiteori">
<a href="#" onclick="return false;">link for what you want to go</a>
</div>
this is the javascript function
<script>
dn4 = 5; // how long the countdown
function countdown(){
if ((0 <= 100) || (0 > 0)){
dn4--;
if(dn4 == 0){
//countdown finished
document.getElementById('antiteori').innerHTML = "<a href=\"#\" onclick=\"return false;\">" + "My Link </a>";
}
if(dn4 > 0){
document.getElementById('antiteori').innerHTML = 'Please wait <font color="#FF0000"><b> ' + dn4 + '</b></font> second..';
setTimeout('countdown()',1000); //1000 is in mili seconds so it same as 1 second
}
}
}
countdown();
</script>
very easy eh?thats right!
This code is simply and easy to use,
and you can modify what you want.
thanks 4 reading….
SQL injection is a dangerous hacking techniques. How to prevent that?
example: http://target.com/news.php?id=19
In most applications made by a beginner programmer, the code in the program are as follows news.php
<?php
require_once("connections.php");
$sql = "SELECT * FROM news WHERE id=".$_GET['id'];
$result = mysql_query($sql);
while($news = mysql_fetch_array()){
echo "<h2>".$news['title']."</h2>";
echo "Posting pada tanggal: ".$news['date_post'];
echo $news['content'];
}
?>there is no filter in $_GET['id']. This is a very dangerous! Cmon,..lets do this.
now i want to share about how to create thumbnails image without writing file on server
for example: the default image is 800*600px.
if you using the html code like :
<img src="imgpath/imgname.jpg">then the dimension(width & height) is outomatically same as the original image dimension.
how about
<img src="imgpath/imgname.jpg" width="200" height="150">the image dimension is same as on the script, but the original size is not change
check this script

recaptcha are the anti spam method using captcha. may captcha just using leter and or number but recaptcha using 2 word in different image with AES (Advance Encryption System) on sending the code.
this is available in wordpress plugin called WP-reCAPTCHA
CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. Blablabla….
This is a CI implementation of the ReCAPTCHA server (http://www.recaptcha.net)
There are three files needed:
I find the song lyrics on the Internet, but I can’t block the content to copy it. i try to right click but it not work.
I find the other alternate. note: i using firefox.
first I view source from the menu: View > Page Source
I find the content in html code; like He
RSS important, why? RSS is a brief news updates from the web, its also can increase trafic web. ups… no theory, sorry ….
now I explain how to create rss that detected by browser.
1. paste html code between <head> .. </ head>
the code is:
<link rel="alternate" type="application/rss+xml" title="your rss feed name" href="your rss feed url" />
and see in the browser after the url, rss icon is appear. if you click on the icon, then you will go to your web page rss.
