interfacelab

Avatar

Ciarán Walsh’s Blog » TextMate Tip – Using PHP for Commands

Ciarán Walsh’s Blog » TextMate Tip – Using PHP for Commands

A must read for anyone doing php development with TextMate.  I’m about 50/50 between TM and Eclipse, trying to wean myself over slowly.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Feedburner WP Plugin Category Fix

I’ve patched the current Feedburner 2.3 plugin to support feedburner feeds for categories.

When you install the plugin and activate it, navigate to Settings -> Feedburner.

You should now see options for adding in URL’s for all of your category rss feeds.

Download here.

Note: The url for your feeds by category should be by name, eg:

http://interfacelab.com/feed?category_name=php

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Variables in CSS via PHP

UPDATED: Added support for expressions with variables so that you can add, multiply, divide, etc. variables when using them in the CSS. See below for more info.

Back in April of 2008, I came across a proposal by Daniel Glazman and David Hyatt for using variables in CSS stylesheets.  I thought the proposal was absolutely brilliant, filling a much needed void for sites using complicated stylesheets across a variety of different pages.  Another part of their proposal was being able to include/import other stylesheets.  I don’t know anyone that couldn’t find this useful.

I put together a quick class for implementing most of their proposal using PHP.  Nothing fancy going on here, most of it is some simple regexes.

Download the code here.

[Read more]

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
Loading ... Loading ...

Metadata/Attributes in PHP

There’s a ton of stuff I miss from C#, having moved to PHP. Did I say a ton? I meant a megaton.

One of the things I miss the most (besides the sanity) are attributes (annotations for Java peeps). To be able to ascribe metadata to class, method and property definitions opens up a whole new world of introspection which enables you to do some pretty wicked hacks.

In this post, I present a PHP class that allows you to do metadata/attribute programming with PHP.  You can download the class here.  But before we dig in, we must understand what attributes are and how they are useful…

[Read more]

1 Star2 Stars3 Stars4 Stars5 Stars (8 votes, average: 5 out of 5)
Loading ... Loading ...

oh how i hate adoring you actionscript3

Coming off an insane project done entirely in PHP, I’ve been using my downtime to drown myself in AS3. Anyone who has spent any amount of time dealing with PHP can feel me when I say that moving to any language approaching some sense of sanity in its design, is a feeling not unlike being thrown a life preserver from God.

[Read more]

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

,