Entries tagged php in Apr, 2003
Filters: Type: entry × Year: 2003 × Month: Apr × php × Sorted by date
Supporting Conditional GET in PHP
This site’s RSS feeds now support Conditional GET. Since the feeds are dynamically generated on every request, adding support took a bit of hacking around with PHP. Here’s the function I came up with (based on the excellent description provided by Charles Miller in the article linked above):
[... 398 words]Verbose Regular Expressions
Ned Batchelder describes Verbose Python regular expressions. This is one of the things I’ve known about (as in known that they exist) for ages but have never got around to using. I’ve been working with some pretty heavy regular expressions recently that could really do with the clarity of being defined in verbose format with comments.
[... 96 words]