Use PHP to check Gmail with IMAP

Friend

Here you go, nerds. PHP 5.0 has IMAP built in. First, make sure you have it on your server. Also enable SMTP / IMAP in your Gmail account. Then upload some code like this in a php file:

<?php
@include_once("pwds.php") ;

$imapaddress = “{imap.gmail.com:993/imap/ssl}”;
$imapmainbox = “[Gmail]/All Mail”;
$maxmessagecount = 10;
$imapaddressandbox = $imapaddress . $imapmainbox;

$connection = imap_open ($imapaddressandbox, $user, $pass);

$numMSGs = imap_num_msg($connection);

echo (imap_body($connection, $numMSGs));

imap_close($connection);
?>

Also, make sure you have a separate (and admin-only permissions) file, with your password info – called pwds.php in this case:

<?php
$user = 'put your email address here';
$pass = 'put your password here';
$host = 'imap.gmail.com';
$port = "993";
?>

see more…

No Comments 3.31.2009 at 6:56 pm

Espionage Assignment

Friend

The epic journey to use an Arduino to check a Gmail account and then broadcast the message over Nordic’s transceiver chips has come to an end. We just can’t seem to make it work, and I need my breadboards for the next project. Basically, the WizNet chip that allows the Arduino to connect to the internet runs on Arduino 13 software, and the custom library for the Nordic wireless chips requires Arduino 11. I don’t have quite the hardware chops to iron that problem out, so I’m moving on.

see more…

No Comments at 6:42 pm

Bad Paintings of Barack Obama

Friend

4

Obama ftw.

http://badpaintingsofbarackobama.com/

No Comments 3.10.2009 at 12:51 pm

Hogzilla

Friend

Research for Animals, Humans, and Those in Between:

Hogzilla is a posthumously famous hybrid of Hampshire swine and wild boar. He was shot and killed outside of Alapaha, Georgia (pop. 682) on the 17th of June, 2004 by a man named Chris Griffin. Griffin and the man who owns the plantation, Ken Holyoak, were the only witnesses to the slaying. They both claim that the hog weiged over 1000 pounds and was 12 feet long. The only proof is a photo of Griffin next to the hog after the shooting, as they buried the beast soon after it died—the reasons given were that wild hog meat is nasty and the head was far too large to mount on a wall. Apparently, they had to use a backhoe to bury Hogzilla.

Hogzilla’s story was not over, however. Sometime near the beginning of 2005 a group of scientists from MIT dug Hogzilla back up to examine his body for a documentary. The scientists disputed the claims of Holyoak and Griffin, verifying that in reality Hogzilla only weighed in at around 800 pounds and was probably no more than 8.6 feet in length.

Apparently, a movie about Hogzilla has been made called “Hogzilla: The Other White Meat Bites Back.” A trailer is available for viewing at hogzillaonline.com.  Also of interest is that Hogzilla makes an appearance in the video game “Cabela’s Dangerous Hunts 2” as a boss at the end of a level.


see more…

No Comments 3.3.2009 at 4:50 am
Friend