Archive for the ‘PHP’ Category
Sunday, November 2nd, 2008
I just had to convert a lot of xls files to csv, too many to even contemplating doing it manually. I started looking for a solution and found a positive evaluation of PHP-ExcelReader.... Read More
Tags: conversion, csv, date manipulation, excel, PHP, xls
Posted in PHP | No Comments »
Saturday, November 1st, 2008
The code documented here was originally posted as a single page as is. It just didn’t feel right, it felt lazy and not what this site is about, which is some kind of commentary or notes even though it’s not always extensive, so here you are, the verbose version.... Read More
Tags: directory parsing, file parsing, PHP
Posted in PHP | No Comments »
Sunday, October 26th, 2008
I just found myself wishing for automatic CRUD, for quick and simple administrative tasks, as it turned out a very easy thing to add. The first thing we have to do is move the label selection from having to be explicitly declared in the insert/update form – like we are doing now – to the model:... Read More
Tags: Doctrine, PHP, Smarty
Posted in Doctrine, PHP, Smarty | No Comments »
Wednesday, October 22nd, 2008
I just realized that the blog just passed the one year mark. It’s been a blast!... Read More
Tags: adsense, earnings, kontera, tla, tnx
Posted in Misc, Zend Framework | No Comments »
Tuesday, September 23rd, 2008
I had to start covering various Doctrine snippets for future reference. This post will be updated with more of them as they appear.... Read More
Tags: Doctrine, DQL, PHP
Posted in Doctrine, PHP | 2 Comments »
Saturday, September 13th, 2008
I’ve wanted to do automatic trackbacking by linking to posts that are linking to any given article of mine, for quite some time now.... Read More
Tags: atom, PHP, rss, trackback, zend feed, zend framework
Posted in PHP, Zend Framework | 1 Comment »
Friday, September 12th, 2008
A friend just needed help, he wants people to be able to put the YouTube insert code into a database. However it seems that there are some display related things in there he can live without that people might mess with and of course we don’t want that.... Read More
Tags: PHP, regex, regular expressions, youtube
Posted in PHP | No Comments »
Wednesday, September 3rd, 2008
Things are starting to become more and more feature complete. Let’s look at how to implement general search and pagination. In the Product model:... Read More
Tags: Doctrine, pagination, PHP, search, Smarty
Posted in Doctrine, PHP, Smarty | No Comments »
Sunday, August 31st, 2008
It’s time to take a look at how file uploads can be integrated into the Doctrine validation and CRUD process. We will have a product in the form of a digital download as an example, it will have a screenshot image that can be maximum 250 pixels wide and high. The download itself will be a zipped file.... Read More
Tags: , Doctrine, file uploads, PHP
Posted in Doctrine, PHP | 1 Comment »
Sunday, August 24th, 2008
This piece is building on the prior tutorial, we now have Retrieve, Update and Delete in addition to the Create stuff. The prior tutorial has also been updated since the fromArrayExt method needed some adjustments to manage updating.... Read More
Tags: Database, Doctrine, orm, PHP, Smarty
Posted in Database, Doctrine, PHP, Smarty | No Comments »