It is better to change the file permissions with chmod() after creating the file. The usual lacking of security knowledge within the PHP team rears its head once again. You *always...www.php.net
Remember, array_values() will ignore your beautiful numeric indexes, it will renumber them according tho the 'foreach' ordering: ?php $a= array(3= 11,1= 22,2= 33, );$a[0]...www.php.net