Just FYI, this is likely not PHP4 compatible.