Monthly Archives: March 2009
Mar 22, 2009 by Matt | Posted in Coding
If you’ve ever worked with WordPress’s “template tag” functions, you may have noticed that some of them take arguments in a strange way. Instead of passing arguments like function($1, $2)
, they are handled much a URL query string, like function('exclude=this&order=asc')
. This enables you to pick and choose what arguments you want to specify, and the order in which you do so.
How is that done? I wondered about that myself for quite some time, but was too lazy to open the source code and see for myself. Recently I came across the PHP function that makes it possible: Parse_Str().
Take this code snippet for example:
Continue reading →
Mar 20
cURL is often used on the server end to pull web pages and RSS feeds for parsing, or for interacting with APIs. It’s a nifty tool, and one that I use quite frequently. cURL also can be used, in a command line environment, to…
Mar 19
The Online Publishers Association is calling for new, more intrusive ad formats to combat banner-blindness. “A large-scale intrusive format is absolutely necessary in today’s market,” said Adam Kleinberg, chief executive of Traction, a San Francisco ad agency. “With the economy and the move to…
Mar 18
I use Firefox as my main browser, and have since it was released pretty much. Over that time I have become dependent on a variety of extensions. ColorZilla, Web Developer, Firebug, StumbleUpon, etc.. I use them daily, and a browser without them would feel…incomplete…
Mar 17
Version 1.3.0 of the GoCodes redirection plugin has been released. Several long-awaited improvements have been made. .htaccess editing is no longer required. As long as you are using “pretty permalinks” instead of the default ?p=123 type thing you can just drop the GoCodes plugin…
Mar 16
Since TinyURL made the concept of URL-shortening huge, and since Twitter has made it more important than ever, there have been a lot of sites springing up and offering similar services. There’s the ultra-tiny is.gd, the statistic-centric TweetBurner, and a smattering of other TinyURL…
Mar 16
Internet Explorer is notorious for it’s laughable support for W3C standards. Look around in the web design community and you’ll find that a lot of designers do not like the browser one bit, as a result of having to find workarounds so a page…
Mar 15
Filter_Var() is a PHP function intended to help validate and sanitize certain types of data. It can verify that an email address is in a correct format, remove harmful characters and tags, etc.. I discovered this interesting feature through Sanitize and Validate Data with…