Replacing html files with dynamic PHP