PHP

When IE screws up your PHP session…

This line of code will save you. Respect and cherish it. And put it on the first line of your scripts:

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

The issue that this header solves usually happens when the session is started within an iframe, e.g. when building a Facebook app. It has something to do with Internet Explorer not trusting iframe content.

Anyway, P3P stands for Platform for Privacy Preferences. You can also Google that code to find out more.

Singing House

I made this for a Multimedia Database course assignment. The goal was to develop a karaoke house application that can run on any OS.

Singing House is an HTTP-based karaoke house application, with a Flash GUI and PHP-MySQL backend. So far, the following features have been implemented:

  • Song search by artist, title, and keywords
  • Playing the karaoke video using browser plugin

There are several other features I plan to add, e.g. a custom video player in Java that can be controlled from the Flash display, administration and cashier modules, and key control and other DSP functions. The Flash GUI may also be re-written in Flex to make the technology used completely open-source.