PHP 5.0.x Compatibility functions
Ported PHP5 function to PHP4 for forward compatibility
Replace file_put_contents()