Archive for the ‘PHP’ Category

Simple PHP class for parsing markup

Thursday, March 26th, 2009

In the Zend Client tutorial I touched upon a little bit of code I’ve written recently for retrieving poker player statistics from various backend affiliate sites.... Read More

Zend Amf and class mapping with Flash CS3 / AS3

Tuesday, March 24th, 2009

Update: I just got a mail from Julien Iafrancesco:... Read More

Cleaning up and wrapping up

Tuesday, March 17th, 2009

Update: Smoc is dead, long live h2octrine!... Read More

Parsing with Zend HTTP Client

Monday, March 9th, 2009

I need to recap today’s adventures in parsing land, I’m currently writing a lot of different parsers that are retrieving information from various pages, sometimes I’m lucky and the info I want is available as CSV or XML, most often not.... Read More

jQuery Galleria with MODx multi-lang snippet

Monday, March 9th, 2009

The other day I wanted to try out jQuery Galleria, it didn’t work out of the box with jQuery 1.3.2. Galleria is using the old style @ syntax which doesn’t work anymore. You basically have to go through the whole plugin and replace lines like this:... Read More

MODx multiple language site with template chunks

Wednesday, March 4th, 2009

After using the stuff in the prior tutorial on the site I’m working on at the moment I quickly realized that I needed to be able to use chunks as templates, just like Ditto, to handle repetitive stuff. It doesn’t make sense having duplicate HTML all over the place.... Read More

Extending Smoc – Check Box Groups, Search and Pagination

Friday, February 27th, 2009

In the prior version we just had the basics, automatic listings of all entries in a table, update/inster forms with text fields, text areas and drop downs through a single Doctrine relation (hasOne). Now we add check box groups which will manage multiple relations (hasMany) through an intermediary relation table, search and pagination of the search results. ... Read More

MODx multiple language site

Monday, February 23rd, 2009

Although it’s fairly easy to create a multi-lingual site with chunks and template variables alone it’s hardly ideal, to say the least. For most pages there will be a lot of unused template variables, the manager area will start to look like a mess. ... Read More

Smarty + Doctrine = Smoc

Wednesday, February 18th, 2009

Update: Since the below piece was written I’ve ported the little framework to H2O instead, H2O is a cleaner alternative to Smarty.... Read More

Simple Doctrine model to MySQL script

Monday, February 16th, 2009

I’m a bit rusty, after scouring the Doctrine manual for the import functions I found a script of my own that I totally had forgotten:... Read More