Archive for March, 2006

Installing Apache and PHP on Windows

Yesterday was the first time I installed apache and php on windows! The apache 2 installer worked out of the box, but I had 2 annoyances with php.

Read the rest of this entry »

Comments

Tutorial: Multiple Keyboards for Accented Characters

Entering accented or other “unusual” characters in a web-form is a recurring problem, which is usually solved by placing a virtual keyboard on the page. I find these annoying

Read the rest of this entry »

Comments

doubleclick a radio button to remove selection

We needed to set up a group of radio buttons so that when any of them is doubleclicked any selection in the group is removed.

Read the rest of this entry »

Comments

Spreadsheet_Excel_Writer

The pear package Spreadsheet_Excel_Writer rocks. I include a file similar to excel.inc file in my scripts, and then send data as needed to the spreadshhet.

Read the rest of this entry »

Comments

renaming multiple files (bash)

I had to rename many .phtml files, so that their extension will change to .php. This does the trick:


for i in *.phtml; do mv $i ${i%.phtml}.php; done

Comments

colorized code in posts

This seems to work: (from the command line. php cli needs to be installed)

echo "" | php -q > file.html

Upload the resulting file and link it to the post as appropriate.

Comments

php and (la)TeX

I often need to format reports such as phonebooks. It’s hard to get any better than TeX, so I like to combine them

Read the rest of this entry »

Comments