Make tempnam play nice with open_basedir restriction on.
Merge pull request #631 from protich/issue/607

Make tempnam play nice with open_basedir restriction on.

References:
http://us2.php.net/manual/en/function.tempnam.php#93256

Reviewed-By: Jared Hancock <jared@osticket.com>