Amazon S3 PHP helpers

Posted by Tom on April 18th, 2008 — in AWS, Internet, PHP, Programming, S3

The Amazon documentation for using S3 with PHP refers to an elusive function called “setAuthorizationHeader”. It’s apparently supposed to magically set the correct value for the Authorization header on a Pear HTTP_Request object. As far as I could tell, it didn’t actually exist — but I wanted it, so I wrote it:

Source

<?php

require_once ‘Crypt/HMAC.php’; require_once ‘HTTP/Request.php’;

define("S3URL", ‘http://s3.amazonaws.com’); define("AWSACCESSKEYID", [...]

Stealing LAPD’s crime data

Posted by Tom on March 18th, 2007 — in PHP, TOOBS, Web

This post explains how to get data from LAPD’s crime maps website. See my previous post on scraping DPS’s incident logs for background of TOOBS.

After completing the TOOBS project for the UPE P.24 programming contest I was checking out LAPD’s crime maps website, which is similar to TOOBS (but not as cool!), and I realized [...]



Warning: include(/home/tlrobinson/tlrobinson.net/_footer-analytics.php) [function.include]: failed to open stream: No such file or directory in /home/tlrobinson/tlrobinson.net/blog/wp-content/themes/clean-look-150/footer.php on line 13

Warning: include() [function.include]: Failed opening '/home/tlrobinson/tlrobinson.net/_footer-analytics.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/tlrobinson/tlrobinson.net/blog/wp-content/themes/clean-look-150/footer.php on line 13