Topic “PHP”

Google Calendar impressions

D'oh, I had a huge post about my further experiences with Google Calendar but my dog ate it because my session timed out (yes its a bug I should fix, but generally I dont' write very long posts).  

The summary, I like Google Calendar.  I imported my ics file from Mozilla Sunbird with only one glitch, event times were moved ahead by 3 hours.  The web interface is quick and responsive that it wasn't too tedious too fix the events, but I only had a handful to fix.  I then subscribed to my new google calendar in Sunbird on linux and iCalendar in OS X.

Tags:

Zawodny: IN Defense of Web Developers

Jeremy Zawodny steps up to the plate in defense of Web Developers, once again.  Writing a good application no matter waht is going to be demanding, it's just easier to roll something/anything out using php+javascript than with a "real" programming language.  In effect, what I see is that php / javascript programming has a much lower bar, so inexperienced programmers can put out very funcitonal prototypes quickly.  In a way, the languages m
Tags:

Using PHP and Subversion

Subversion is a great replacement for CVS and a very productive tool for managing code.  I began using it last year to track my changes and apply them across my sites.  The New Yorg PHP group has a really informative and extensive presentation on using SVN, from setting it up to practical tips for using it. I found the comparision between the two repository storage options, Berkeley DB and FSFS, very informative as I wasn't really aware of the differences.
Tags:

How to: Backup MySQL database & email results using BASH

The script below does the same and only depends on mutt (or another command line email client) being installed. A better solution would be not to email the file but to setup ssh key authentication on another server and use scp (secure copy) to send the file over. That way, your database file is transferred over an encrypted connection, which is more secure, and you don't have to wory about your message being blocked due to a large file attachement.

Tags: ,

PEAR Auth gotcha

I've filed a bug report.

Tags:

Howto: Gallery2 pics in sidebar

It is actually a bit of a story, and it began with upgrading my installation of gallery from version 1 to version 2. Gone in version 2, at the time, was syndication via rss of pictures. That's originally how I had the pictures published to the right side of my blog. There's an RSS plugin for Gallery2, which I did get to install, but it didn't completely work since it sends the images as enclosures, not just links to the image.

How to crash apache w/php error logging

The offending line causes errors to log to a file, which is great, but if you are not rotating the logfile, eventually you'll hit the max file size limit. Now, this file size is pretty big, but if you have all errors being logged (E_ALL | E_STRICT), you can reach that faster than you would think. This is the ini_set directive used:

ini_set("error_log", "../outside/of/web/root/error_log.txt");

Fortunately, you can rotate the logfile yourself within php:

Tags:

FastCGI Resurgence

This is a great read on the history and role of FastCGI given the rise and popularity of "CGI Frameworks", as the author calls them, like Rails, Django, and Zope. One of those rare entries where I learn a lot from each paragraph.

Faking Cron with PEAR Cache and date()

If you don't have access to cron on your server, but you want to run some php code periodically, this is a handy way of doing that using output caching and the date function. This assumes you'll be using PEAR's Cache module. Here's the code, and and explanation.

Tags:

Soccer Blogs Aggregator

I quietly launched Soccer Blogs earlier this month but, after some useful critiques from my design friend Nam-ho, I tweaked the layout and added aggregate RSS and Atom feeds.  I've been working on this, as time and World of Warcraft addiction allow, since mid summer.  I wanted to try out aggregating feeds and, this is the next phase, automatically tagging/sorting/cataloging/rating posts as they come in. 

Recent Comments

Subscribe by Email

Enter your email address:

Delivered by FeedBurner