I’m learning the PHP PDO interface for database programming. Today I read about fetch, fetchAll, bindColumn and the predefined constants.
Category Archives: Programming
PHP mail
I used the PHP mail function for the first time today. I had to configure the SMTP setting for my mail server in my php.ini file and after that it worked fine. Still only sending plain text email, and I’m not sure that I can for HTML email. :P
Excel’s VLOOKUP Function
I used Excel’s VLOOKUP Function for the first time today. I guess I don’t spend much time in Excel!
HTML5 Boilerplate
I learned about the HTML5 Boilerplate library today. It’s a template for creating a HTML5 website.
Facebook Graph API
Learning about the User in the Facebook Graph API. One disappointing thing I learned today is that you can’t automatically download the email addresses of your friends via a facebook app.
Raphaël—JavaScript Library
Learning about the Raphaël—JavaScript Library. This can be used to do animations and drawing in HTML documents.
Facebook App Development
I’m getting interested in Facebook App development and have found a few things to read:
GeoIP with MaxMind’s GeoLite in PHP
You can download the GeoLite Country database from GeoLite Free Downloadable Databases and you can grab the MaxMind GeoIP PHP API.
Once you have the GeoIP.dat file and the geoip.inc PHP file you’re good to go. E.g.:
require_once __DIR__ . '/geoip/geoip.inc';
$gi = geoip_open( __DIR__ . '/geoip/GeoIP.dat", GEOIP_STANDARD );
$country_code = geoip_country_code_by_addr( $gi, $host );
$country_name = geoip_country_name_by_addr( $gi, $host );
geoip_close( $gi );
HTML meta refresh
Used good old meta refresh for a project today. :)
MySQL Date and Time Functions
Looking up the MySQL Date and Time Functions today.