updated apache and php scripts