Entries Tagged as 'php'

Using PHP to create TextMate commands

I just stumbled upon this on the TextMate blog: Ciarán Walsh wrote a blog post about using PHP to create custom commands for my favourite text editor/IDE/general weapon of choice: TextMate. TextMate already has a huge collection of snippets and commands for all kinds of languages that are easily expandable and that I use frequently. But I didn’t know you can use PHP to create custom commands. I will definitely try this out.

Link.

PHP: UTF-8 and Spreadsheet Excel Writer

Spreadsheet Excel Writer is a handy tool to generate MS Excel files with php. But it has some trouble handling utf-8 sources. Luckily Research e-Labs describes a simple solution:

After recently working on an application to generate Microsoft Excel documents using a PHP script, I ran into trouble with the PEAR package “Spreadsheet Excel Writer” which didn’t correctly display UTF-8 characters (Māori macrons in this case). Here is a fix!