HoN is cool and i really like it

i found a link that will give Hon Beta keys
i got one from

http://honbetakeys.blogspot.com/

goodluck to you if you plan to join.

-golden arches

i’ve found this site www.free-pspgames.net which lets you download free games free, no need to join and pay other sharing site.’

enjoy

php number format

November 28, 2008

$var = 4938509.958

echo number_format($var, 2, ‘,’, ‘.’);

output = 4,938,509.96

one liner if statement

October 24, 2008


$variable = ($x == TRUE)? 'the variable is true' : 'the variable is NOT TRUE';
As i was checking my friendster, i saw one of my friend’s blog post. I clicked it and was shocked to see the default template of wordpress. “ayos wordpress na, sana pwede upload ng template” as i said myself. It is wordpress with the friendster tab, blue bordered simple box tab.

In the Word Camp Philippines last september 07 2008 Bloggie announced that Friendster are hiring and in need for developers. He said that the devs will be responsible for migrating every single blog in friendster from typepad to wordpress. I didn’t actually expect that i can see wordpress friendster blog right away, i thought that they are still looking for developers to do it.

The migrating is still on going because i checked my other friends’ friendster blog and still find a typepad. 
My Experience
Creating a new blog.
first friendster will ask your preferred blog url
blogname.blog.friendster.com
then your set and start your blogging
They have an array of themes you can choose from, but you can’t upload your own templates, basic widgets. 
You cannot Edit your css but you can customize your header but only the color of the font of your blog name and blog description.

    //function that will count days
    function countdays($date1, $date2){
        $days = abs(strtotime($date1)-strtotime($date2)) / 86400;
        return $days;
    }

    //lets assign values
    $date1 = '2008-08-17';
    $date2 = '2008-08-12';
    echo countdays($date1, $date2); //executes our function

document.reload(true);

<?php

echo date('m/d/Y', strtotime('2008-07-31'));

?>

trying to use your dates in mysql in javascript? use this code in your php page.

url = document.location;
document.write(url);

obj is the <div> id

<script type='text/javascript'>
function toggle(obj){
   var e=document.getElementById(obj);
      if(!e)return true;
      if(e.style.display=="none"){
         e.style.display="block"
      } else {
         e.style.display="none"
      }return true;
}
</script>

in your markup

<a href='#' onClick="toggle('mydiv')">Toggle</a>
<div id='mydiv' style="display:none">
  Lorem ipsum dolor sit amet, consectetur
  adipisicing elit, sed do eiusmod tempor
  incididunt ut labore et dolore magna
  aliqua. Ut enim adminim veniam.
<div>

EDIT: sorry for the wrong code. :D its now updated