Tuesday, September 28, 2010

Php: Easy way for creating a Global Function.


Starting php script:


echo 'Lets make a global function';

function createglobal() {

global $my_global;
$my_global = 10;


}

$my_global = 5;

echo "The value of \$my_global is '$my_global'
";

createglobal();

echo "The value of \$my_global is '$my_global'
";



ending php script

Before the createglobal(); is called the value of variable stays to local value. Which is 5. But as soon as the function is called the value becomes to 10 which was defined in the createglobal function.

Saturday, September 18, 2010

Free Calls from Gmail could be misused

I think it's fair to say that while this is an amazing service but then again a lot of people could be misusing this service as well.

For example, many people could start making prank calls or sales calls from other countries to U.S. or Canada. Getting the ability for free calls is only going to give air to such acts which is going to make many people very annoyed.

I think Google should introduce some type of credibility before people can use this service from any gmail account.

Friday, September 10, 2010

I seriously need to upgrade my PC!

I have a 2.4 Giga Processor and 1 GB ram. That's pretty much what I know about my PC. But I am going to completely upgrade my system because I'm going to get into serious gaming from now on.

So for that I will need a very powerful system. Something like Intel Core Duo with a GForce Card.

Will have to save up some cash before I can do that.

Monday, September 6, 2010

Eid is coming soon ..

I'm really anxious for Eid this time because I'll get to eat in day light again after the whole month of torment and thirst with the summer on our heads.

You know, you can't eat in ramazan etc. I mean, I am not complaining about all the blessings of God in this month but still this Ramazan has been physically really challenging.