Google Blogger Hacked

The Official Google Blog was hacked this morning. Or so it appeared when I logged into Bloglines. Here’s what I saw for their blog this morning.

Google Blogger Hacked

Google, fix your blog pleeasssee! <3 (P.S. Just t…

By trey

Google, fix your blog pleeasssee! <3

(P.S. Just to clear things up, I’m not associated with Google at all.)

Google’s response now claims that they unintentionally deleted their own blog and somebody else registered the name to make this post. So no passwords were lost or any system hacked.

March 28th, 2006 @ 07:27 AM • Filed under Web

Web Advertising

Web Advertising has moved into the mainstream now that Adsense has become so popular. MSN has launched a beta of Adcenter and Yahoo is in trials with YPN. Publishers only a few years back consisted of larger web portals and interest sites. Welcome to the web ad explosion where now almost anybody can become a publisher overnight. We’ve been experiment with various ad techniques and the following posts will discuss a few things we’ve tried and their success rates.  Got questions about web advertising or a technique you’d like us to try out?  Post a comment!

March 12th, 2006 @ 06:16 PM • Filed under Advertising, Web

[php] Post data 101

Well, some of us would like to know some stuff about postdata to help with script creation.. So I made this nice little tutorial.

The first thing with postdata, you need to make the field. There 2 things to keep in mind when making the field. 1) The name of the field, and 2) The kind of field. (Text, password, radio.. etc.).

So, this is how a basic form goes, This covers passwords, radio buttons, and fields. I might add in dropdown at a later time. Here (uses php in parts, this is in the document):

(The spaces after the opening of the tag are there to prevent phrasing)

< form method="post" action="< ?echo $_SERVER[‘PHP_SELF’]; ?>“>
Password - < input type="password" id="password" name="password" />
Text - < input type="text" id="text" name="text" />
Radio - < input type="radio" value="1" id="radio" name="radio" />
Submit - < input type="submit" value="Submit" id="submit" name="submitted" />
< /form>

(Note, Radio and submit both need value=”".)

Now, what are we gona do with this postdata? Well, For demo purposes we’ll simply display them.

Now, the name=”" in the html is the post name, so if it’s defined name=”password”, then it’s $_POST[’password’]. This IS case sensitive.

So, php code for this is:

(The spaces after the opening of the tag are there to prevent phrasing)

< ?
$submitted = $_POST[’submitted’];
// Is the “submitted” data coming in? If so, do this:
if ($submitted){
$password = $_POST[‘password’];
$text = $_POST[‘text’];
$radio = $_POST[‘radio’];
echo
$password.“< br /> “.$text.“< br /> “.$radio;< br /> }
//If submitted isn’t defined… do this:
elseif(!$submitted){
//(We end php and start html because echo(); and print(); use php processor, not a LOT, but it’s not a good habit to get into.)
?>

< form action="< ?echo $_SERVER[‘PHP_SELF’]; ?>” method=”post”>
Password - < input type="password" id="password" name="password" />
Text - < input type="text" id="text" name="text" />
Radio - < input type="radio" value="1" id="radio" name="radio" />
Submit - < input type="submit" value="Submit" id="submit" name="submitted" />
< /form>
< ?
}
?>

Well, I guess that’s it for now, If you want another tutorial drop a comment in here :)

January 25th, 2006 @ 08:36 PM • Filed under Web

[php] How to: Custom ?page=blah and ?blah pages.

So, You want to know how to make a ?blah page in php.

Well, This is one of the simpliest codes ever. Here it is:

(And excuse me, my php opening tag got messed up. But im sure you know how to edit that, right? ;) )
< ?php
//If it’s set to get blah…
if(isset($_GET[‘blah’])){
//Define “stuff”. What do you want to show?
$stuff = “What you want.”;
//Define what to show. You can also use print();
echo $stuff;
}
//Or, If you want page=blah….
//If it’s set to get page….
if(isset($_GET[‘page’])){
//Define what will show in page=blah
$blah = “Blah.”;
$pages = array(
blah => $blah,
);
$page = $_GET[‘page’];
echo
$pages[$page];
}
?>

January 25th, 2006 @ 07:57 PM • Filed under Web