Reconstruct php and html