View Single Post
Old 01-03-2009, 06:29 PM  
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
I never trusted scripts from different billers to update htaccess - AFAIK there's no portable way to lock a file in unix, which means that if they attempted to update at exactly the same time there's a good chance the file will be corrupted. I ended up having the biller scripts write to separate password files then another script to join them together. The generated htaccess file can still be corrupt if two billers update simultaneously, but a cron job entry will regenerate that file (properly) soon afterwards.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote