Tugas Desain
July 4th, 2008http://i27.tinypic.com/2yu0olj.jpg
http://i32.tinypic.com/9907y9.jpg
http://i27.tinypic.com/2yu0olj.jpg
http://i32.tinypic.com/9907y9.jpg
I wrote an AJAX Tutorial last night. You can find how to post data with AJAX / make a “GET” request, make a request with cookie, and how to make a request with session.
This is just a small and simple AJAX example. Enjoy yourself.
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.
![]()
Loreng ipsum kolor sing amet, consectetuer adipesing pelit. Donat molen. Klosed aliquam seng cut arcu. Phasellus collibangudin. Vestibulum condom farises nulla. In hac habitasse platea dictumst. Nulla nomummy. Cras quis libero. Cras venenatis. Aliquam pusere lobok pede. Nullam frigid unga id leo. Praesent lengquet pretel erat. Praesent nonokdio. Pellentil a magna a mauris putate lacinia. Aenean viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymen. Aliquam lacus. Mauris mag erots, sampar la, tempor et, rutrum et, tortor dordor.
Aslinya :
Let’s check this PHP code
<?php
$s = 'hello world';
$s = str_replace('o', my_get_string(), $s);
echo($s);
function my_get_string() {
$q = mysql_query('SELECT VERSION()');
$r = mysql_fetch_array($q);
return($r[0]);
}
?>
Basically my_get_string() is a function that return some string.
Now the question is : is the above code is efficient? Let’s check.