Hi,
> wamp my hosts file was overwritten.
No, new ServerName are added at the end of the hosts file by add_vhosts.php
And if the hosts file does not contain '127.0.0.0.1 localhost' or '::1 localhost', it is opened by:
$fp = fopen($c_hostsFile, 'r+b');
so:
r+' Open for reading and writing; place the file pointer at the beginning of the file.
And the missing information will be inserted at the beginning of the file.
Anyway, Wampserver 3.1.9 will save the hosts file in hosts_wampsave.x files before each rewrite of the file.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons