$filename = '.htpasswd' file_put_contents($filename, "pyro.699:password") or die ('could not write to file);